Fix a typo in i386 SYSCALL_PIC_SETUP
[platform/upstream/glibc.git] / ChangeLog
1 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #14278]
4         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5
6 2012-06-21  Jeff Law  <law@redhat.com>
7
8         [BZ #13882]
9         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
10         uint16_t for elements in the "seen" array to avoid char overflows.
11         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12         * elf/dl-open.c (dl_open_worker): Likewise.
13
14 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
15
16         * scripts/list-sources.sh: Scan PORTS for translations.
17         * po/libc.pot: Regenerated.
18
19 2012-06-21  Andreas Jaeger  <aj@suse.de>
20
21         [BZ #12194]
22         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
23         warning.
24         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
25         * bits/byteswap-16.h (__bswap_16): Likewise.
26         * bits/byteswap.h (__bswap_constant_16): Likewise.
27
28 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
29
30         [BZ #14117]
31         * sysdeps/i386/fpu_control.h: Removed.
32         * sysdeps/x86_64/fpu_control.h: Moved to ...
33         * sysdeps/x86/fpu_control.h: Here.
34
35         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
36         (_FPU_SETCW): Likewise.
37
38 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
39
40         [BZ #14117]
41         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
42         * sysdeps/x86/fpu/bits/mathinline.h: This.
43         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
44
45         [BZ #14050]
46         [BZ #14117]
47         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
48         functions if __x86_64__ is defined.
49
50 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
51
52         * string/endian.h: Add !__ASSEMBLER__ condition for including
53         conversion interfaces.
54
55 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
56
57         [BZ #14241]
58         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
59         of ABS(x) in calculating zero to negative powers other than odd
60         integers.
61         * math/libm-test.inc (pow_test): Add more tests.
62
63 2012-06-15  Andreas Jaeger  <aj@suse.de>
64
65         * manual/contrib.texi (Contributors): Update entry of Liubov
66         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
67         Machado Filho.
68
69 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
70
71         * string/string.h: Add __wur to GNU version of strerror_r.
72
73 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
74
75         [BZ #14229]
76         * string/Makefile (tests): Add tst-strtok_r.
77         * string/tst-strtok_r.c: New file.
78         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
79         RAX_LP/RDX_LP on SAVE_PTR.
80
81 2012-06-14  Roland McGrath  <roland@hack.frob.com>
82
83         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
84
85 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
86
87         * libm_test.inc (csqrt_test): Allow more spurious underflow
88         exceptions.
89         (j0_test): Likewise.
90         (j1_test): Likewise.
91         (y0_test): Likewise.
92         (y1_test): Likewise.
93
94 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
95
96         * po/Makefile (libc.pot): Use UTF-8 charset.
97
98 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
99
100         [BZ #14210]
101         Suppress sign-conversion warning from FD_SET.
102         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
103         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
104         not unsigned long int.
105         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
106
107 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
108
109         [BZ #14050]
110         [BZ #14117]
111         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
112         __extern_always_inline instead of __extern_inline.
113         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
114         (__signbit): Likewise.
115         (__signbitl): Support C++ namespace.
116         (lrintf): New inline function.
117         (lrint): Likewise.
118         (llrintf): Likewise.
119         (llrint): Likewise.
120         (fmaxf): Likewise.
121         (fmax): Likewise.
122         (fminf): Likewise.
123         (fmin): Likewise.
124         (rint): Likewise.
125         (rintf): Likewise.
126         (ceil): Likewise.
127         (ceilf): Likewise.
128         (floor): Likewise.
129         (floorf): Likewise.
130         (nearbyint): Likewise.
131         (nearbyintf): Likewise.
132
133 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
134
135         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
136         non-default versions.
137
138 2012-06-11  Roland McGrath  <roland@hack.frob.com>
139
140         [BZ #14218]
141         * manual/argp.texi (Argp): Reword argp_parse description slightly.
142
143 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
144
145         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
146         (FE_UPWARD, FE_DOWNWARD): Don't define.
147         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
148         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
149
150         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
151         reading it.
152         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
153         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
154
155 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
156
157         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
158         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
159         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
160         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
161
162 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
163
164         [BZ #14117]
165         * sysdeps/i386/fpu/bits/fenv.h: Removed.
166         * sysdeps/i386/fpu/Implies: New file.
167         * sysdeps/x86_64/fpu/Implies: Likewise.
168         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
169         * sysdeps/x86/fpu/bits/fenv.h: This.
170
171         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
172         __SSE_MATH__.
173
174 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
175
176         [BZ #14134]
177         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
178         character 0xffff that matches the last element of the
179         conversion table.
180
181 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
182
183         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
184         fmodl commit.
185
186 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
187
188         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
189         values higher than 25.6283.
190
191 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
192
193         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
194         subnormal exponent extraction and add some __builtin_expect.
195         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
196         Fix for subnormal mantissa calculation.
197
198 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
199
200         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
201         cpu2 is -1 and errno is not ENOSYS.
202
203 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
204
205         [BZ #14117]
206         * sysdeps/i386/i486/bits/string.h: Renamed to ...
207         * sysdeps/x86/bits/string.h: This.
208         * sysdeps/x86_64/bits/string.h: Removed.
209
210         * sysdeps/i386/i486/bits/string.h: Define inline functions only
211         if not compiling for x86-64, but compiling for >= i486.
212
213         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
214         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
215
216         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
217         New macro from Linux kernel 3.4.0.
218         (FP_XSTATE_MAGIC2): Likewise.
219         (FP_XSTATE_MAGIC2_SIZE): Likewise.
220         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
221         (struct _fpx_sw_bytes): New struct.
222         (struct _xsave_hdr): Likewise.
223         (struct _ymmh_state): Likewise.
224         (struct _xstate): Likewise.
225
226         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
227         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
228         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
229         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
230         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
231         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
232
233         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
234         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
235         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
236         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
237         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
238         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
239
240 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
241
242         [BZ #13743]
243         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
244         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
245         (sysdep_headers): Include sys/platform/ppc.h.
246         * sysdeps/powerpc/test-gettimebase.c: Test for
247         __ppc_get_timebase() to catch future ISA opcode/insn changes.
248         * manual/Makefile (appendices): Include platform.texi.
249         * manual/contrib.texi (Contributors): Update @node pointers.
250         * manual/maint.texi (Maintenance): Likewise.
251         (Platform): New node.
252         * manual/platform.texi: New file.  Document the new features.
253
254 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
255             Jakub Jelinek  <jakub@redhat.com>
256
257         [BZ #14188]
258         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
259         where __builtin_expect is unavailable.
260
261 2012-06-03  David S. Miller  <davem@davemloft.net>
262
263         * stdlib/longlong.h: Updated from GCC.
264
265 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
266
267         [BZ #14042]
268         * sysdeps/powerpc/powerpc32/mcount.c: New file.
269         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
270         __mcount_internal.
271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
272         (GLIBC_2.16): Likewise.
273
274 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
275
276         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
277
278 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
279
280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
281         (default-abi): New variable.
282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
283         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
284         variable.
285         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
286         Likewise.
287         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
288         Likewise.
289         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
290         Likewise.
291
292         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
293         definition.  Document in comment.
294
295 2012-06-01  David S. Miller  <davem@davemloft.net>
296
297         * stdlib/longlong.h: Updated from GCC.
298
299 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
300
301         [BZ #14117]
302         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
303         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
304         sys/debugreg.h sys/io.h here.
305         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
306         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
307         sys/io.h.
308         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
309         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
310         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
311         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
312         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
313         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
314
315         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
316         Define only if __x86_64__ is defined.
317
318 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
319
320         [BZ #14048]
321         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
322         Use int64_t for variable i.
323         * math/libm-test.inc (fmod_test): Add more tests.
324
325         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
326         z computation is not scheduled after fetestexcept.
327         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
328         Use math_force_eval instead of asm to ensure calculation scheduled
329         before exception test.
330         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
331         Ensure a1 + u.d computation is not scheduled after fetestexcept.
332
333 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
334
335         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
336         computation is not scheduled after fetestexcept.
337
338 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
339
340         [BZ #14117]
341         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
342         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
343
344 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
345
346         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
347         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
348
349 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
350
351         [BZ #14117]
352         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
353         <bits/wordsize.h>.
354         (__WCHAR_MIN): Support __WORDSIZE == 64.
355         (__WCHAR_MAX): Likewise.
356
357         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
358         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
359
360         [BZ #14183]
361         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
362         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
363
364         [BZ #14117]
365         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
366         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
367
368         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
369         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
370
371         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
372         Defined to 1 if __x86_64__ isn't defined.
373         (_STAT_VER_LINUX_OLD): New.
374         (st_atime): Remove duplicate.
375         (st_mtime): Likewise.
376         (st_ctime): Likewise.
377
378 2012-05-31  David S. Miller  <davem@davemloft.net>
379
380         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
381         entries.
382
383 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
384
385         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
386         gen-libm-test.pl.
387
388         [BZ #14132]
389         * elf/dl-reloc.c: Include <_itoa.h>.
390         (_dl_reloc_bad_type): Remove use of INTUSE.
391         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
392         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
393         * stdio-common/psiginfo.c (psiginfo): Likewise.
394         * stdio-common/psignal.c (psignal): Likewise.
395         * string/strsignal.c (strsignal): Likewise.
396         * include/signal.h (_sys_siglist): Declare hidden proto.
397         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
398         INTVARDEF with libc_hidden_data_def.
399         * stdio-common/itoa-udigits.c: Likewise.
400         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
401         (_itoa_lower_digits_internal): Remove declaration.
402         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
403         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
404         (_sys_sigabbrev_internal): Remove aliases.
405         (_sys_siglist): Define hidden alias.
406
407 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
408
409         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
410         bits/sysctl.h.
411
412 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
413
414         [BZ #14117]
415         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
416         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
417
418         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
419         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
420         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
421         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
422         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
423         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
424
425         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
426         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
427         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
428
429         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
430         with __addr.
431         (insw): Likewise.
432         (insl): Likewise.
433         (outsb): Likewise.
434         (outsw): Likewise.
435         (outsl): Likewise.
436
437         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
438         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
439         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
440
441         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
442         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
443         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
444         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
445         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
446         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
447
448         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
449         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
450
451         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
452         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
453
454         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
455         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
456         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
457
458         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
459         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
460         to ...
461         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
462
463         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
464         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
465         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
466
467         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
468         for x86-64.
469         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
470
471 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
472
473         * math/math.h (M_El): Use two more decimal places.
474         (M_LOG2El): Likewise.
475         (M_LOG10El): Likewise.
476         (M_LN2l): Likewise.
477         (M_LN10l): Likewise.
478         (M_PIl): Likewise.
479         (M_PI_2l): Likewise.
480         (M_PI_4l): Likewise.
481         (M_1_PIl): Likewise.
482         (M_2_PIl): Likewise.
483         (M_2_SQRTPIl): Likewise.
484         (M_SQRT2l): Likewise.
485         (M_SQRT1_2l): Likewise.
486
487 2012-05-31  David S. Miller  <davem@davemloft.net>
488
489         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
490         values between float registers.
491         * sysdeps/sparc/sparc64/memset.S: Likewise.
492         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
493
494 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
495
496         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
497         -D_FORTIFY_SOURCE=1.
498         (CPPFLAGS-tst-longjmp_chk.c): Define.
499         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
500         (CPPFLAGS-tst-longjmp_chk2.c): Define.
501         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
502         CFLAGS-tst-wchar-h.c.
503
504 2012-05-31  Marek Polacek  <polacek@redhat.com>
505
506         [BZ #14132]
507         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
508         __endmntent_internal): Remove declaration.
509         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
510         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
511         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
512
513 2012-05-30  David S. Miller  <davem@davemloft.net>
514
515         * sysdeps/sparc/sparc32/soft-fp/q_util.c
516         (___Q_simulate_exceptions): Use real FP ops rather than writing
517         into the %fsr.
518         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
519         Likewise.
520
521 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
522
523         [BZ #14117]
524         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
525         * sysdeps/x86/bits/xtitypes.h: This.
526
527         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
528         * sysdeps/x86/bits/wordsize.h: This.
529
530         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
531         * sysdeps/x86/bits/huge_vall.h: This.
532
533         * sysdeps/i386/bits/select.h: Removed.
534         * sysdeps/x86_64/bits/select.h: Renamed to ...
535         * sysdeps/x86/bits/select.h: This.
536
537         * sysdeps/i386/bits/setjmp.h: Removed.
538         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
539         * sysdeps/x86/bits/setjmp.h: This.
540
541         * sysdeps/i386/bits/mathdef.h: Removed.
542         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
543         * sysdeps/x86/bits/mathdef.h: This.
544
545 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
546
547         [BZ #14132]
548         * include/sys/socket.h (__connect_internal)
549         (__libc_sa_len_internal): Remove declaration.
550         (__connect, __libc_sa_len): Declare hidden_proto.
551         (SA_LEN): Remove use of INTUSE.
552         * socket/connect.c: Add libc_hidden_def.
553         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
554         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
555         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
556         alias.
557         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
558         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
559         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
560         of adding _internal alias.
561
562 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
563
564         [BZ #14117]
565         * sysdeps/i386/bits/link.h: Removed.
566         * sysdeps/i386/bits/linkmap.h: Likewise.
567         * sysdeps/x86_64/bits/link.h: Renamed to ...
568         * sysdeps/x86/bits/link.h: This.
569         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
570         * sysdeps/x86/bits/linkmap.h: This.
571
572         * sysdeps/i386/bits/endian.h: Removed.
573         * sysdeps/x86_64/bits/endian.h: Renamed to ...
574         * sysdeps/x86/bits/endian.h: This.
575
576         * sysdeps/i386/bits/byteswap.h: Removed.
577         * sysdeps/i386/bits/byteswap-16.h: Likewise.
578         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
579         * sysdeps/x86/bits/byteswap.h: This.
580         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
581         * sysdeps/x86/bits/byteswap-16.h: This.
582         * sysdeps/i386/Implies: Add x86.
583         * sysdeps/x86_64/Implies: Likewise.
584
585 2012-05-30  David S. Miller  <davem@davemloft.net>
586
587         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
588         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
589         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
590         (FP_TRAPPING_EXCEPTIONS): Define.
591         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
592         (FP_TRAPPING_EXCEPTIONS): Define.
593         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
594         subnormals only when inexact has been signalled or underflow
595         exceptions are enabled.
596         (_FP_PACK_CANONICAL): Likewise.
597
598 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
599
600         [BZ #14183]
601         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
602         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
603
604 2012-05-30  Richard Henderson  <rth@twiddle.net>
605
606         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
607         with #ifndef NOT_IN_libc.
608
609         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
610         marked to avoid plt entry.
611
612 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
613
614         [BZ #14112]
615         * Makeconfig (default-abi): New macro.
616         (abi-includes): Likewise.
617         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
618         $(abi-$(default-abi)-lib-soname) for soname if defined.
619         ($(common-objpfx)gnu/lib-names.stmp): Generate from
620         abi-variants.
621         * Makefile (installed-stubs): Likewise.
622         * include/stubs-biarch.h: Removed.
623         * scripts/lib-names.awk: Only handle one library at a time.
624         * scripts/soversions.awk: Remove WORDSIZE support.
625         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
626         entries.
627         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
628         Removed.
629         (syscall-list-default-condition): Likewise.
630         (syscall-list-default-condition): Likewise.
631         (syscall-list-includes): Likewise.
632         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
633         syscall-list-* with abi-*.  Handle undefined abi-variants.
634         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
635         * sysdeps/unix/sysv/linux/i386/Implies: New file.
636         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
637         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
638         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
639         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
640         Removed.
641         (syscall-list-32-options): Likewise.
642         (syscall-list-32-condition): Likewise.
643         (syscall-list-64-options): Likewise.
644         (syscall-list-64-condition): Likewise.
645         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
646         macro.
647         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
648         Renamed to ...
649         (abi-*): This.
650         (abi-64-ld-soname): New macro.
651         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
652         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
653         Renamed to ...
654         (abi-*): This.
655         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
656         * sysdeps/x86_64/x32/shlib-versions: Likewise.
657
658 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
659
660         * sysdeps/unix/sysv/linux/kernel-features.h
661         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
662         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
663         include <kernel-features.h>.
664         [!__NR_ftruncate64]: Remove conditional code.
665         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
666         [__NR_ftruncate64]: Make code unconditional.
667         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
668         * sysdeps/unix/sysv/linux/truncate64.c: Do not
669         include <kernel-features.h>.
670         [!__NR_ftruncate64]: Remove conditional code.
671         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
672         [__NR_ftruncate64]: Make code unconditional.
673         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
675         include <kernel-features.h>.
676         [!__NR_ftruncate64]: Remove conditional code.
677         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
678         [__NR_ftruncate64]: Make code unconditional.
679         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
681         include <kernel-features.h>.
682         [!__NR_ftruncate64]: Remove conditional code.
683         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
684         [__NR_ftruncate64]: Make code unconditional.
685         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
686
687         * configure.in (libc_cv_fpie): Weaken to a compile test using
688         LIBC_TRY_CC_OPTION.
689         * configure: Regenerated.
690
691 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
692
693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
694         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
696         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
697         Refreshed.
698         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
701         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
702         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
703         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
704         Refreshed.
705
706 2012-05-27  David S. Miller  <davem@davemloft.net>
707
708         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
709         (___Q_zero): New.
710         (__Q_simulate_exceptions): Return void.  Change to simulate
711         exceptions by writing into the %fsr.
712         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
713         (__Qp_handle_exceptions): Likewise.
714         (numbers): Delete.
715         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
716         __Qp_handle_exceptions.
717         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
718         __Qp_handle_exceptions.
719         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
720         as unused and give dummy FP_RND_NEAREST initializer.
721         (FP_INHIBIT_RESULTS): Define.
722         (___Q_simulate_exceptions): Update declaration.
723         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
724         formatting.
725         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
726         as unused and give dummy FP_RND_NEAREST initializer.
727         (__Qp_handle_exceptions): Update declaration.
728         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
729         formatting.
730
731 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
732
733         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
734         the temporary FPU control word.
735         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
736         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
737         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
738         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
739         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
740         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
741         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
742         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
743         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
744         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
745         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
746
747 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
748
749         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
750         fields.
751
752 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
753
754         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
755         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
756         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
757         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
758         Likewise.
759         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
760         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
761         Likewise.
762
763 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
764
765         * po/h.po: Update from translation team.
766
767 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
768
769         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
770
771         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
772         handling of denormals.
773         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
774         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
775         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
776         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
777         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
778         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
779         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
780         Likewise.
781
782 2012-05-26  Marek Polacek  <polacek@redhat.com>
783
784         [BZ #14152]
785         * math/libm-test.inc (fma_test): Don't always expect underflow
786         exception.
787
788 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
789
790         [BZ #12416]
791         * elf/tst-execstack.c: Include stackinfo.h.
792         (do_test): Adjust test case to ensure that pthread_getattr_np
793         behaviour remains the same after marking stack executable.
794
795 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
796
797         * sysdeps/unix/sysv/linux/kernel-features.h
798         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
799         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
800         kernel-features.h.
801         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
802         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
803         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
804         kernel-features.h.
805         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
806         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
807
808 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
809
810         * configure.in: Define the default includes to being none.
811         * configure: Regenerated.
812
813 2012-05-25  Roland McGrath  <roland@hack.frob.com>
814
815         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
816         * sysdeps/x86_64/setjmp.S: Likewise.
817         * sysdeps/i386/bsd-setjmp.S: Likewise.
818         * sysdeps/i386/bsd-_setjmp.S: Likewise.
819         * sysdeps/i386/setjmp.S: Likewise.
820         * sysdeps/i386/__longjmp.S: Likewise.
821         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
822         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
823
824         * include/stap-probe.h: New file.
825         * configure.in: Handle --enable-systemtap.
826         * configure: Regenerated.
827         * config.h.in (USE_STAP_PROBE): New #undef.
828         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
829         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
830         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
831
832 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
833
834         [BZ #13717]
835         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
836         to 2.4.0 where earlier.
837         * sysdeps/unix/sysv/linux/configure: Regenerated.
838         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
839         <kernel-features.h>.
840         [__ASSUME_32BITUIDS]: Make code unconditional.
841         [!__ASSUME_32BITUIDS]: Remove conditional code.
842         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
843         <kernel-features.h>.
844         [__ASSUME_32BITUIDS]: Make code unconditional.
845         [!__ASSUME_32BITUIDS]: Remove conditional code.
846         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
847         [__ASSUME_32BITUIDS]: Make code unconditional.
848         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
849         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
850         <kernel-features.h>.
851         [__ASSUME_32BITUIDS]: Make code unconditional.
852         [!__ASSUME_32BITUIDS]: Remove conditional code.
853         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
854         <kernel-features.h>.
855         [__ASSUME_32BITUIDS]: Make code unconditional.
856         [!__ASSUME_32BITUIDS]: Remove conditional code.
857         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
858         <kernel-features.h>.
859         [__ASSUME_32BITUIDS]: Make code unconditional.
860         [!__ASSUME_32BITUIDS]: Remove conditional code.
861         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
862         <kernel-features.h>.
863         [__ASSUME_32BITUIDS]: Make code unconditional.
864         [!__ASSUME_32BITUIDS]: Remove conditional code.
865         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
866         <kernel-features.h>.
867         [__ASSUME_32BITUIDS]: Make code unconditional.
868         [!__ASSUME_32BITUIDS]: Remove conditional code.
869         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
870         <kernel-features.h>.
871         [__ASSUME_32BITUIDS]: Make code unconditional.
872         [!__ASSUME_32BITUIDS]: Remove conditional code.
873         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
874         <kernel-features.h>.
875         [__ASSUME_32BITUIDS]: Make code unconditional.
876         [!__ASSUME_32BITUIDS]: Remove conditional code.
877         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
878         <kernel-features.h>.
879         [__ASSUME_32BITUIDS]: Make code unconditional.
880         [!__ASSUME_32BITUIDS]: Remove conditional code.
881         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
882         <kernel-features.h>.
883         [__ASSUME_32BITUIDS]: Make code unconditional.
884         [!__ASSUME_32BITUIDS]: Remove conditional code.
885         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
886         <kernel-features.h>.
887         [__ASSUME_32BITUIDS]: Make code unconditional.
888         [!__ASSUME_32BITUIDS]: Remove conditional code.
889         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
890         <kernel-features.h>.
891         [__NR_setresgid] (__setresgid): Do not declare.
892         [__ASSUME_32BITUIDS]: Make code unconditional.
893         [!__ASSUME_32BITUIDS]: Remove conditional code.
894         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
895         <kernel-features.h>.
896         [__NR_setresuid] (__setresuid): Do not declare.
897         [__ASSUME_32BITUIDS]: Make code unconditional.
898         [!__ASSUME_32BITUIDS]: Remove conditional code.
899         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
900         <kernel-features.h>.
901         [__ASSUME_32BITUIDS]: Make code unconditional.
902         [!__ASSUME_32BITUIDS]: Remove conditional code.
903         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
904         <kernel-features.h>.
905         [__ASSUME_32BITUIDS]: Make code unconditional.
906         [!__ASSUME_32BITUIDS]: Remove conditional code.
907         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
908         <kernel-features.h>.
909         [__ASSUME_32BITUIDS]: Make code unconditional.
910         [!__ASSUME_32BITUIDS]: Remove conditional code.
911         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
912         <kernel-features.h>.
913         [__ASSUME_32BITUIDS]: Make code unconditional.
914         [!__ASSUME_32BITUIDS]: Remove conditional code.
915         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
916         <kernel-features.h>.
917         [__ASSUME_32BITUIDS]: Make code unconditional.
918         [!__ASSUME_32BITUIDS]: Remove conditional code.
919         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
920         <kernel-features.h>.
921         [__ASSUME_32BITUIDS]: Make code unconditional.
922         [!__ASSUME_32BITUIDS]: Remove conditional code.
923         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
924         <kernel-features.h>.
925         [__ASSUME_32BITUIDS]: Make code unconditional.
926         [!__ASSUME_32BITUIDS]: Remove conditional code.
927         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
928         <kernel-features.h>.
929         [__ASSUME_32BITUIDS]: Make code unconditional.
930         [!__ASSUME_32BITUIDS]: Remove conditional code.
931         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
932         <kernel-features.h>.
933         [__ASSUME_32BITUIDS]: Make code unconditional.
934         [!__ASSUME_32BITUIDS]: Remove conditional code.
935         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
936         <kernel-features.h>.
937         [__ASSUME_32BITUIDS]: Make code unconditional.
938         [!__ASSUME_32BITUIDS]: Remove conditional code.
939         * sysdeps/unix/sysv/linux/kernel-features.h
940         (__ASSUME_SETRESUID_SYSCALL): Remove.
941         (__ASSUME_SETRESGID_SYSCALL): Likewise.
942         (__ASSUME_32BITUIDS): Likewise.
943         (__ASSUME_LDT_WORKS): Likewise.
944         (__ASSUME_O_DIRECTORY): Likewise.
945         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
946         architecture but not kernel version.
947         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
948         (__ASSUME_MMAP2_SYSCALL): Likewise.
949         (__ASSUME_STAT64_SYSCALL): Likewise.
950         (__ASSUME_IPC64): Likewise.
951         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
952         <kernel-features.h>.
953         [__ASSUME_32BITUIDS]: Make code unconditional.
954         [!__ASSUME_32BITUIDS]: Remove conditional code.
955         * sysdeps/unix/sysv/linux/opendir.c: Do not include
956         <kernel-features.h>.
957         [__ASSUME_O_DIRECTORY]: Make code unconditional.
958         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
959         132096]: Remove conditional code.
960         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
961         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
962         <kernel-features.h>.
963         [__ASSUME_32BITUIDS]: Make code unconditional.
964         [!__ASSUME_32BITUIDS]: Remove conditional code.
965         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
966         <kernel-features.h>.
967         [__ASSUME_32BITUIDS]: Make code unconditional.
968         [!__ASSUME_32BITUIDS]: Remove conditional code.
969         * sysdeps/unix/sysv/linux/setegid.c: Do not include
970         <kernel-features.h>.
971         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
972         unconditional.
973         (__setresgid): Do not declare.
974         [__ASSUME_32BITUIDS]: Make code unconditional.
975         [!__ASSUME_32BITUIDS]: Remove conditional code.
976         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
977         <kernel-features.h>.
978         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
979         unconditional.
980         (__setresuid): Do not declare.
981         [__ASSUME_32BITUIDS]: Make code unconditional.
982         [!__ASSUME_32BITUIDS]: Remove conditional code.
983         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
984         <kernel-features.h>.
985         [__ASSUME_32BITUIDS]: Make code unconditional.
986         [!__ASSUME_32BITUIDS]: Remove conditional code.
987         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
988         <kernel-features.h>.
989         [__ASSUME_32BITUIDS]: Make code unconditional.
990         [!__ASSUME_32BITUIDS]: Remove conditional code.
991
992 2012-05-25  Richard Henderson  <rth@twiddle.net>
993
994         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
995         dl_hwcap to ifunc resolver.
996         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
997         elf_ifunc_invoke.
998         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
999         dl_hwcap to ifunc resolver.
1000         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
1001
1002 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1003
1004         [BZ #14153]
1005         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
1006         for |x| <= 2**-26, not 2**-57.
1007         * math/libm-test.inc (acos_test): Do not allow spurious underflow
1008         exception.
1009
1010 2012-05-24  Jeff Law  <law@redhat.com>
1011
1012         * stdio-common/Makefile (tests): Add bug25.
1013         * stdio-common/bug25.c: New test.
1014
1015 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1016
1017         [BZ #13576]
1018         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
1019         multiple of MALLOC_ALIGNMENT in size.
1020         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
1021
1022 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1023
1024         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
1025         Require >= 256.
1026         (FILENAME_MAX): Use macro-int-constant.
1027         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
1028         (_IOFBF): Use macro-int-constant.
1029         (_IOLBF): Likewise.
1030         (_IONBF): Likewise.
1031         (SEEK_CUR): Likewise.
1032         (SEEK_END): Likewise.
1033         (SEEK_SET): Likewise.
1034         (TMP_MAX): Likewise.
1035         (EOF): Use macro-int-constant.  Require < 0.
1036         (NULL): Use macro-constant.  Require == 0.
1037         (stdin): Require type to be FILE *.
1038         (stdout): Likewise.
1039         (stderr): Likewise.
1040         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
1041         macro-int-constant.
1042         (EXIT_SUCCESS): Likewise.
1043         (NULL): Use macro-constant.  Require == 0.
1044         (RAND_MAX): Use macro-int-constant.
1045         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
1046         [C99-based standards] (strtof): Require function.
1047         [C99-based standards] (strtold): Likewise.
1048         [C99-based standards] (strtoll): Likewise.
1049         [C99-based standards] (strtoull): Likewise.
1050         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1051         [ISO || ISO99 || ISO11] (limits.h): Likewise.
1052         [ISO || ISO99 || ISO11] (math.h): Likewise.
1053         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
1054         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1055         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1056
1057 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
1058
1059         [BZ #14132]
1060         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
1061         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
1062         * intl/dgettext.c (DCGETTEXT): Likewise.
1063         * intl/gettext.c (DCGETTEXT): Likewise.
1064         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
1065         * posix/regex_internal.h (gettext): Likewise.
1066         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
1067         Remove declaration.
1068         * include/argz.h (__argz_count_internal)
1069         (__argz_stringify_internal): Remove declaration.
1070         (__argz_count, __argz_stringify): Declare hidden proto.
1071         * intl/dcgettext.c: Remove use of INTDEF.
1072         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
1073         * string/argz-stringify.c: Likewise.
1074         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1075         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1076         Declare hidden proto.
1077         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1078         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1079         Declare hidden proto.
1080         * include/stdio.h (__asprintf_internal): Don't declare.
1081         (__asprintf): Don't define as macro.  Declare hidden proto.
1082         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
1083         (__fsetlocking): Declare hidden proto.
1084         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
1085         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
1086         hidden proto.
1087         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
1088         (_IO_setlinebuf): Remove use of INTUSE.
1089         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
1090         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
1091         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
1092         Remove declaration.
1093         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
1094         (_IO_do_flush): Remove use of INTUSE.
1095         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
1096         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
1097         (_IO_adjust_column, _IO_least_wmarker)
1098         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
1099         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
1100         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
1101         (_IO_default_doallocate, _IO_wdefault_doallocate)
1102         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
1103         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
1104         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
1105         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
1106         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
1107         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
1108         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
1109         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
1110         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
1111         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
1112         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
1113         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
1114         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
1115         proto.
1116         (_IO_flush_all_internal, _IO_adjust_column_internal)
1117         (_IO_default_uflow_internal, _IO_default_finish_internal)
1118         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
1119         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
1120         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
1121         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
1122         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
1123         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
1124         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
1125         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
1126         (_IO_file_close_internal, _IO_file_close_it_internal)
1127         (_IO_file_underflow_internal, _IO_file_overflow_internal)
1128         (_IO_file_init_internal, _IO_file_attach_internal)
1129         (_IO_file_fopen_internal, _IO_file_read_internal)
1130         (_IO_file_sync_internal, _IO_file_seek_internal)
1131         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
1132         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
1133         (_IO_str_underflow_internal, _IO_str_overflow_internal)
1134         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
1135         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
1136         (_IO_list_all_internal, _IO_link_in_internal)
1137         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
1138         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
1139         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
1140         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
1141         (_IO_do_write_internal, _IO_padn_internal)
1142         (_IO_getline_info_internal, _IO_getline_internal)
1143         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
1144         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
1145         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
1146         (_IO_vfscanf_internal, _IO_vfprintf_internal)
1147         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
1148         (_IO_init_internal, _IO_un_link_internal): Don't declare.
1149         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
1150         with libc_hidden_ver, remove use of INTUSE.
1151         * libio/genops.c: Likewise.
1152         * libio/freopen.c: Likewise.
1153         * libio/freopen64.c: Likewise.
1154         * libio/iofclose.c: Likewise.
1155         * libio/iofdopen.c: Likewise.
1156         * libio/iofflush.c: Likewise.
1157         * libio/iofflush_u.c: Likewise.
1158         * libio/iofgets.c: Likewise.
1159         * libio/iofgets_u.c: Likewise.
1160         * libio/iofopen.c: Likewise.
1161         * libio/iofopncook.c: Likewise.
1162         * libio/iofread.c: Likewise.
1163         * libio/iofread_u.c: Likewise.
1164         * libio/ioftell.c: Likewise.
1165         * libio/iofwrite.c: Likewise.
1166         * libio/iogetline.c: Likewise.
1167         * libio/iogets.c: Likewise.
1168         * libio/iogetwline.c: Likewise.
1169         * libio/iopadn.c: Likewise.
1170         * libio/iopopen.c: Likewise.
1171         * libio/ioseekoff.c: Likewise.
1172         * libio/ioseekpos.c: Likewise.
1173         * libio/iosetbuffer.c: Likewise.
1174         * libio/iosetvbuf.c: Likewise.
1175         * libio/ioungetc.c: Likewise.
1176         * libio/ioungetwc.c: Likewise.
1177         * libio/iovdprintf.c: Likewise.
1178         * libio/iovsprintf.c: Likewise.
1179         * libio/iovsscanf.c: Likewise.
1180         * libio/memstream.c: Likewise.
1181         * libio/obprintf.c: Likewise.
1182         * libio/oldfileops.c: Likewise.
1183         * libio/oldiofclose.c: Likewise.
1184         * libio/oldiofdopen.c: Likewise.
1185         * libio/oldiofopen.c: Likewise.
1186         * libio/oldiopopen.c: Likewise.
1187         * libio/oldstdfiles.c: Likewise.
1188         * libio/putc.c: Likewise.
1189         * libio/setbuf.c: Likewise.
1190         * libio/setlinebuf.c: Likewise.
1191         * libio/stdfiles.c: Likewise.
1192         * libio/strops.c: Likewise.
1193         * libio/vasprintf.c: Likewise.
1194         * libio/vscanf.c: Likewise.
1195         * libio/vsnprintf.c: Likewise.
1196         * libio/vswprintf.c: Likewise.
1197         * libio/wfiledoalloc.c: Likewise.
1198         * libio/wfileops.c: Likewise.
1199         * libio/wgenops.c: Likewise.
1200         * libio/wmemstream.c: Likewise.
1201         * libio/wstrops.c: Likewise.
1202         * libio/__fpurge.c: Likewise.
1203         * libio/__fsetlocking.c: Likewise.
1204         * assert/assert.c: Likewise.
1205         * debug/fgets_chk.c: Likewise.
1206         * debug/fgets_u_chk.c: Likewise.
1207         * debug/fread_chk.c: Likewise.
1208         * debug/fread_u_chk.c: Likewise.
1209         * debug/gets_chk.c: Likewise.
1210         * debug/obprintf_chk.c: Likewise.
1211         * debug/vasprintf_chk.c: Likewise.
1212         * debug/vdprintf_chk.c: Likewise.
1213         * debug/vsnprintf_chk.c: Likewise.
1214         * debug/vsprintf_chk.c: Likewise.
1215         * malloc/mtrace.c: Likewise.
1216         * misc/error.c: Likewise.
1217         * misc/syslog.c: Likewise.
1218         * stdio-common/asprintf.c: Likewise.
1219         * stdio-common/fxprintf.c: Likewise.
1220         * stdio-common/getw.c: Likewise.
1221         * stdio-common/isoc99_fscanf.c: Likewise.
1222         * stdio-common/isoc99_scanf.c: Likewise.
1223         * stdio-common/isoc99_vfscanf.c: Likewise.
1224         * stdio-common/isoc99_vscanf.c: Likewise.
1225         * stdio-common/isoc99_vsscanf.c: Likewise.
1226         * stdio-common/printf-prs.c: Likewise.
1227         * stdio-common/printf_fp.c: Likewise.
1228         * stdio-common/printf_fphex.c: Likewise.
1229         * stdio-common/printf_size.c: Likewise.
1230         * stdio-common/putw.c: Likewise.
1231         * stdio-common/scanf.c: Likewise.
1232         * stdio-common/sprintf.c: Likewise.
1233         * stdio-common/tmpfile.c: Likewise.
1234         * stdio-common/vfprintf.c: Likewise.
1235         * stdio-common/vfscanf.c: Likewise.
1236         * stdlib/strfmon_l.c: Likewise.
1237         * sunrpc/openchild.c: Likewise.
1238         * sunrpc/xdr_stdio.c: Likewise.
1239         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
1240         * sysdeps/mach/hurd/tmpfile.c: Likewise.
1241
1242 2012-05-24  Roland McGrath  <roland@hack.frob.com>
1243
1244         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1245
1246         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
1247         in the third column, to generate for the shared library an IFUNC
1248         that uses _dl_vdso_vsym.
1249         * Makerules (COMPILE.c, compile-stdin.c): New variables.
1250         * Makeconfig (object-suffixes-noshared): New variable.
1251
1252         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
1253         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
1254         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
1255         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
1256
1257         [BZ #14132]
1258         * include/sys/time.h (__gettimeofday): Remove macro.
1259         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
1260         * time/gettimeofday.c (__gettimeofday): Remove #undef.
1261         Remove INTDEF.
1262         (__gettimeofday): Add libc_hidden_def.
1263         (gettimeofday): Add libc_hidden_weak.
1264         * sysdeps/mach/gettimeofday.c: Likewise.
1265         * sysdeps/posix/gettimeofday.c: Likewise.
1266         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
1267         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
1268         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
1269         (__gettimeofday_internal): Remove strong_alias.
1270         (__gettimeofday): Add libc_hidden_def.
1271         (gettimeofday): Add libc_hidden_weak.
1272         * sysdeps/unix/syscalls.list (gettimeofday):
1273         Remove __gettimeofday_internal alias.
1274
1275 2012-05-24  Daniel Jacobowitz  <drow@false.org>
1276             H.J. Lu  <hongjiu.lu@intel.com>
1277
1278         [BZ #12495]
1279         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
1280         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
1281         (largebin_index_32_big): New.
1282         (largebin_index): Use it for 16-byte alignment.
1283         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
1284         correction with front_misalign.
1285
1286 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1287
1288         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
1289         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
1290         Likewise.
1291         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
1292         Likewise.
1293         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1294         Likewise.
1295         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
1296         Likewise.
1297         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
1298         Likewise.
1299         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
1300         Likewise.
1301         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
1302         Likewise.
1303         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1304         Likewise.
1305         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
1306         Likewise.
1307         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
1308         Likewise.
1309         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
1310         Likewise.
1311         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
1312         Likewise.
1313
1314         * scripts/data/c++-types-x32-linux-gnu.data: New file.
1315         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
1316
1317 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1318
1319         [BZ #10846]
1320         [BZ #14036]
1321         * math/libm-test.inc (exp_test): Add test from bug 14036.
1322         (pow_test): Add test from bug 10846.
1323
1324         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
1325         and other flags.
1326         (special_function): Do not include flags in test name.
1327         (parse_args): Likewise.
1328         * sysdeps/i386/fpu/libm-test-ulps: Update.
1329         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1330         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1331         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
1332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1333
1334         * math/gen-libm-test.pl (%beautify): Add entries for underflow
1335         exceptions.
1336         * math/libm-test.inc ("Philosophy"): Update comment about
1337         exception testing.
1338         (UNDERFLOW_EXCEPTION): New macro.
1339         (UNDERFLOW_EXCEPTION_OK): Likewise.
1340         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
1341         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
1342         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
1343         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
1344         (INVALID_EXCEPTION_OK): Update value.
1345         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1346         (OVERFLOW_EXCEPTION_OK): Likewise.
1347         (IGNORE_ZERO_INF_SIGN): Likewise.
1348         (test_exceptions): Handle underflow exceptions.
1349         (acos_test): Update for underflow exception expectations.
1350         (cexp_test): Likewise.
1351         (clog_test): Likewise.
1352         (clog10_test): Likewise.
1353         (csqrt_test): Likewise.
1354         (ctan_test): Likewise.
1355         (ctanh_test): Likewise.
1356         (exp_test): Likewise.
1357         (exp10_test): Likewise.
1358         (exp2_test): Likewise.
1359         (expm1_test): Likewise.
1360         (fma_test): Likewise.
1361         (j0_test): Likewise.
1362         (jn_test): Likewise.
1363         (nexttoward_test): Likewise.
1364         (pow_test): Likewise.
1365         (scalbn_test): Likewise.
1366         (scalbln_test): Likewise.
1367         (tan_test): Likewise.
1368         (y1_test): Likewise.
1369         * sysdeps/i386/fpu/libm-test-ulps: Update.
1370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1371
1372 2012-05-23  David S. Miller  <davem@davemloft.net>
1373
1374         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1375         (__libc_sigaction): Remove unused local variables.
1376
1377 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1378
1379         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
1380
1381 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1382
1383         mktime: avoid signed integer overflow
1384         * time/mktime.c (__mktime_internal): Do not mishandle the case
1385         where diff == INT_MIN.
1386
1387         mktime: simplify computation of average
1388         * time/mktime.c (ranged_convert): Use new time_t_avg function
1389         instead of rolling our own (probably-slower) code.
1390
1391         mktime: do not assume signed right shift propagates sign bit
1392         * time/mktime.c (isdst_differ): New static function.
1393         (__mktime_internal): No need to normalize tm_isdst now.
1394         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
1395         tm_isdst values.
1396
1397         mktime: merge another wrapv change from gnulib
1398         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
1399         from some compilers.
1400
1401         mktime: remove incorrect attempt at unusual arithmetics
1402         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
1403         The code didn't really work on such machines anyway.
1404         (TYPE_MINIMUM): Assume two's complement.
1405         (twos_complement_arithmetic): Verify that long_int and time_t
1406         are two's complement (or unsigned, in the latter case).
1407
1408         mktime: check signed shifts on long_int and time_t, too
1409         * time/mktime.c (SHR): Check that shifts work as desired
1410         on the types long_int and time_t too, as SHR is used on
1411         such types.
1412
1413         mktime: do not assume 'long' is wide enough
1414         * time/mktime.c (verify): Move decl up.
1415         (long_int): New type.
1416         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
1417         to remove assumption in the code that 'long' is wide enough to
1418         store year values.  This assumption is not true on x32 and on
1419         some non-glibc platforms.
1420
1421         mktime: merge wrapv change from gnulib
1422         * time/mktime.c (WRAPV): New macro.
1423         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
1424         (guess_time_tm, __mktime_internal): Do not assume that signed
1425         integer overflow wraps around; modern compilers generate code
1426         where this assumption is no longer valid.
1427
1428 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1429
1430         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1431         Replace "jmp L(pseudo_end)" with "ret".
1432         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1433         Likewise.
1434
1435 2012-05-23  Andreas Jaeger  <aj@suse.de>
1436
1437         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
1438         * sysdeps/unix/sysv/linux/poll.c: Remove file.
1439
1440 2012-05-23  Andreas Jaeger  <aj@suse.de>
1441             Maximilian Attems  <max@stro.at>
1442
1443         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
1444         New macros.
1445
1446 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1447
1448         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
1449         code so that pseudo_end is just ret and the stack pointer is
1450         correct also for static library in error case.
1451
1452 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
1453
1454         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
1455         move to syscalls.list.
1456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1460
1461         * manual/install.texi (Running make install): Do not mention Linux
1462         kernel version for which pt_chown is not needed.
1463         (Linux): Do not mention problems with nscd with 2.0 kernels.
1464         * INSTALL: Regenerated.
1465
1466 2012-05-23  Andreas Jaeger  <aj@suse.de>
1467
1468         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
1469         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
1470         macro.
1471         * sysdeps/unix/sysv/linux/s390/bits/mman.h
1472         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1473         * sysdeps/unix/sysv/linux/sh/bits/mman.h
1474         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1475         * sysdeps/unix/sysv/linux/i386/bits/mman.h
1476         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1477         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
1478         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1479         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
1480         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1481         * sysdeps/unix/sysv/linux/bits/in.h
1482         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
1483
1484 2012-05-22  Roland McGrath  <roland@hack.frob.com>
1485
1486         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
1487         (PREPARE_VERSION): Just use assert instead, it will be elided
1488         under [NDEBUG] anyway.
1489
1490 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1491
1492         * sysdeps/unix/sysv/linux/Makefile: Include
1493         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
1494         (sysdep_routines): Remove sysctl.
1495         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
1496         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
1497         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
1498         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
1499         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
1500
1501 2012-05-22  Andreas Jaeger  <aj@suse.de>
1502
1503         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
1504         that pseudo_end is just ret and the stack pointer is correct also
1505         for static library in error case.
1506
1507 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
1508
1509         [BZ #14122]
1510         * nss/nsswitch.c (defconfig_entries): New variable.
1511         (__nss_database_lookup): Don't leak defconfig entries.
1512         (nss_parse_service_list): Don't leak on error paths.
1513         (free_database_entries): New function.
1514         (free_defconfig): New function.
1515         (free_mem): Move common code to free_database_entries.
1516
1517 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1518
1519         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
1520         Add arch_prctl.
1521         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
1522
1523         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
1524         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
1525         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
1526         New macro.
1527         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
1528         (INTERNAL_SYSCALL_TYPES): Likewise.
1529         (LOAD_ARGS_TYPES_[1-6]): Likewise.
1530         (LOAD_REGS_TYPES_[1-6]): Likewise.
1531         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
1532         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
1533
1534 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1535
1536         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
1537         copysignl for GLIBC_2_0.
1538         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
1539         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
1540         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
1541         logbl for GLIBC_2_0.
1542         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1543         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1544
1545 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1546
1547         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
1548         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1549
1550         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1551         Use "neg %eax".
1552
1553         * time/mktime.c: Update copyright years.
1554
1555 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1556
1557         mktime: merge comment-quoting-style change from gnulib
1558         * time/mktime.c: Quote 'like this' in comments.
1559         The GNU coding standards suggest that we no longer quote `like this',
1560         as "`" and "'" are typically rendered asymmetrically nowadays.
1561         The typical gnulib style is to quote 'like this' when quoting
1562         code, and "like this" when quoting English.
1563
1564         * time/mktime.c (compile-command): Add "-I.".
1565
1566         mktime: merge mktime-internal.h change from gnulib
1567         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
1568
1569         mktime: merge time_r change from gnulib
1570         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
1571
1572         mktime: merge DEBUG change from gnulib
1573         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
1574         case system <time.h> has a #define.
1575
1576         mktime: merge <sys/types.h> change from gnulib
1577         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
1578         since <time.t> is now guaranteed to define time_t.
1579
1580         mktime: merge HAVE_CONFIG_H change from gnulib
1581         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
1582
1583 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1584
1585         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1586         Use "neg %eax".
1587
1588         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
1589         __rlim_t cast.
1590         (struct rusage): Use anonymous union to pad each field to
1591         __syscall_slong_t.
1592
1593 2012-05-21  David S. Miller  <davem@davemloft.net>
1594
1595         * Makefules (o-iterator): Remove .s cases.
1596         (compile-command.s): Delete.
1597         (COMPILE.s): Delete.
1598         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
1599
1600 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
1601
1602         * configure.in (libc_cv_predef_stack_protector): Only consider
1603         "foobar" and "__stack_chk_fail" lines in libc_undefs.
1604         * configure: Regenerated.
1605
1606 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1607
1608         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1609         New macro.  Use R*LP on int and pointer.
1610         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
1611         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
1612         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
1613         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
1614
1615         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
1616         [__WORDSIZE_TIME64_COMPAT32] instead of
1617         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
1618         (struct utmp): Likewise.
1619         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
1620         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
1621         Renamed to ...
1622         (__WORDSIZE_TIME64_COMPAT32): This.
1623         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1624         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1625         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1626         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1627         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
1628         (__WORDSIZE_TIME64_COMPAT32): New macro.
1629
1630 2012-05-21  Andreas Jaeger  <aj@suse.de>
1631
1632         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
1633         only if [SHARED]. Add prototype for __wcschr_ia32.
1634
1635 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1636
1637         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
1638         of %rbp unmolested in the jmp_buf while mangling the low bits.
1639         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
1640         unmolested high bits of %rbp while demangling the low bits.
1641         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1642
1643 2012-05-21  Andreas Jaeger  <aj@suse.de>
1644
1645         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
1646         * sunrpc/svc_simple.c: Use it for registerrpc.
1647         * sunrpc/xcrypt.c: Use it for passwd2des.
1648
1649         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
1650
1651 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1652
1653         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
1654         Don't define if [__SYSCALL_WORDSIZE != 32].
1655         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
1656         New macro.
1657
1658 2012-05-21  Bruno Haible  <bruno@clisp.org>
1659             Andreas Jaeger  <aj@suse.de>
1660
1661         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
1662         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
1663         inptr and inend for must_buffer_ch.
1664         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
1665         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
1666         * stdio-common/Makefile (tests): Remove bug15.
1667         (bug15-ENV): Remove macro.
1668         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
1669         anymore.
1670
1671 2012-05-19  Andreas Jaeger  <aj@suse.de>
1672             Roland McGrath  <roland@hack.frob.com>
1673
1674         * manual/contrib.texi: Completely rewritten. It contains now an
1675         alphabetical list of contributors and their contributions.
1676
1677 2012-05-21  Richard Henderson  <rth@twiddle.net>
1678
1679         * misc/getauxval.c (__getauxval): Use unsigned long int.
1680         * misc/sys/auxv.h: Include <sys/cdefs.h>.
1681         (getauxval): Use unsigned long int.
1682
1683 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1684
1685         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1686
1687 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1688
1689         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
1690         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
1691         __alignof__ (long double).
1692
1693 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1694
1695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1696
1697 2012-05-20  Richard Henderson  <rth@twiddle.net>
1698
1699         * misc/getauxval.c: New file.
1700         * misc/sys/auxv.h: New file.
1701         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
1702         (routines): Add getauxval.
1703         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
1704         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
1705         * elf/dl-sysdep.c (_dl_auxv): Remove.
1706         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
1707         * elf/dl-support.c (_dl_auxv): New variable.
1708         (_dl_aux_init): Initialize it.
1709         * manual/startup.texi (Auxiliary Vector): New node.
1710         * sysdeps/generic/bits/hwcap.h: New file.
1711         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
1712         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
1713         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
1714         * sysdeps/sparc/sysdep.h: ... here.  Include it.
1715         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
1716         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
1717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1718         Update.
1719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
1720         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
1721         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
1722         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
1723         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1725         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
1726         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
1727
1728 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1729
1730         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1731
1732 2012-05-19  David S. Miller  <davem@davemloft.net>
1733
1734         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1735
1736 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1737
1738         [BZ #14123]
1739         * math/s_ccosh.c: Include <float.h>
1740         (__ccosh): Avoid internal overflow calculating sinh and cosh
1741         values before multiplying by sin and cos values.
1742         * math/s_ccoshf.c: Likewise.
1743         * math/s_ccoshl.c: Likewise.
1744         * math/s_csin.c: Likewise.
1745         * math/s_csinf.c: Likewise.
1746         * math/s_csinl.c: Likewise.
1747         * math/s_csinh.c: Likewise.
1748         * math/s_csinhf.c: Likewise.
1749         * math/s_csinhl.c: Likewise.
1750         * math/libm-test.inc (ccos_test): Add more tests.
1751         (ccosh_test): Likewise.
1752         (csin_test): Likewise.
1753         (csinh_test): Likewise.
1754         * sysdeps/i386/fpu/libm-test-ulps: Update.
1755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1756
1757 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1758
1759         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
1760         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1761
1762         * sysdeps/x86_64/x32/_itoa.h: Add comment.
1763
1764 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1765
1766         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
1767         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
1768         * sysdeps/powerpc/soft-fp/Versions: Likewise.
1769         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
1770         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
1771         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
1772         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
1773         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
1774         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
1775         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
1776         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
1777         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
1778         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
1779         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
1780         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
1781         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
1782         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
1783         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
1784         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
1785         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
1786         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
1787         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
1788         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
1789         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
1790         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
1791         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
1792         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
1793         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
1794         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
1795         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
1796         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
1797
1798 2012-05-18  Andreas Jaeger  <aj@suse.de>
1799
1800         * csu/.gitignore: Delete.
1801
1802 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1803
1804         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
1805         (timex): Use __syscall_slong_t.
1806
1807 2012-05-18  Andreas Jaeger  <aj@suse.de>
1808             Carlos O'Donell  <carlos_odonell@mentor.com>
1809
1810         * manual/install.texi (Configuring and compiling): Update
1811         description about files modified in the source directory.
1812         * INSTALL: Regenerated.
1813
1814 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1815
1816         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
1817         value.  Use "or" to set return value to -1.
1818         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
1819         negate return value.
1820
1821 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1822
1823         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
1824         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
1825         failure if the compiler has Graphite support disabled.
1826         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
1827         Likewise.
1828         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
1829         CFLAGS-memmove.c): Likewise.
1830         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
1831         Likewise.
1832
1833 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1834
1835         * sysdeps/x86_64/x32/_itoa.h: New file.
1836
1837         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
1838         getdents system call only if kernel and user dirents have the
1839         same d_ino and d_off.
1840
1841         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1842         LLONG_MAX != LONG_MAX.
1843         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1844         (_fitoa_word): Likewise.
1845
1846         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
1847         years.
1848         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
1849         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
1850         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
1851
1852         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
1853         include <bits/wordsize.h>.  Check __x86_64__ instead of
1854         __WORDSIZE.
1855         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
1856         if __x86_64__ is defined.  Use anonymous union on fpstate.
1857
1858         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
1859         anonymous union.
1860
1861 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
1862
1863         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
1864         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
1865         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
1866         Refer to _rtld_local_ro instead of _rtld_global_ro.
1867         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
1868         Likewise.
1869         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
1870         Likewise.
1871         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
1872         Likewise.
1873         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
1874         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
1875         of _rtld_global, and rtld_progname instead of _dl_argv[0].
1876
1877         * sysdeps/powerpc/powerpc32/dl-machine.c
1878         (__elf_machine_runtime_setup) [PROF]: Don't reference
1879         _dl_prof_resolve.
1880
1881 2012-05-18  Andreas Jaeger  <aj@suse.de>
1882
1883         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
1884         function only available for GCCs before 3.4 since GCC 3.4
1885         introduced a builtin.
1886         (lrint): Likewise.
1887         (llrintf): Likewise.
1888         (llrint): Likewise.
1889         (fmaxf): Likewise.
1890         (fmax): Likewise.
1891         (fminf): Likewise.
1892         (fmin): Likewise.
1893         (rint): Likewise.
1894         (rintf): Likewise.
1895         (nearbyint): Likewise.
1896         (nearbyintf): Likewise.
1897         (ceil): Likewise.
1898         (ceilf): Likewise.
1899         (floor): Likewise.
1900         (floorf): Likewise.
1901
1902 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1903
1904         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
1905         on both fields and cast pointer to __syscall_ulong_t.
1906
1907         * bits/types.h (__fsword_t): New type.
1908         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
1909         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
1910         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1911         (__FSWORD_T_TYPE): Likewise.
1912         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1913         (__FSWORD_T_TYPE): Likewise.
1914         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1915         (__FSWORD_T_TYPE): Likewise.
1916         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
1917         (__FSWORD_T_TYPE): Likewise.
1918         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
1919         __SWORD_TYPE with __fsword_t.
1920         (statfs64): Likewise.
1921
1922 2012-05-17  David S. Miller  <davem@davemloft.net>
1923
1924         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
1925
1926 2012-05-17  Andreas Jaeger  <aj@suse.de>
1927
1928         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
1929         warning.
1930
1931 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1932
1933         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
1934
1935 2012-05-17  Andreas Jaeger  <aj@suse.de>
1936
1937         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
1938         when it is used.
1939
1940 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1941
1942         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
1943
1944 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1945
1946         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
1947         * sysdeps/x86_64/tst-mallocalign1.c: New file.
1948
1949 2012-05-17  Andreas Jaeger  <aj@suse.de>
1950             Carlos O'Donell  <carlos_odonell@mentor.com>
1951
1952         [BZ #14059]
1953         * sysdeps/x86_64/multiarch/init-arch.h
1954         (bit_YMM_Usable): Rename to...
1955         (bit_AVX_Usable): ... this.
1956         (bit_FMA4_Usable): New macro.
1957         (bit_XMM_state): New macro.
1958         (bit_YMM_state): New macro.
1959         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
1960         [__ASSEMBLER__] (index_AVX_Usable): ... this.
1961         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
1962         (CPUID_OSXSAVE): New macro.
1963         (CPUID_AVX): New macro.
1964         (CPUID_FMA4): New macro.
1965         (index_YMM_Usable): Rename to...
1966         (index_AVX_Usable): ... this.
1967         (HAS_AVX): Use HAS_ARCH_FEATURE.
1968         (HAS_FMA4): Likewise.
1969         (HAS_YMM_USABLE): Remove.
1970         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1971         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
1972         are present.
1973         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
1974         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
1975         * sysdeps/x86_64/multiarch/Makefile: Likewise.
1976         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
1977         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
1978
1979 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1980
1981         * math/libm-test.c: Support platforms without multiple rounding modes.
1982         * math/bug-nextafter.c: Support platforms without FP exceptions.
1983         * math/bug-nexttoward.c: Likewise.
1984         * math/test-fenv.c: Likewise.
1985         * math/test-misc.c: Likewise.
1986         * stdlib/bug-getcontext.c: Likewise.
1987
1988 2012-05-17  Andreas Jaeger  <aj@suse.de>
1989
1990         * manual/examples/search.c (critter_cmp): Change signature to
1991         avoid warnings.
1992         * manual/string.texi (Collation Functions): Likewise.
1993
1994 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1995
1996         * bits/types.h: Fold copyright years.
1997         * bits/typesizes.h: Likewise.
1998         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
1999         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
2000         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
2001         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
2002         * time/time.h: Likewise.
2003
2004 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
2005
2006         [BZ #208]
2007         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
2008         in instead of returning them.  Return void.
2009         (__libc_mallinfo): Accumulate over all arenas.
2010         (__malloc_stats): Adjust for change in int_mallinfo interface.
2011
2012 2012-05-16  Roland McGrath  <roland@hack.frob.com>
2013
2014         [BZ #10375]
2015         * configure.in (NM): Add AC_CHECK_TOOL for it.
2016         (libc_extra_cflags): New substituted variable.
2017         Check for -fstack-protector being used implicitly.
2018         * configure: Regenerated.
2019         * config.make.in (config-extra-cflags): New variable,
2020         gets @libc_extra_cflags@.
2021         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
2022
2023         [BZ #10375]
2024         * configure.in: Check for _FORTIFY_SOURCE being predefined.
2025         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
2026         * configure: Regenerated.
2027         * config.make.in (CPPUNDEFS): New substituted variable.
2028         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
2029         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
2030         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
2031
2032 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2033
2034         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
2035         (mq_attr): Use __syscall_slong_t.
2036
2037 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2038
2039         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
2040         Check __x86_64__ instead of __WORDSIZE.
2041         (_STAT_VER_LINUX): Likewise.
2042         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
2043         __syscall_ulong_t and __syscall_slong_t.
2044         (stat64): Likewise.
2045
2046 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2047
2048         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
2049
2050 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2051
2052         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
2053
2054 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2055
2056         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
2057         __syscall_ulong_t.
2058
2059         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
2060         include <bits/wordsize.h>.  Check __x86_64__ instead of
2061         __WORDSIZE.
2062         (greg_t): Use "__extension__ long long int" if __x86_64__ is
2063         defined.
2064         (mcontext_t): Replace "unsigned long" with "unsigned long long".
2065
2066         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
2067         include <bits/wordsize.h>.  Check __x86_64__ instead of
2068         __WORDSIZE.
2069         (user_regs_struct): Use "__extension__ unsigned long long"
2070         instead of "unsigned long" if __x86_64__ is defined.
2071         (user): Likewise.  Pad after pointer field if __ILP32__ is
2072         defined.
2073
2074 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
2075
2076         * configure.in (makeinfo): Require version 4.5 or later.  Allow
2077         versions 5 to 9.
2078         * configure: Regenerated.
2079         * manual/install.texi (texinfo): Increase version requirement to
2080         4.5 or later.
2081         * INSTALL: Regenerated.
2082
2083         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
2084
2085 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2086
2087         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
2088
2089         * sysdeps/x86_64/x32/ffs.c: New file.
2090
2091         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
2092         __syscall_ulong_t.
2093         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
2094         defined.  Use __syscall_ulong_t.
2095         (shminfo): Use __syscall_ulong_t.
2096         (shm_info): Likewise.
2097
2098         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
2099         __syscall_ulong_t.
2100
2101         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
2102         <bits/wordsize.h>.
2103         (msgqnum_t): Use __syscall_ulong_t.
2104         (msglen_t): Likewise.
2105         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
2106         __syscall_ulong_t.
2107
2108         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
2109         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2110
2111         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
2112
2113         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
2114         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
2115
2116         * sysvipc/sys/msg.h (msgbuf): Replace long int with
2117         __syscall_slong_t.
2118
2119         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
2120         include <bits/wordsize.h>.  Check __x86_64__ instead of
2121         __WORDSIZE.
2122
2123         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
2124         "unsigned long long int" if __x86_64__ is defined.
2125         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
2126
2127         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
2128         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2129         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
2130
2131         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
2132         <stdint.h>.
2133         (GET_PC): Cast to uintptr_t first.
2134         (GET_FRAME): Likewise.
2135         (GET_STACK): Likewise.
2136
2137         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
2138         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
2139         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
2140         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
2141         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
2142         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
2143         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
2144         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
2145         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2146         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
2147         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
2148         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
2149         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2150         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
2151         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
2152         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
2153         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
2154         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
2155         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
2156         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
2157         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
2158         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
2159         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
2160         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
2161         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
2162         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
2163         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
2164         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
2165         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
2166
2167 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
2168
2169         * Makerules (+depfiles): Also collect depfiles from .oS in
2170         $(extra-objs).
2171         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
2172         .oS, $(libnldbl-routines)).
2173
2174         * Makerules (native-compile-mkdep-flags): Define.
2175         * sunrpc/Makefile (extra-objs): Add $(addprefix
2176         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
2177         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
2178         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
2179         calling $(make-target-directory).
2180
2181 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2182
2183         * bits/types.h (__snseconds_t): Removed.
2184         * time/time.h (struct timespec): Replace __snseconds_t with
2185         __syscall_slong_t.
2186         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
2187         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
2188         Likewise.
2189         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2190         (__SNSECONDS_T_TYPE): Likewise.
2191         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2192         (__SNSECONDS_T_TYPE): Likewise.
2193         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2194         (__SNSECONDS_T_TYPE): Likewise.
2195
2196 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2197
2198         * sysdeps/mach/hurd/bits/typesizes.h
2199         (__SYSCALL_SLONG_TYPE): New macro.
2200         (__SYSCALL_ULONG_TYPE): Likewise.
2201
2202 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2203
2204         * bits/types.h (__syscall_slong_t): New type.
2205         (__syscall_ulong_t): Likewise.
2206
2207         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
2208         (__SYSCALL_ULONG_TYPE): Likewise.
2209         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2210         (__SYSCALL_SLONG_TYPE): Likewise.
2211         (__SYSCALL_ULONG_TYPE): Likewise.
2212         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2213         (__SYSCALL_SLONG_TYPE): Likewise.
2214         (__SYSCALL_ULONG_TYPE): Likewise.
2215         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2216         (__SYSCALL_SLONG_TYPE): Likewise.
2217         (__SYSCALL_ULONG_TYPE): Likewise.
2218
2219 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2220
2221         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
2222         Add sigaltstack-offsets.sym.
2223         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2224         <sigaltstack-offsets.h>.
2225         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
2226         longjmp_msg pointer.
2227         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
2228         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
2229         signal stack.
2230         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
2231
2232 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2233
2234         * elf/stackguard-macros.h: Remove file.
2235         * sysdeps/generic/stackguard-macros.h: New file.
2236         * sysdeps/i386/stackguard-macros.h: Likewise.
2237         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
2238         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
2239         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
2240         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
2241         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
2242         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
2243         * sysdeps/x86_64/stackguard-macros.h: Likewise.
2244         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
2245         <elf/stackguard-macros.h>.
2246
2247         [BZ #14109]
2248         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
2249         __aligned__ in attribute.
2250         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
2251         (gregset_t): Likewise.
2252
2253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2254
2255         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
2256         * sysdeps/x86_64/64/Implies-after: Here.  New file.
2257         * sysdeps/x86_64/x32/Implies-after: New file.
2258
2259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2260
2261         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
2262         and access return value for _dl_profile_fixup.  Use R10_LP to
2263         load frame size.
2264
2265 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2266
2267         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
2268
2269 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2270
2271         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
2272         * sysdeps/x86_64/x32/sysdep.h: New file.
2273
2274 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2275
2276         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
2277         * sysdeps/x86_64/setjmp.S: Likewise.
2278
2279 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2280
2281         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
2282         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
2283         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
2284         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
2285         remove unused global constant.
2286
2287 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
2288
2289         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
2290         include of <not-cancel.h>.
2291
2292 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2293
2294         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
2295
2296 2012-05-15  Jeff Law  <law@redhat.com>
2297             Andreas Jaeger  <aj@suse.de>
2298
2299         [BZ #13594]
2300         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
2301         out from...
2302         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
2303         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
2304         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
2305         code changing __hst_map_handle.map.
2306
2307 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2308
2309         * configure.in (sysnames): Look for Implies-before and Implies-after
2310         files.
2311         * configure: Regenerated.
2312
2313 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2314
2315         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
2316         8-byte data alignment with LP_SIZE alignment.
2317
2318 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2319
2320         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
2321         into R10_LP.
2322
2323 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2324
2325         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
2326
2327 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2328
2329         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
2330         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
2331         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
2332         Likewise.
2333         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2334
2335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2336
2337         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
2338         (stackinfo_sub_sp): Likewise.
2339
2340 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2341
2342         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
2343         RAX_LP.
2344
2345 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2346
2347         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
2348         into R*_LP.
2349
2350 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2351
2352         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
2353         sizes into R*_LP.
2354
2355 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2356
2357         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
2358
2359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2360
2361         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
2362         into R11_LP and load __x86_64_shared_cache_size_half into
2363         R8_LP.
2364
2365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2366
2367         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
2368         R8_LP.
2369
2370 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2371
2372         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
2373         logb for POWER7.
2374         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
2375         logbf for POWER7.
2376         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
2377         logbl for POWER7.
2378         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
2379         powerpc32/power7/fpu/s_logb.c via #include.
2380         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
2381         powerpc32/power7/fpu/s_logbf.c via #include.
2382         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
2383         powerpc32/power7/fpu/s_logbl.c via #include.
2384
2385 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2386
2387         * README.libm: Remove file.
2388
2389 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2390
2391         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
2392         count for x32.  Use R*_LP and omit operand-size suffix.
2393
2394 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2395
2396         * shlib-versions: Move x86_64-.*-linux.* entries to ...
2397         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
2398         * sysdeps/x86_64/x32/shlib-versions: New file.
2399
2400 2012-05-14  Roland McGrath  <roland@hack.frob.com>
2401
2402         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
2403         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
2404         Use _dl_fatal_printf instead.
2405
2406 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2407
2408         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
2409         set if not set by the user.  Do not allow for being unset.
2410         * sysdeps/unix/sysv/linux/configure: Regenerated.
2411
2412 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2413
2414         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
2415         the `q' suffix from lea and replace .quad with ASM_ADDR.
2416
2417 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2418
2419         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
2420         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
2421         instead of $17.
2422         (PTR_DEMANGLE): Likewise.
2423
2424 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2425
2426         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
2427         (LP_OP): Likewise.
2428         (ASM_ADDR): Likewise.
2429         (RAX_LP): Likewise.
2430         (RBP_LP): Likewise.
2431         (RBX_LP): Likewise.
2432         (RCX_LP): Likewise.
2433         (RDI_LP): Likewise.
2434         (RSI_LP): Likewise.
2435         (RSP_LP): Likewise.
2436         (R8_LP): Likewise.
2437         (R9_LP): Likewise.
2438         (R10_LP): Likewise.
2439         (R10_LP): Likewise.
2440         (R11_LP): Likewise.
2441         (R12_LP): Likewise.
2442         (R13_LP): Likewise.
2443         (R14_LP): Likewise.
2444         (R15_LP): Likewise.
2445
2446 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2447
2448         * sysdeps/x86_64/x32/dl-machine.h: New file.
2449
2450 2012-05-14  Andreas Jaeger  <aj@suse.de>
2451
2452         * manual/Makefile (subdir): Remove export of subdir.
2453         (all): Remove target.
2454         (.PHONY): Remove all from list.
2455         (mkinstalldirs): Remove.
2456         (.PHONY): Remove installdirs from list.
2457         ($(inst_infodir)/libc.info): Use make-target-directory.
2458         (installdirs): Remove.
2459         (subdir_%): Remove.
2460         (glibc-targets): Remove.
2461         (lib): Remove.
2462         (stubs): Remove.
2463         ($(objpfx)stubs ../po/manual.pot): Remove.
2464         ($(objpfx)stamp%): Remove.
2465         (make-target-directory): Remove.
2466         (subdir_install): Remove.
2467         (routines): Remove.
2468         (aux): Remove.
2469         (sources): Remove.
2470         (objects): Remove.
2471         (headers): Remove.
2472
2473         [BZ #13750]
2474         * manual/.gitignore: Remove, it's not needed anymore.
2475         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
2476         all files in it.
2477         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
2478         directory.
2479         (texis): Renamed to $(objpfx)texis.
2480         (texis-path): New, contains path to generated files.
2481         (chapters.%): Use texis-path for complete path, add extra argument
2482         libc-texinfo.sh.
2483         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
2484         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
2485         (summary,texi, stamp-summary): Use complete path of
2486         files. Generate files in build dir.
2487         (dir-add.texi): Build in build dir.
2488         (libm-err.texi,stamp-libm-err): Likewise.
2489         (version.texi, stamp-version): Likewise.
2490         (.%c.texi): Likewise.
2491         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
2492         (mostlyclean): Remove target.
2493         (realclean): Remove target.
2494         (generated): Add new variable with contents from mostlyclean and
2495         realclean, remove entries duplicated in common-mostlyclean, add
2496         stamp-libm-err and stamp-version.
2497         (generated-dirs): Add libc directory.
2498         ($(inst_infodir)/libc.info): Install files from build dir.
2499
2500         * manual/install.texi (Configuring and compiling): Adjust since
2501         the info files are not part of the tar ball anymore.
2502
2503 2012-05-14  Andreas Jaeger  <aj@suse.de>
2504
2505         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
2506         variable.
2507
2508 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2509
2510         [BZ #13717]
2511         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2512         to 2.2.0 where earlier.
2513         * sysdeps/unix/sysv/linux/configure: Regenerated.
2514         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
2515         Remove conditional code.
2516         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
2517         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
2518         Remove conditional code.
2519         [!__NR_lchown]: Likewise.
2520         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2521         [__NR_lchown]: Likewise.
2522         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
2523         comment referencing __ASSUME_LCHOWN_SYSCALL.
2524         * sysdeps/unix/sysv/linux/i386/sigaction.c
2525         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2526         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2527         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
2528         Remove conditional code.
2529         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
2530         (__protocol_available): Remove #if 0 code.
2531         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
2532         conditional code.
2533         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
2534         * sysdeps/unix/sysv/linux/kernel-features.h
2535         (__ASSUME_GETCWD_SYSCALL): Don't define.
2536         (__ASSUME_REALTIME_SIGNALS): Likewise.
2537         (__ASSUME_PREAD_SYSCALL): Likewise.
2538         (__ASSUME_PWRITE_SYSCALL): Likewise.
2539         (__ASSUME_POLL_SYSCALL): Likewise.
2540         (__ASSUME_LCHOWN_SYSCALL): Likewise.
2541         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
2542         non-SPARC.
2543         (__ASSUME_SIOCGIFNAME): Don't define.
2544         (__ASSUME_MSG_NOSIGNAL): Likewise.
2545         (__ASSUME_SENDFILE): Define unconditionally.
2546         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
2547         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
2548         conditional code.
2549         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
2550         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
2551         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2552         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2553         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
2554         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2555         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
2557         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2558         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
2560         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2561         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
2563         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2564         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
2566         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2567         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
2569         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2570         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
2572         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2573         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
2575         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2576         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
2578         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2579         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2580         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
2581         Remove conditional code.
2582         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2583         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2584         Remove conditional code.
2585         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2586         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
2587         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
2588         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2589         Remove conditional code.
2590         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2591         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
2592         Remove conditional code.
2593         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2594         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
2595         Remove conditional code.
2596         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2597         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2598         Remove conditional code.
2599         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2600         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2601         Remove conditional code.
2602         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2603         * sysdeps/unix/sysv/linux/sh/pwrite64.c
2604         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2605         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2606         * sysdeps/unix/sysv/linux/sigaction.c
2607         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2608         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2609         * sysdeps/unix/sysv/linux/sigpending.c
2610         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2611         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2612         * sysdeps/unix/sysv/linux/sigprocmask.c
2613         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2614         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2615         * sysdeps/unix/sysv/linux/sigsuspend.c
2616         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2617         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2618         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2619         (__libc_missing_rt_sigs): Remove.
2620         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
2621         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
2622         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
2623         Remove conditional code.
2624         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
2625         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
2626         return 1.
2627         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
2628         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
2629         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
2630         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
2631
2632 2012-05-14  Andreas Jaeger  <aj@suse.de>
2633
2634         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
2635         it's not used in glibc.
2636         (__coshm1): Likewise.
2637         (__acosh1p): Likewise.
2638         (__sgn): Likewise.
2639
2640         * manual/string.texi (Copying and Concatenation): Add missing
2641         variable in concat example.
2642         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
2643
2644 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2645
2646         [BZ #14103]
2647         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
2648         __builtin_clzl with __builtin_clzll.
2649
2650 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2651
2652         [BZ #14104]
2653         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
2654         libc_freeres_ptr.
2655
2656 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2657
2658         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
2659         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
2660         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
2661         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
2662
2663 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
2664
2665         * NEWS: Update ia64 info.
2666
2667 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
2668
2669         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
2670         used as bcopy.
2671
2672 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2673
2674         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
2675         * sysdeps/unix/syscalls.list (dup3): Likewise.
2676         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
2677         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
2678
2679 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2680
2681         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
2682         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
2683
2684 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2685
2686         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
2687         thread pointer.
2688         (TLS_IE): Use mov/add instead of movq/addq to load thread
2689         pointer.
2690         (TLS_GD_PREFIX): New.
2691         (TLS_GD): Use it.
2692
2693 2012-05-11  David S. Miller  <davem@davemloft.net>
2694
2695         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
2696         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
2697         (_FPU_SETCW): Likewise.
2698
2699 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2700
2701         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
2702         is 32-byte aligned.
2703
2704 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
2705
2706         [BZ #11837]
2707         * iconvdata/gb18030.c: Update tables.
2708         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
2709         characters specially.
2710         (BODY for TO_LOOP): Add encoding of missing ranges.
2711
2712 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2713
2714         [BZ #13673]
2715         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
2716         * sysdeps/mach/hurd/dup3.c: Likewise.
2717         * sysdeps/mach/hurd/readlinkat.c: Likewise.
2718         * sysdeps/powerpc/memmove.c:: Likewise.
2719
2720 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2721
2722         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
2723         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
2724
2725 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2726
2727         * elf/elf.h (R_X86_64_RELATIVE64): New.
2728         (R_X86_64_NUM): Updated.
2729         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2730         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
2731         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
2732         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
2733         tst-quad1pie tst-quad2pie
2734         (modules-names): Add tst-quadmod1 tst-quadmod2.
2735         ($(objpfx)tst-quad1): New dependency.
2736         ($(objpfx)tst-quad2): Likewise.
2737         ($(objpfx)tst-quad1pie): Likewise.
2738         ($(objpfx)tst-quad2pie): Likewise.
2739         * sysdeps/x86_64/tst-quad1.c: New file.
2740         * sysdeps/x86_64/tst-quad1pie.c: New file.
2741         * sysdeps/x86_64/tst-quad2.c: Likewise.
2742         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
2743         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
2744         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
2745         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
2746         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
2747
2748 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2749
2750         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
2751         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
2752         * streams/stropts.h (t_scalar_t): Define type.
2753
2754         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
2755         (_PATH_PRESERVE): Set to "/var/lib".
2756         (_PATH_RWHODIR): Set to "/var/spool/rwho".
2757
2758         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
2759         instead of int.
2760
2761         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
2762         if __dir_mkfile succeeded.
2763
2764         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
2765         checking for _hurd_dtablesize.  Unlock it right after having
2766         finished _hurd_dtable allocation.
2767
2768 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2769
2770         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
2771         * sysdeps/mach/hurd/configure: Regenerated.
2772         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
2773         special-casing to...
2774         * sysdeps/gnu/configure.in: ... this new file.
2775         * sysdeps/unix/sysv/linux/configure: Regenerated.
2776         * sysdeps/gnu/configure: New generated file.
2777
2778         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
2779         for Linux: use nsec instead of usec, as well as:
2780         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
2781         members of type struct timespec.
2782         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
2783         New macros.
2784         (struct stat64): Likewise.
2785         (_STATBUF_ST_NSEC): New macro.
2786         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
2787
2788         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2789         __strtoul_internal rather than strtoul.
2790
2791 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2792
2793         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
2794         and reject them.
2795
2796 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2797
2798         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
2799         which preserves existing values.
2800         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
2801
2802 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2803
2804         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
2805         TIMEOUT values.  Return EINVAL for NFDS values either negative or
2806         greater than FD_SETSIZE.
2807
2808 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2809
2810         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
2811         allocated, call __vm_protect to finish enabling the existing space, and
2812         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
2813         allocate the remainder.
2814
2815 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2816
2817         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
2818         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
2819
2820 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2821
2822         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
2823         sysdeps/mach/hurd/readlink.c.
2824
2825         * posix/tst-sysconf.c (posix_options): Only use
2826         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
2827         _POSIX_SYNCHRONIZED_IO when they are defined
2828         * sysdeps/mach/hurd/bits/posix_opt.h:
2829         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
2830         (_XOPEN_REALTIME): Undefine macro.
2831         (_XOPEN_REALTIME_THREADS): Undefine macro.
2832         (_XOPEN_SHM): Undefine macro.
2833         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
2834         macro to -1.
2835         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
2836         macro to -1.
2837         (_POSIX_ASYNC_IO): Undefine macro.
2838         (_POSIX_PRIORITIZED_IO): Undefine macro.
2839         (_POSIX_SPIN_LOCKS): Define macro to -1.
2840
2841         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
2842         SA_NODEFER, SA_RESETHAND.
2843         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
2844         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
2845         F_DUPFD_CLOEXEC.
2846
2847 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2848
2849         * elf/Makefile (pldd-modules): Define unconditionally.
2850
2851 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2852
2853         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
2854
2855 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2856
2857         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2858         Return ENOENT when name is empty.
2859         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
2860
2861 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2862
2863         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
2864
2865         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
2866
2867 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2868
2869         Fix mlock in all cases except non-readable pages.
2870         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
2871         instead of VM_PROT_ALL as parameter to __vm_wire function.
2872
2873         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
2874         (__mkdir): When path is `/', just fail with EEXIST.
2875         * sysdeps/mach/hurd/mkdirat.c: Likewise.
2876
2877 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2878
2879         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
2880         <sys/uio.h> (for writev).
2881         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
2882         and <sys/param.h> (for MIN).
2883
2884 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2885
2886         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
2887         REQUESTED_TIME.  Properly set the remaining time and return EINTR
2888         if interrupted.
2889
2890 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2891
2892         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
2893         Depend on against $(link-rpcuserlibs).
2894
2895 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2896
2897         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
2898         (__libc_stack_end): Do not use attribute_relro.
2899         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
2900         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
2901         to libthread-provided value.
2902         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
2903         attribute_relro.
2904
2905 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2906
2907         [BZ #3748]
2908         * bits/libc-lock.h (__libc_once_get): New macro.
2909         * sysdeps/mach/bits/libc-lock.h: Likewise.
2910         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
2911         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
2912         instead of using implementation details.
2913
2914         * libio/fileops.c: Unconditionally include <kernel-features.h>.
2915         * libio/freopen.c: Likewise.
2916         * libio/freopen64.c: Likewise.
2917         * misc/syslog.c: Likewise.
2918         * nscd/connections.c: Likewise.
2919         * nscd/netgroupcache.c: Likewise.
2920         * sysdeps/posix/getcwd.c: Likewise.
2921
2922 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2923
2924         * math/w_ilogbf.c: Add #include <limits.h>.
2925
2926 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2927
2928         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
2929         path instead of returning without unlocking.
2930
2931         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
2932         immediate-write ioctls.
2933         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
2934
2935 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2936
2937         * sysdeps/mach/hurd/i386/init-first.c (init): Use
2938         __builtin_frame_address instead of making assumptions about the
2939         location of the return address relative to DATA.  Force early load of
2940         the return address.
2941         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
2942         __builtin_frame_address.
2943
2944         dup3 for GNU Hurd.
2945         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
2946         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
2947         implement dup3 and do some further code clean-ups.
2948         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
2949         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
2950
2951 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2952
2953         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
2954
2955         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
2956         HURD_CRITICAL_END around holding _hurd_dtable_lock.
2957         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
2958         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
2959         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
2960         d->port.lock.
2961
2962         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
2963         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
2964         when handler == SIG_ERR, not when handler != SIG_ERR.
2965
2966 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2967
2968         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
2969         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
2970         definitions.
2971
2972         accept4 for GNU Hurd.
2973         * include/sys/socket.h (__libc_accept4): New prototype.
2974         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
2975         to implement __libc_accept4.
2976         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
2977         __libc_accept4.
2978         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
2979
2980         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
2981         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
2982         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
2983         signal-defines.sym.
2984
2985 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2986
2987         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
2988
2989 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2990
2991         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
2992         assertion on O_CLOEXEC flag.
2993         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
2994         * hurd/intern-fd.c: Likewise.
2995         * hurd/port2fd.c: Likewise.
2996
2997 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2998
2999         [BZ #3906]
3000         * bits/in.h (IPV6_PKTINFO): Define new macro.
3001         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
3002
3003 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3004
3005         [BZ #13954]
3006         [BZ #13955]
3007         [BZ #13956]
3008         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
3009         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3010         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
3011         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3012         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3013         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3014         * math/libm-test.inc (logb_test) : Additional logb tests.
3015
3016 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
3017             Andreas Jaeger  <aj@suse.de>
3018
3019         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
3020         * configure: Regenerated.
3021         * config.h.in (LINK_OBSOLETE_RPC): New macro.
3022         * config.make.in (link-obsolete-rpc): New substituted variable.
3023         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
3024         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
3025         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3026         (shared-only-routines): Don't set it under [link-obsolete-rpc],
3027         so that libc.a contains the symbols.
3028         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3029         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
3030         * sunrpc/auth_none.c: Likewise.
3031         * sunrpc/auth_unix.c: Likewise.
3032         * sunrpc/authdes_prot.c: Likewise.
3033         * sunrpc/authuxprot.c: Likewise.
3034         * sunrpc/clnt_gen.c: Likewise.
3035         * sunrpc/clnt_perr.c: Likewise.
3036         * sunrpc/clnt_raw.c: Likewise.
3037         * sunrpc/clnt_simp.c: Likewise.
3038         * sunrpc/clnt_tcp.c: Likewise.
3039         * sunrpc/clnt_udp.c: Likewise.
3040         * sunrpc/clnt_unix.c: Likewise.
3041         * sunrpc/des_crypt.c: Likewise.
3042         * sunrpc/des_soft.c: Likewise.
3043         * sunrpc/get_myaddr.c: Likewise.
3044         * sunrpc/key_call.c: Likewise.
3045         * sunrpc/key_prot.c: Likewise.
3046         * sunrpc/netname.c: Likewise.
3047         * sunrpc/pm_getmaps.c: Likewise.
3048         * sunrpc/pm_getport.c: Likewise.
3049         * sunrpc/pmap_clnt.c: Likewise.
3050         * sunrpc/pmap_prot.c: Likewise.
3051         * sunrpc/pmap_prot2.c: Likewise.
3052         * sunrpc/pmap_rmt.c: Likewise.
3053         * sunrpc/publickey.c: Likewise.
3054         * sunrpc/rpc_cmsg.c: Likewise.
3055         * sunrpc/rpc_common.c: Likewise.
3056         * sunrpc/rpc_dtable.c: Likewise.
3057         * sunrpc/rpc_prot.c: Likewise.
3058         * sunrpc/rpc_thread.c: Likewise.
3059         * sunrpc/rtime.c: Likewise.
3060         * sunrpc/svc.c: Likewise.
3061         * sunrpc/svc_auth.c: Likewise.
3062         * sunrpc/svc_raw.c: Likewise.
3063         * sunrpc/svc_run.c: Likewise.
3064         * sunrpc/svc_tcp.c: Likewise.
3065         * sunrpc/svc_udp.c: Likewise.
3066         * sunrpc/svc_unix.c: Likewise.
3067         * sunrpc/svcauth_des.c: Likewise.
3068         * sunrpc/xcrypt.c: Likewise.
3069         * sunrpc/xdr.c: Likewise.
3070         * sunrpc/xdr_array.c: Likewise.
3071         * sunrpc/xdr_float.c: Likewise.
3072         * sunrpc/xdr_intXX_t.c: Likewise.
3073         * sunrpc/xdr_mem.c: Likewise.
3074         * sunrpc/xdr_rec.c: Likewise.
3075         * sunrpc/xdr_ref.c: Likewise.
3076         * sunrpc/xdr_sizeof.c: Likewise.
3077         * sunrpc/xdr_stdio.c: Likewise.
3078
3079 2012-05-10  Roland McGrath  <roland@hack.frob.com>
3080
3081         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
3082         change.  Update copyright years.
3083
3084 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3085
3086         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
3087
3088 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
3089             Joseph Myers  <joseph@codesourcery.com>
3090             Paul Pluzhnikov  <ppluzhnikov@google.com>
3091
3092         [BZ #14012]
3093         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
3094         requiring rpcgen.
3095         [cross-compiling] (extra-libs): Likewise.
3096         [cross-compiling] (extra-libs-others): Likewise.
3097         [cross-compiling] (librpcsvc-routines): Likewise.
3098         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
3099         [cross-compiling] (omit-deps): Likewise.
3100         (sunrpc-CPPFLAGS): New variable.
3101         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
3102         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
3103         (cross-rpcgen-objs): New variable.
3104         (extra-objs): Append $(cross-rpcgen-objs).
3105         ($(cross-rpcgen-objs)): New rule.
3106         ($(objpfx)cross-rpcgen): Likewise.
3107         (rpcgen-cmd): Define to use $(built-program-file).  Expand
3108         comment.
3109         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
3110         ($(objpfx)x%.stmp): Likewise.
3111         * sunrpc/proto.h [IS_IN_build] (_): Define.
3112         [IS_IN_build] (_libc_intl_domainname): Likewise.
3113
3114 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3115
3116         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
3117         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
3118         and R_X86_64_TPOFF64.
3119
3120 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3121
3122         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
3123         sysdeps/unix/sysv/syscalls.list.
3124         (stime): Likewise.
3125         (utime): Likewise.
3126         * sysdeps/unix/sysv/syscalls.list: Remove file.
3127
3128 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3129
3130         [BZ #3440]
3131         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
3132         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
3133         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
3134         (__LC_IDENTIFICATION): Make these macros useful in #if
3135         expressions, as required by C99.
3136
3137 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
3138
3139         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
3140         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
3141         after this.
3142
3143 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3144
3145         * stdlib/longlong.h: Updated from GCC.
3146
3147 2012-05-09  Andreas Jaeger  <aj@suse.de>
3148
3149         * nscd/nscd.c (run_modes): Make named enum, reorder so that
3150         default is first entry.
3151         (run_mode): Set type.
3152         (main): Remove informal message about syslog.
3153         (options): Fix typo.
3154
3155         [BZ #14053]
3156         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
3157         to asm.
3158         (lrint): Likewise.
3159         (llrintf): Likewise.
3160         (llrint): Likewise.
3161         (rint): Likewise.
3162         (rintf): Likewise.
3163         (nearbyint): Likewise.
3164         (nearbyintf): Likewise.
3165
3166 2012-05-09  Andreas Jaeger  <aj@suse.de>
3167             Pedro Alves  <palves@redhat.com>
3168
3169         * nscd/nscd.c (run_mode): Use enum.
3170         (main): Cleanup coding style issue.
3171
3172 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
3173             Andreas Jaeger  <aj@suse.de>
3174
3175         * nscd/nscd.c (go_background): Replaced with...
3176         (run_mode): ... this.
3177         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
3178         (options): Add -F --foreground.
3179         (main): Implement it.
3180         (parse_opt): Parse it.
3181
3182 2012-05-09  Andreas Jaeger  <aj@suse.de>
3183
3184         [BZ #14083]
3185         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
3186         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
3187         -Wconversion warning.
3188         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
3189         Likewise.
3190
3191 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
3192
3193         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
3194         == 0.
3195         (LC_ALL): Use macro-int-constant.
3196         (LC_COLLATE): Likewise.
3197         (LC_CTYPE): Likewise.
3198         (LC_MESSAGES): Likewise.
3199         (LC_MONETARY): Likewise.
3200         (LC_NUMERIC): Likewise.
3201         (LC_TIME): Likewise.
3202         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
3203         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3204         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3205         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
3206         Specify type.
3207         [C99-based standards] (float_t): Expect type.
3208         [C99-based standards] (double_t): Expect type.
3209         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
3210         type.
3211         [C99-based standards] (HUGE_VALL): Likewise.
3212         [C99-based standards] (INFINITY): Likewise.
3213         [C99-based standards] (NAN): Likewise.
3214         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
3215         [C99-based standards] (FP_NAN): Likewise.
3216         [C99-based standards] (FP_NORMAL): Likewise.
3217         [C99-based standards] (FP_SUBNORMAL): Likewise.
3218         [C99-based standards] (FP_ZERO): Likewise.
3219         [C99-based standards] (FP_FAST_FMA): Use
3220         optional-macro-int-constant.  Specify type.  Require == 1.
3221         [C99-based standards] (FP_FAST_FMAF): Likewise.
3222         [C99-based standards] (FP_FAST_FMAL): Likewise.
3223         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
3224         [C99-based standards] (FP_ILOGBNAN): Likewise.
3225         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
3226         Specify type.
3227         [C99-based standards] (MATH_ERREXCEPT): Likewise.
3228         [C99-based standards] (math_errhandling): Specify type.
3229         [ISO99 || ISO11] (signgam): Do not allow.
3230         [non-C99-based standards] (copysignf): Do not allow.
3231         [non-C99-based standards] (exp2f): Likewise.
3232         [non-C99-based standards] (log2f): Likewise.
3233         [non-C99-based standards] (modff): Allow.
3234         [non-C99-based standards] (erff): Do not allow.
3235         [non-C99-based standards] (erfcf): Likewise.
3236         [non-C99-based standards] (gammaf): Likewise.
3237         [non-C99-based standards] (hypotf): Likewise.
3238         [non-C99-based standards] (j0f): Likewise.
3239         [non-C99-based standards] (j1f): Likewise.
3240         [non-C99-based standards] (jnf): Likewise.
3241         [non-C99-based standards] (lgammaf): Likewise.
3242         [non-C99-based standards] (tgammaf): Likewise.
3243         [non-C99-based standards] (y0f): Likewise.
3244         [non-C99-based standards] (y1f): Likewise.
3245         [non-C99-based standards] (ynf): Likewise.
3246         [non-C99-based standards] (isnanf): Likewise.
3247         [non-C99-based standards] (acoshf): Likewise.
3248         [non-C99-based standards] (asinhf): Likewise.
3249         [non-C99-based standards] (atanhf): Likewise.
3250         [non-C99-based standards] (cbrtf): Likewise.
3251         [non-C99-based standards] (expm1f): Likewise.
3252         [non-C99-based standards] (ilogbf): Likewise.
3253         [non-C99-based standards] (log1pf): Likewise.
3254         [non-C99-based standards] (logbf): Likewise.
3255         [non-C99-based standards] (nextafterf): Likewise.
3256         [non-C99-based standards] (remainderf): Likewise.
3257         [non-C99-based standards] (rintf): Likewise.
3258         [non-C99-based standards] (scalbf): Likewise.
3259         [non-C99-based standards] (copysignl): Likewise.
3260         [non-C99-based standards] (exp2l): Likewise.
3261         [non-C99-based standards] (log2l): Likewise.
3262         [non-C99-based standards] (modfl): Allow.
3263         [non-C99-based standards] (erfl): Do not allow.
3264         [non-C99-based standards] (erfcl): Likewise.
3265         [non-C99-based standards] (gammal): Likewise.
3266         [non-C99-based standards] (hypotl): Likewise.
3267         [non-C99-based standards] (j0l): Likewise.
3268         [non-C99-based standards] (j1l): Likewise.
3269         [non-C99-based standards] (jnl): Likewise.
3270         [non-C99-based standards] (lgammal): Likewise.
3271         [non-C99-based standards] (tgammal): Likewise.
3272         [non-C99-based standards] (y0l): Likewise.
3273         [non-C99-based standards] (y1l): Likewise.
3274         [non-C99-based standards] (ynl): Likewise.
3275         [non-C99-based standards] (isnanl): Likewise.
3276         [non-C99-based standards] (acoshl): Likewise.
3277         [non-C99-based standards] (asinhl): Likewise.
3278         [non-C99-based standards] (atanhl): Likewise.
3279         [non-C99-based standards] (cbrtl): Likewise.
3280         [non-C99-based standards] (expm1l): Likewise.
3281         [non-C99-based standards] (ilogbl): Likewise.
3282         [non-C99-based standards] (log1pl): Likewise.
3283         [non-C99-based standards] (logbl): Likewise.
3284         [non-C99-based standards] (nextafterl): Likewise.
3285         [non-C99-based standards] (remainderl): Likewise.
3286         [non-C99-based standards] (rintl): Likewise.
3287         [non-C99-based standards] (scalbl): Likewise.
3288         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3289         [non-C99-based standards] (FP_*): Do not allow.
3290         [C99-based standards] (FP_*): Change to
3291         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3292         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3293         allow.
3294         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
3295         (SIG_ERR): Likewise.
3296         [X/Open-based standards] (SIG_HOLD): Likewise.
3297         (SIG_IGN): Likewise.
3298         (SIGABRT): Use macro-int-constant.  Specify type.  Require
3299         positive value.
3300         (SIGFPE): Likewise.
3301         (SIGILL): Likewise.
3302         (SIGINT): Likewise.
3303         (SIGSEGV): Likewise.
3304         (SIGTER): Likewise.
3305         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
3306         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
3307         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
3308         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
3309         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
3310         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
3311         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
3312         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
3313         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
3314         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
3315         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
3316         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
3317         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
3318         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
3319         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
3320         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
3321         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
3322         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
3323         [X/Open-based standards] (SIGTRAP): Likewise.
3324         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
3325         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
3326         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
3327         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
3328         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3329         allow.
3330
3331 2012-05-08  Ian Wienand  <ianw@vmware.com>
3332
3333         [BZ #14080]
3334         * time/tzset.c (__tzset_parse_tz): Update default rules for
3335         daylight time changes in the Energy Policy Act of 2005.
3336
3337 2012-05-09  Andreas Jaeger  <aj@suse.de>
3338
3339         [BZ #13983]
3340         * elf/ldconfig.c (parse_conf): Change string to make clear that
3341         ldconfig only issued a warning if ld.so.conf does not exist.
3342
3343 2012-05-08  David S. Miller  <davem@davemloft.net>
3344
3345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
3346         movxtod instead of popping the value on the stack.
3347
3348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3349
3350 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
3351
3352         * config.h.in: Add HAVE_ARM_PCS_VFP.
3353
3354 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
3355
3356         [BZ #13979]
3357         * include/features.h: Warn if user requests __FORTIFY_SOURCE
3358         checking but the checks are disabled for any reason.
3359
3360 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3361
3362         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
3363         and ELF64_R_TYPE with ELFW(R_TYPE).
3364
3365 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
3366
3367         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
3368         (ulimit): Likewise.
3369
3370         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
3371         (settimeofday): Likewise.
3372
3373 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
3374
3375         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
3376         a struct th_u2 inside the union, and move tu_block/tu_code into
3377         a new th_u3 union of tu_block/tu_code inside of that.  Move
3378         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
3379         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
3380         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
3381         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
3382         (th_stuff): Change to th_u1.tu_stuff.
3383         (th_data): Define.
3384         (th_msg): Change to th_u1.th_u2.tu_data.
3385
3386 2012-05-07  David S. Miller  <davem@davemloft.net>
3387
3388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3389
3390         [BZ #14074]
3391         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
3392         (SETUP_PIC_REG): Use it.
3393         (SETUP_PIC_REG_LEAF): Use it.
3394
3395 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
3396
3397         [BZ #13885]
3398         [BZ #13923]
3399         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3400         USE_AS_EXPM1L.
3401         (EXPL_FINITE): Likewise.
3402         (FLDLOG): Likewise.
3403         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3404         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3405         e_expl.S.
3406         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3407         USE_AS_EXPM1L.
3408         (EXPL_FINITE): Likewise.
3409         (FLDLOG): Likewise.
3410         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3411         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3412         e_expl.S.
3413         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
3414         test of -max_value argument for long double.
3415         * sysdeps/i386/fpu/libm-test-ulps: Update.
3416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3417
3418 2012-05-06  David S. Miller  <davem@davemloft.net>
3419
3420         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
3421         quad soft-float symbols whose references which are compiler
3422         generated.
3423         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
3424
3425 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
3426
3427         [BZ #13884]
3428         [BZ #13914]
3429         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3430         USE_AS_EXP10L.
3431         (EXPL_FINITE): Likewise.
3432         (FLDLOG): Likewise.
3433         (c0): Likewise.
3434         (c1): Likewise.
3435         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3436         Adjust comments for base varying.
3437         (__expl_finite): Change alias to EXPL_FINITE.
3438         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
3439         e_expl.S.
3440         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
3441         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3442         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3443         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
3444         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3445         USE_AS_EXP10L.
3446         (EXPL_FINITE): Likewise.
3447         (FLDLOG): Likewise.
3448         (c0): Likewise.
3449         (c1): Likewise.
3450         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3451         Adjust comments for base varying.
3452         (__expl_finite): Change alias to EXPL_FINITE.
3453         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
3454         tests for bugs.
3455         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3456
3457         [BZ #14064]
3458         * math/libm-test.inc (check_float_internal): Correct ulp
3459         calculation for subnormal expected results.
3460
3461 2012-05-06  Andreas Jaeger  <aj@suse.de>
3462
3463         * Makeconfig (+math-flags): New, set to -frounding-math.
3464         (+cflags): Add +math-flags so that all of glibc gets compiled with
3465         it.
3466
3467         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
3468
3469 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
3470
3471         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
3472         Disable one test.
3473
3474         [BZ #13787]
3475         [BZ #13922]
3476         [BZ #14036]
3477         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
3478         (__ieee754_expl): Allow for and saturate large arguments.
3479         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
3480         (u_threshold): Likewise.
3481         (__exp): Call __ieee754_exp before checking for overflow and
3482         underflow.
3483         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
3484         (u_threshold): Likewise.
3485         (__expf): Call __ieee754_expf before checking for overflow and
3486         underflow.
3487         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
3488         (u_threshold): Likewise.
3489         (__expl): Call __ieee754_expl before checking for overflow and
3490         underflow.
3491         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
3492         (__ieee754_expl): Allow for and saturate large arguments.
3493         * math/libm-test.inc (exp_test): Add another test.  Do not allow
3494         missing overflow exception on overflow.
3495         (expm1_test): Do not allow missing overflow exception on overflow.
3496
3497         * sysdeps/i386/fpu/e_expl.c: Move to ...
3498         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
3499         rather than using inline asm.
3500         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
3501         * sysdeps/x86_64/fpu/e_expl.S: Copy from
3502         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
3503
3504         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
3505         (nice): Likewise.
3506         (poll): Likewise.
3507         (signal): Likewise.
3508         (time): Likewise.
3509         (times): Likewise.
3510
3511 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3512
3513         * sysdeps/unix/syscalls.list (adjtime): Add entry from
3514         sysdeps/unix/common/syscalls.list.
3515         (fchmod): Likewise.
3516         (fchown): Likewise.
3517         (ftruncate): Likewise.
3518         (getrusage): Likewise.
3519         (gettimeofday): Likewise.
3520         (setpgid): Likewise.
3521         (setregid): Likewise.
3522         (setreuid): Likewise.
3523         (sigaction): Likewise.
3524         (truncate): Likewise.
3525         (vhangup): Likewise.
3526         * sysdeps/unix/common/syscalls.list: Remove file.
3527         * sysdeps/unix/bsd/Implies: Don't include unix/common.
3528         * sysdeps/unix/sysv/linux/Implies: Likewise.
3529
3530 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3531
3532         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
3533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
3534         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
3535         Moved to ...
3536         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3537         Here.
3538         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
3539         to ...
3540         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
3541         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
3542         to ...
3543         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
3544         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
3545         to ...
3546         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
3547         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
3548         to ...
3549         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
3550         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
3551         to ...
3552         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
3553         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
3554         to ...
3555         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
3556         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
3557         to ...
3558         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3559         Here.
3560         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
3561         to ...
3562         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
3563         Here.
3564         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
3565         to ...
3566         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
3567         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
3568         Moved to ...
3569         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
3570         Here.
3571         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
3572         to ...
3573         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
3574
3575 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3576
3577         * sysdeps/unix/common/bits/dirent.h: Remove file.
3578         * sysdeps/unix/common/bits/fcntl.h: Likewise.
3579
3580         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
3581         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
3582         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
3583         * sysdeps/unix/bsd/isatty.c: Likewise.
3584         * sysdeps/unix/bsd/tcdrain.c: Likewise.
3585         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
3586         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
3587
3588 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3589
3590         [BZ #13563]
3591         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
3592         long double comparison inaccuracies.
3593         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
3594         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3595
3596 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
3597
3598         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
3599         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
3600
3601 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3602
3603         [BZ #14049]
3604         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
3605         nonzero digits before rounding a hex value.
3606         * stdlib/tst-strtod.c (tests): Add another test.
3607
3608 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3609
3610         * sysdeps/s390/fpu/libm-test-ulps: Update.
3611
3612 2012-05-03  Andreas Jaeger  <aj@suse.de>
3613
3614         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
3615         does not get optimized out.
3616         (malloc_opt_barrier): New.
3617
3618 2012-05-03  Andreas Jaeger  <aj@suse.de>
3619             Roland McGrath  <roland@hack.frob.com>
3620
3621         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
3622         intermediate file deletion.
3623         (generated): Add .symlist files.
3624
3625 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
3626
3627         [BZ #13775]
3628         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
3629         Redirect under this condition.
3630         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3631         [__USE_GNU] (__dprintf_chk): Not under this condition.
3632         [__USE_GNU] (__vdprintf_chk): Likewise.
3633         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
3634         under this condition.
3635         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3636         [__USE_XOPEN2K8] (dprintf): Define under this condition.
3637         [__USE_XOPEN2K8] (vdprintf): Likewise.
3638         [__USE_GNU] (__dprintf_chk): Not under this condition.
3639         [__USE_GNU] (__vdprintf_chk): Likewise.
3640         [__USE_GNU] (dprintf): Likewise.
3641         [__USE_GNU] (vdprintf): Likewise.
3642
3643 2012-05-03  Roland McGrath  <roland@hack.frob.com>
3644
3645         * elf/Makefile (common-generated): Set this instead of generated for
3646         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
3647         $(all-built-dso)-derived lists.
3648
3649 2012-05-03  Andreas Jaeger  <aj@suse.de>
3650
3651         * sysdeps/i386/fpu/libm-test-ulps: Update.
3652
3653         * FAQ: Removed.
3654         * FAQ.in: Likewise.
3655         * scripts/gen-FAQ.pl: Likewise.
3656         * manual/install.texi (Installation): Point to online location of
3657         FAQ.
3658         * Makefile (files-for-dist): Remove FAQ.
3659         (FAQ): Remove.
3660
3661 2012-05-02  Allan McRae  <allan@archlinux.org>
3662
3663         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
3664         (LDFLAGS-reldepmod5.so): Likewise.
3665         (LDFLAGS-reldep6mod1.so): Likewise.
3666         (LDFLAGS-reldep6mod4.so): Likewise.
3667         (LDFLAGS-reldep8mod3.so): Likewise.
3668         (LDFLAGS-unload4mod1.so): Likewise.
3669         (LDFLAGS-unload4mod2.so): Likewise.
3670         (LDFLAGS-tst-initorder): Likewise.
3671         (LDFLAGS-tst-initordera2.so): Likewise.
3672         (LDFLAGS-tst-initordera3.so): Likewise.
3673         (LDFLAGS-tst-initordera4.so): Likewise.
3674         (LDFLAGS-tst-initorderb2.so): Likewise.
3675         (LDFLAGS-noload): Likewise.
3676         (LDFLAGS-next): Likewise.
3677         (LDFLAGS-order2mod1.so): Likewise.
3678         (LDFLAGS-order2mod2.so): Likewise.
3679         (LDFLAGS-tst-initorder2): Likewise.
3680         (LDFLAGS-tst-initorder2a.so): Likewise.
3681         (LDFLAGS-tst-initorder2b.so): Likewise.
3682         (LDFLAGS-tst-initorder2c.so): Likewise.
3683         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
3684
3685 2012-05-02  David S. Miller  <davem@davemloft.net>
3686
3687         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3688
3689 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
3690
3691         [BZ #14055]
3692         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
3693
3694 2012-05-02  Andreas Jaeger  <aj@suse.de>
3695
3696         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
3697         since we manipulate rounding mode.
3698         (CPPFLAGS-test-idouble.c): Likewise.
3699         (CPPFLAGS-test-ifloat.c): Likewise.
3700         (CFLAGS-test-ldouble.c): Likewise.
3701         (CFLAGS-test-double.c): Likewise.
3702         (CFLAGS-test-float.c): Likewise.
3703         (CFLAGS-test-misc.c): Likewise.
3704         (CFLAGS-test-test-fenv.c): Likewise.
3705
3706 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3707
3708         [BZ #2550]
3709         [BZ #2570]
3710         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
3711         comparisons to determine direction to adjust input.
3712
3713 2012-05-01  Roland McGrath  <roland@hack.frob.com>
3714
3715         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
3716         output to the target.
3717
3718         * scripts/localplt.awk: New file.
3719         * elf/Makefile ($(objpfx)check-localplt): Target removed.
3720         (check-localplt-CFLAGS): Variable removed.
3721         ($(all-built-dso:=.jmprel)): New static pattern rule.
3722         (generated): Add those targets.
3723         (localplt-built-dso): New variable.
3724         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
3725
3726         * elf/check-localplt.c: File removed.
3727
3728         * scripts/check-execstack.awk: New file.
3729         * elf/Makefile ($(objpfx)check-execstack): Target removed.
3730         (check-execstack-CFLAGS): Variable removed.
3731         ($(objpfx)check-execstack.h): Target removed.
3732         ($(objpfx)execstack-default): New target.
3733         (generated): Add that instead of check-execstack.h.
3734         ($(all-built-dso:=.phdr)): New static pattern rule.
3735         (generated): Add those targets.
3736         * elf/check-execstack.c: File removed.
3737
3738         * scripts/check-textrel.awk: New file.
3739         * elf/Makefile ($(objpfx)check-textrel): Target removed.
3740         (check-textrel-CFLAGS): Variable removed.
3741         (all-built-dso): Use := to define.o
3742         ($(all-built-dso:=.dyn)): New static pattern rule.
3743         (generated): Add those targets.
3744         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
3745         * config.make.in (READELF): New substituted variable.
3746         * elf/check-textrel.c: File removed.
3747
3748 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
3749
3750         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3751         allow.
3752         * conform/data/ctype.h-data [C99-based standards] (isblank):
3753         Expect function.
3754         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
3755         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
3756         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3757         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
3758         Specify type.  Require positive value.
3759         (EILSEQ): Likewise.
3760         (ERANGE): Likewise.
3761         [ISO || POSIX] (EILSEQ): Do not expect.
3762         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
3763         Specify type.  Require positive value.
3764         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
3765         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
3766         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
3767         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
3768         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
3769         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
3770         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
3771         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
3772         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
3773         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
3774         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
3775         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
3776         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
3777         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
3778         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
3779         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
3780         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
3781         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
3782         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
3783         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
3784         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
3785         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
3786         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
3787         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
3788         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
3789         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
3790         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
3791         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
3792         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
3793         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
3794         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
3795         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
3796         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
3797         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
3798         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
3799         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
3800         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
3801         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
3802         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
3803         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
3804         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
3805         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
3806         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
3807         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
3808         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
3809         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
3810         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
3811         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
3812         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
3813         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
3814         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
3815         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
3816         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
3817         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
3818         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
3819         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
3820         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
3821         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
3822         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
3823         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
3824         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
3825         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
3826         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
3827         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
3828         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
3829         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
3830         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
3831         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
3832         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
3833         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
3834         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
3835         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
3836         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
3837         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
3838         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
3839         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
3840         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
3841         Require >= 2.
3842         (FLT_ROUNDS): Expect as macro, not constant.
3843         (FLT_MANT_DIG): Use macro-int-constant.
3844         (DBL_MANT_DIG): Likewise.
3845         (LDBL_MANT_DIG): Likewise.
3846         (FLT_DIG): Likewise.
3847         (DBL_DIG): Likewise.
3848         (LDBL_DIG): Likewise.
3849         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
3850         (DBL_MIN_EXP): Likewise.
3851         (LDBL_MIN_EXP): Likewise.
3852         (FLT_MAX_EXP): Use macro-int-constant.
3853         (DBL_MAX_EXP): Likewise.
3854         (LDBL_MAX_EXP): Likewise.
3855         (FLT_MAX_10_EXP): Likewise.
3856         (DBL_MAX_10_EXP): Likewise.
3857         (LDBL_MAX_10_EXP): Likewise.
3858         (FLT_MAX): Use macro-constant.
3859         (DBL_MAX): Likewise.
3860         (LDBL_MAX): Likewise.
3861         (FLT_EPSILON): Use macro-constant.  Give upper bound.
3862         (DBL_EPSILON): Likewise.
3863         (LDBL_EPSILON): Likewise.
3864         (FLT_MIN): Likewise.
3865         (DBL_MIN): Likewise.
3866         (LDBL_MIN): Likewise.
3867         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
3868         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
3869         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
3870         [ISO11] (FLT_HAS_SUBNORM): Likewise.
3871         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
3872         [ISO11] (DBL_DECIMAL_DIG): Likewise.
3873         [ISO11] (FLT_DECIMAL_DIG): Likewise.
3874         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
3875         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
3876         [ISO11] (FLT_TRUE_MIN): Likewise.
3877         [ISO11] (LDBL_TRUE_MIN): Likewise.
3878         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3879         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
3880         (SCHAR_MIN): Use macro-int-constant.  Specify type.
3881         (SCHAR_MAX): Likewise.
3882         (UCHAR_MAX): Likewise.
3883         (CHAR_MIN): Likewise.
3884         (CHAR_MAX): Likewise.
3885         (MB_LEN_MAX): Use macro-int-constant.
3886         (SHRT_MIN): Use macro-int-constant.  Specify type.
3887         (SHRT_MAX): Likewise.
3888         (USHRT_MAX): Likewise.
3889         (INT_MAX): Likewise.
3890         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
3891         bound negative.
3892         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3893         bound with "U".
3894         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3895         bound with "L".
3896         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
3897         bound negative.  Suffix upper bound with "L".
3898         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3899         bound with "UL".
3900         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
3901         Specify type.
3902         [C99-based standards] (LLONG_MAX): Likewise.
3903         [C99-based standards] (ULLONG_MAX): Likewise.
3904         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
3905         == 0.
3906         [ISO11] (max_align_t): Require type.
3907         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3908
3909         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
3910         from $CFLAGS, without defining away __attribute__ calls.
3911         (checknamespace): Use $CFLAGS_namespace.
3912
3913         * conform/conformtest.pl (@keywords): Only include C99 keywords
3914         for standards based on C99 or C11.
3915
3916         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
3917         Disable tests.
3918         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
3919         UNIX98]: Likewise.
3920
3921         * conform/conformtest.pl: Handle "macro-int-constant" and test for
3922         usability of symbols in #if.
3923
3924         * conform/conformtest.pl: If macro or constant types start
3925         "promoted:", expect the symbol to be of the following type
3926         promoted by the integer promotions.
3927
3928         * conform/conformtest.pl: Parse all "constant" and "macro" lines
3929         in one place.  Also handle "macro-constant".
3930
3931         * conform/conformtest.pl: Only accept expected macro values with
3932         "==".  Parse all "macro" lines in one place.
3933         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
3934
3935         * conform/conformtest.pl: Handle braced types on "constant" lines
3936         instead of handling "typed-constant".
3937         * conform/data/signal.h-data: Use "constant" instead of
3938         "typed-constant".
3939
3940         * conform/conformtest.pl: Handle "optional-" at start of lines in
3941         one place rather than duplicating several cases.  Handle each
3942         format of "macro" line with initial "optional-".
3943
3944         * conform/conformtest.pl: Only accept expected constant or
3945         optional-constant values with "==".  Parse all "constant" lines in
3946         one place.  Parse all "optional-constant" lines in one place.
3947         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
3948         * conform/data/fmtmsg.h-data: Likewise.
3949         * conform/data/netinet/in.h-data: Likewise.
3950         * conform/data/tar.h-data: Likewise.
3951         * conform/data/limits.h-data: Use "==" form on "constant" and
3952         "optional-constant" lines.
3953
3954         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
3955         Use -std=c99 for XOPEN2K.
3956         (@knownproblems): Remove.
3957         (newtoken): Don't check %isknown.
3958
3959         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
3960         Do not expect macro.
3961         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
3962         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
3963         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
3964         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
3965         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
3966         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
3967         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
3968         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
3969         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
3970         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
3971         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
3972         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
3973         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
3974         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
3975         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
3976         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
3977         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
3978         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
3979         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
3980         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
3981         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
3982         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
3983         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
3984         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
3985         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
3986         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
3987         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
3988         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
3989         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
3990         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
3991         [XPG3] (acosh): Likewise.
3992         [XPG3] (asinh): Likewise.
3993         [XPG3] (atanh): Likewise.
3994         [XPG3] (cbrt): Likewise.
3995         [XPG3] (expm1): Likewise.
3996         [XPG3] (ilogb): Likewise.
3997         [XPG3] (log1p): Likewise.
3998         [XPG3] (logb): Likewise.
3999         [XPG3] (nextafter): Likewise.
4000         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
4001         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
4002         [XPG3] (remainder): Likewise.
4003         [XPG3] (rint): Likewise.
4004         [XPG3 || XPG4 || UNIX98] (round): Likewise.
4005         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
4006         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
4007         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
4008         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
4009         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
4010         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
4011         [UNIX98 || XOPEN2K] (scalb): Expect.
4012         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
4013         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
4014         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
4015         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
4016         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
4017         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
4018         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
4019         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
4020         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
4021         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
4022         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
4023         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
4024         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
4025         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
4026         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
4027         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
4028         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
4029         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
4030         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
4031         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
4032         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
4033         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
4034         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
4035         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
4036         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
4037         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
4038         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
4039         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
4040         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
4041         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
4042         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
4043         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
4044         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
4045         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
4046         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
4047         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
4048         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
4049         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
4050         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
4051         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
4052         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
4053         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
4054         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
4055         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
4056         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
4057         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
4058         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
4059         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
4060         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
4061         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
4062         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
4063         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
4064         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
4065         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
4066         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
4067         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
4068         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
4069         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
4070         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
4071         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
4072         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
4073         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
4074         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
4075         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
4076         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
4077         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
4078         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
4079         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
4080         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
4081         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
4082         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
4083         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
4084         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
4085         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
4086         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
4087         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
4088         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
4089         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
4090         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
4091         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
4092         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
4093         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
4094         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
4095         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
4096         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
4097         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
4098         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
4099         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
4100         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
4101         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
4102         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
4103         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
4104         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
4105         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
4106         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
4107         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
4108         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
4109         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
4110         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
4111         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
4112         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
4113         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
4114         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
4115         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
4116         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
4117         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
4118         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
4119         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
4120         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
4121         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
4122         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
4123         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
4124         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
4125         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
4126         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
4127         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
4128         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
4129         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
4130         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
4131         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
4132         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
4133         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
4134         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
4135         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
4136         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
4137         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
4138         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
4139         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
4140         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
4141         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
4142         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
4143         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
4144         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
4145         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
4146         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
4147         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
4148         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
4149
4150         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
4151         _XOPEN_SOURCE_EXTENDED for XPG4.
4152
4153         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
4154
4155         * Makeconfig (localtime): Remove variable.
4156         (inst_localtime-file): Likewise.
4157
4158 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4159
4160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
4161         Update.
4162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4163         Update.
4164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
4165         Update.
4166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
4167         Update.
4168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
4169         Update.
4170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
4171         Update.
4172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4173         Update.
4174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
4175         Update.
4176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4177         Update.
4178
4179 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4180
4181         [BZ #2550]
4182         [BZ #2570]
4183         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
4184         comparisons to determine direction to adjust input.
4185         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4186         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
4187         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4188         Likewise.
4189         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4190         Likewise.
4191         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4192         Likewise.
4193         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4194         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4195         Likewise.
4196         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4197         Likewise.
4198         * math/libm-test.inc (nexttoward_test): Add more tests.
4199
4200 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4201
4202         [BZ #14040]
4203         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
4204         in version GLIBC_2.1, not GLIBC_2.0.
4205         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
4206         Likewise.
4207
4208 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
4209
4210         [BZ #13942]
4211         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
4212         (1 - x) * (1 + x).
4213         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4214         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
4215         * math/libm-test.inc (acos_test): Add more tests.
4216         (asin_test): Likewise.
4217         * sysdeps/i386/fpu/libm-test-ulps: Update.
4218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4219
4220         [BZ #14034]
4221         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
4222         of square root.
4223         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
4224         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4225         * math/libm-test.inc (acos_test_tonearest): New function.
4226         (acos_test_towardzero): Likewise.
4227         (acos_test_downward): Likewise.
4228         (acos_test_upward): Likewise.
4229         (asin_test_tonearest): Likewise.
4230         (asin_test_towardzero): Likewise.
4231         (asin_test_downward): Likewise.
4232         (asin_test_upward): Likewise.
4233         (main): Call the new functions.
4234         * sysdeps/i386/fpu/libm-test-ulps: Update.
4235         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4236
4237         [BZ #13884]
4238         [BZ #13924]
4239         * math/e_exp10.c: Include <float.h>.
4240         (__ieee754_exp10): Handle underflow here rather than multiplying
4241         large negative argument by M_LN10.
4242         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
4243         of __ieee754_expf.
4244         * math/e_exp10l.c: Include <float.h>.
4245         (__ieee754_exp10l): Handle underflow here rather than multiplying
4246         large negative argument by M_LN10l.
4247         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
4248         spurious overflow exception on underflow.
4249
4250 2012-04-29  Marek Polacek  <polacek@redhat.com>
4251
4252         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
4253         (__fortify_function): New macro.
4254         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
4255         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
4256         __extern_always_inline.
4257         * libio/bits/stdio2.h: Likewise.
4258         * libio/bits/stdio.h: Likewise.
4259         * string/string.h: Likewise.
4260         * string/bits/string3.h: Likewise.
4261         * include/stdio.h: Likewise.
4262         * stdlib/bits/stdlib.h: Likewise.
4263         * stdlib/stdlib.h: Likewise.
4264         * rt/bits/mqueue2.h: Likewise.
4265         * rt/mqueue.h: Likewise.
4266         * posix/bits/unistd.h: Likewise.
4267         * posix/unistd.h: Likewise.
4268         * io/bits/poll2.h: Likewise.
4269         * io/bits/fcntl2.h: Likewise.
4270         * io/fcntl.h: Likewise.
4271         * io/sys/poll.h: Likewise.
4272         * misc/bits/syslog.h: Likewise.
4273         * misc/bits/syslog-ldbl.h: Likewise.
4274         * misc/sys/syslog.h: Likewise.
4275         * socket/bits/socket2.h: Likewise.
4276         * socket/sys/socket.h: Likewise.
4277         * debug/tst-chk1.c: Likewise.
4278         * wcsmbs/bits/wchar2.h: Likewise.
4279         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4280         * wcsmbs/wchar.h: Likewise.
4281
4282 2012-04-29  Andreas Jaeger  <aj@suse.de>
4283
4284         * Makerules (tests): Remove enable-check-abi protection.
4285         (check-abi-warn): Remove.
4286         (check-abi-%): Remove check-abi-warn usage.
4287
4288         * configure.in: Remove check-abi configure option.
4289         * configure: Regenerated.
4290         * config.make.in (enable-check-abi): Remove.
4291
4292 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
4293
4294         [BZ #14033]
4295         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
4296         double functions to double *_finite functions.
4297
4298         [BZ #13941]
4299         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
4300         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
4301         LDBL_MIN_EXP.
4302         * stdio-common/Makefile (tests): Add tst-sprintf3.
4303         * stdio-common/tst-sprintf3.c: New file.
4304
4305         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
4306         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
4307
4308 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4309
4310         * conform/conformtest.pl: Remove duplicate typed-constant
4311         handling.
4312
4313 2012-04-28  David S. Miller  <davem@davemloft.net>
4314
4315         * Makerules (%.abilist): Add vpath on sysdep_dirs.
4316         (check-abi-%): Remove AWK script prerequisite and explicit
4317         abilist directory.
4318         (check-abi): Rewrite to just diff the symlist with the abilist.
4319         (config-tls, config-abi-config): Delete, no longer used.
4320         (update-abi-%): Remove AWK script and explicit abilist directory.
4321         (update-abi): Rewrite to simply compare and conditionally copy the
4322         symlist and the sysdep abilist file.  Remove update-abi-config
4323         checks.
4324         * abilist/ld.abilist: Remove.
4325         * abilist/libBrokenLocale.abilist: Remove.
4326         * abilist/libanl.abilist: Remove.
4327         * abilist/libcrypt.abilist: Remove.
4328         * abilist/libdl.abilist: Remove.
4329         * abilist/librt.abilist: Remove.
4330         * abilist/libthread_db.abilist: Remove.
4331         * abilist/libutil.abilist: Remove.
4332         * scripts/extract-abilist.awk: Remove.
4333         * scripts/merge-abilist.awk: Remove.
4334         * sysdeps/generic/libcidn.abilist: New file.
4335         * sysdeps/generic/libnss_compat.abilist: New file.
4336         * sysdeps/generic/libnss_db.abilist: New file.
4337         * sysdeps/generic/libnss_dns.abilist: New file.
4338         * sysdeps/generic/libnss_files.abilist: New file.
4339         * sysdeps/generic/libnss_hesiod.abilist: New file.
4340         * sysdeps/generic/libnss_nis.abilist: New file.
4341         * sysdeps/generic/libnss_nisplus.abilist: New file.
4342         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
4343         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
4344         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
4345         file.
4346         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
4347         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
4348         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
4349         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
4350         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
4351         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
4352         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
4353         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
4354         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
4355         file.
4356         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
4357         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
4358         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
4359         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
4360         file.
4361         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
4362         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
4363         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
4364         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
4365         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
4366         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
4367         file.
4368         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
4369         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
4370         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
4371         file.
4372         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
4373         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
4374         New file.
4375         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
4376         New file.
4377         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
4378         New file.
4379         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
4380         New file.
4381         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
4382         New file.
4383         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
4384         New file.
4385         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
4386         New file.
4387         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
4388         New file.
4389         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
4390         New file.
4391         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
4392         New file.
4393         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
4394         New file.
4395         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
4396         New file.
4397         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
4398         New file.
4399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
4400         file.
4401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
4402         New file.
4403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
4404         New file.
4405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
4406         file.
4407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
4408         New file.
4409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
4410         New file.
4411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
4412         file.
4413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
4414         New file.
4415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4416         New file.
4417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
4418         New file.
4419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
4420         New file.
4421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
4422         New file.
4423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
4424         New file.
4425         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
4426         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
4427         file.
4428         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
4429         New file.
4430         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
4431         file.
4432         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
4433         file.
4434         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
4435         file.
4436         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
4437         file.
4438         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
4439         file.
4440         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4441         New file.
4442         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
4443         file.
4444         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
4445         file.
4446         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
4447         New file.
4448         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
4449         file.
4450         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
4451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
4452         file.
4453         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
4454         New file.
4455         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
4456         file.
4457         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
4458         file.
4459         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
4460         file.
4461         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
4462         file.
4463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
4464         file.
4465         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4466         New file.
4467         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
4468         file.
4469         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
4470         file.
4471         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
4472         New file.
4473         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
4474         file.
4475         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4476         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
4477         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
4478         file.
4479         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
4480         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
4481         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
4482         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
4483         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
4484         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
4485         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
4486         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
4487         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
4488         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
4489         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
4490         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
4491         file.
4492         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
4493         New file.
4494         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
4495         file.
4496         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
4497         file.
4498         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
4499         file.
4500         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
4501         file.
4502         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
4503         file.
4504         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
4505         New file.
4506         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
4507         New file.
4508         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
4509         file.
4510         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
4511         New file.
4512         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
4513         file.
4514         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
4515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
4516         file.
4517         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
4518         New file.
4519         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
4520         file.
4521         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
4522         file.
4523         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
4524         file.
4525         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
4526         file.
4527         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
4528         file.
4529         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
4530         New file.
4531         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
4532         New file.
4533         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
4534         file.
4535         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
4536         New file.
4537         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
4538         file.
4539
4540 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4541
4542         * conform/conformtest.pl: Fix typo in handling typed-constant from
4543         allow-header.
4544
4545 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4546
4547         * README: Cut down references to pre-2.6 Linux kernels and
4548         Linuxthreads.  Update lists of configurations in libc and ports
4549         and sort alphabetically.  Say "or newer" with Linux kernel version
4550         requirements.
4551
4552         * config.h.in [IS_IN_build]: Allow compiling without optimization.
4553
4554 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4555
4556         [BZ #887]
4557         * math/libm-test.inc (logb_test_downward): New test to expose
4558         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
4559         rounding mode.
4560
4561 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4562
4563         [BZ #14027]
4564         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
4565         to be done.
4566         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
4567         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
4568
4569 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
4570
4571         * sysdeps/unix/i386/brk.S: Remove file.
4572         * sysdeps/unix/i386/dl-brk.S: Likewise.
4573         * sysdeps/unix/i386/pipe.S: Likewise.
4574         * sysdeps/unix/i386/sigreturn.S: Likewise.
4575         * sysdeps/unix/i386/syscall.S: Likewise.
4576         * sysdeps/unix/i386/vfork.S: Likewise.
4577         * sysdeps/unix/i386/wait.S: Likewise.
4578
4579         * sysdeps/unix/common/tcsendbrk.c: Move to ...
4580         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
4581
4582         * configure.in (arm*-none*): Do not allow without
4583         --enable-hacker-mode.
4584         (netbsd*): Remove case setting base_os.
4585         (386bsd*): Likewise.
4586         (freebsd*): Likewise.
4587         (bsdi*): Likewise.
4588         (osf*): Likewise.
4589         (sunos*): Likewise.
4590         (ultrix*): Likewise.
4591         (newsos*): Likewise.
4592         (dynix*): Likewise.
4593         (*bsd*): Likewise.
4594         (sysv*): Likewise.
4595         (isc*): Likewise.
4596         (esix*): Likewise.
4597         (sco*): Likewise.
4598         (minix*): Likewise.
4599         (irix4*): Likewise.
4600         (irix6*): Likewise.
4601         (solaris[2-9]*): Likewise.
4602         (none): Likewise.
4603         * configure: Regenerated.
4604
4605 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4606
4607         [BZ #11521]
4608         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
4609         overflow or cancellation in calculating denominator.
4610         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
4611         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
4612         down expression to avoid unexpected rounding in newer GCCs.
4613         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
4614
4615 2012-04-26  David S. Miller  <davem@davemloft.net>
4616
4617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
4618         long-double compat symbols.
4619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
4623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4624         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
4625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
4626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
4627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
4629         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
4630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4632
4633 2012-04-25  David S. Miller  <davem@davemloft.net>
4634
4635         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
4636         HWCAP_* values only after the memory barriers have been defined.
4637         (atomic_full_barrier): Define.
4638         (atomic_read_barrier): Define.
4639         (atomic_write_barrier): Define.
4640
4641 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4642
4643         * shlib-versions: Add libgcc_s version information.
4644         * sysdeps/generic/libgcc_s.h: Remove.
4645         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
4646         libgcc_s.h.
4647         * sysdeps/gnu/unwind-resume.c: Likewise.
4648         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
4649
4650 2012-04-25  David S. Miller  <davem@davemloft.net>
4651
4652         * sysdeps/unix/sparc/brk.S: Delete.
4653         * sysdeps/unix/sparc/dl-brk.S: Delete.
4654         * sysdeps/unix/sparc/pipe.S: Delete.
4655         * sysdeps/unix/sparc/sysdep.S: Delete.
4656         * sysdeps/unix/sparc/sysdep.h: Delete.
4657         * sysdeps/unix/sparc/vfork.S: Delete.
4658         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
4659         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
4660         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
4661         ret_ERRVAL, r0, r1, MOVE): Define.
4662         (JUMPTARGET): Remove.
4663         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
4664         sysdeps/unix/sparc/sysdep.h
4665         (ENTRY, END): Remove.
4666         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4667
4668 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
4669
4670         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
4671         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
4672         -DIS_IN_build.
4673
4674         * timezone/README: Update upstream location and email address for
4675         tzcode and tzdata.
4676         * timezone/zdump.c: Update from tzcode 2012b.
4677         * timezone/zic.c: Likewise.
4678
4679         * configure.in (libc_cv_as_needed): Remove test.
4680         * configure: Regenerated.
4681         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
4682         conditional definition.
4683         [$(have-as-needed) != yes] (no-as-needed): Likewise.
4684         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
4685         * config.make.in (have-as-needed): Remove variable.
4686
4687 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4688             Paul Pluzhnikov  <ppluzhnikov@google.com>
4689
4690         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
4691         strings correctly.
4692
4693 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
4694
4695         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
4696         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
4697         * sysdeps/sh/strlen.S: Likewise.
4698
4699 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4700
4701         * sysdeps/unix/fork.S: Remove file.
4702         * sysdeps/unix/i386/fork.S: Likewise.
4703         * sysdeps/unix/sparc/fork.S: Likewise.
4704
4705         * sysdeps/unix/system.c: Remove file.
4706         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
4707
4708         * sysdeps/unix/getegid.S: Remove file.
4709         * sysdeps/unix/geteuid.S: Likewise.
4710
4711 2012-04-24  Roland McGrath  <roland@hack.frob.com>
4712
4713         * scripts/check-localplt.awk: New file.
4714         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
4715         of diff.
4716         * scripts/data/localplt-generic.data: Add a comment.
4717
4718         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
4719         NODE when __dir_mkfile failed.
4720         * sysdeps/mach/hurd/symlinkat.c: Likewise.
4721         Reported by Ludovic Courtès <ludo@gnu.org>.
4722
4723 2012-04-24  Andreas Jaeger  <aj@suse.de>
4724
4725         * Makerules (common-clean): Also remove gen-as-const-headers
4726         files.
4727
4728 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4729
4730         * Makerules (native-compile): Do not change working directory for
4731         build.  Use $(OUTPUT_OPTION) in command.
4732         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
4733
4734 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4735
4736         [BZ #13886]
4737         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
4738         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
4739         * math/libm-test.inc (floor_test): Add more tests.
4740         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
4741
4742 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4743
4744         * sysdeps/unix/getdents.c: Remove file.
4745         * sysdeps/unix/sysv/getdents.c: Likewise.
4746         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
4747
4748         * sysdeps/unix/syscalls.list (madvise): Add syscall from
4749         sysdeps/unix/mman/syscalls.list.
4750         (mmap): Likewise.
4751         (mprotect): Likewise.
4752         (msync): Likewise.
4753         (munmap): Likewise.
4754         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
4755         * sysdeps/unix/mman/syscalls.list: Remove.
4756         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
4757
4758         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
4759         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
4760         * configure: Regenerated.
4761         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
4762         $(libgcc_s_suffix).
4763         * config.make.in (libgcc_s_suffix): Remove variable.
4764
4765 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
4766
4767         * sysdeps/unix/sysv/gethostname.c: Move to ...
4768         * sysdeps/posix/gethostname.c: ... here.
4769
4770         * sysdeps/unix/execve.S: Remove file.
4771
4772         * sysdeps/unix/_exit.S: Remove file.
4773
4774 2012-04-23  Andreas Jaeger  <aj@suse.de>
4775
4776         [BZ #13739]
4777         * manual/Makefile: Remove make dist support, there's no
4778         need for a stand-alone documentation tar ball.
4779         (TEXI2DVI): Define always, it's not in Makeconfig.
4780         (dist): Removed.
4781         (tar-it): Removed.
4782         (edition): Removed.
4783         (glibc-doc-$(edition).tar): Removed
4784         (%.Z): Removed.
4785         (%.gz): Removed.
4786         (%.uu): Removed.
4787         (ETAGS): Remove, it's in Makeconfig.
4788         (move-if-change): Remove, it's in Makeconfig.
4789
4790 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4791
4792         [BZ #13970]
4793         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
4794         (strtod, strtof, strtold, strtol, strtoul, strtoq)
4795         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
4796         (strtod_l, strtof_l, strtold_l): Remove __wur.
4797         It is not necessarily an error to ignore strtol's return value.
4798         One can reliably look at the stored endptr to decide whether
4799         the number had valid syntax.
4800
4801 2012-04-21  Andreas Jaeger  <aj@suse.de>
4802
4803         [BZ #13739]
4804         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
4805
4806 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
4807
4808         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
4809         * sysdeps/unix/sysv/Versions: Remove file.
4810
4811 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
4812
4813         [BZ #13927]
4814         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4815
4816 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
4817
4818         [BZ #7064]
4819         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
4820         version from __vm86.
4821
4822 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
4823
4824         * sysdeps/unix/common/lxstat.c: Remove file.
4825         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
4826
4827         * sysdeps/unix/sysv/Makefile: Remove file.
4828
4829         * sysdeps/unix/sysv/direct.h: Remove file.
4830
4831         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
4832         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
4833         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
4834         * sysdeps/unix/sysv/bits/signum.h: Likewise.
4835         * sysdeps/unix/sysv/bits/stat.h: Likewise.
4836         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
4837         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
4838
4839         * sysdeps/unix/sysv/setrlimit.c: Remove file.
4840
4841         * sysdeps/unix/xmknod.c: Remove file.
4842         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
4843
4844         * sysdeps/unix/sysv/settimeofday.c: Remove file.
4845
4846         * sysdeps/unix/sysv/i386/time.S: Remove file.
4847
4848         * sysdeps/unix/fxstat.c: Remove file.
4849         * sysdeps/unix/xstat.c: Likewise.
4850         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
4851
4852         * sysdeps/unix/sysv/sigaction.c: Remove file.
4853
4854         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
4855         (sysdep_headers): Remove variable.
4856         [termio.h not in sysdep_headers] (generated): Likewise.
4857         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
4858         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
4859         * sysdeps/unix/sysv/tcdrain.c: Likewise.
4860         * sysdeps/unix/sysv/tcflow.c: Likewise.
4861         * sysdeps/unix/sysv/tcflush.c: Likewise.
4862         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
4863         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
4864         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
4865         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
4866         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
4867
4868         * sysdeps/unix/siglist.c: Remove file.
4869
4870         * sysdeps/unix/getppid.S: Remove file.
4871
4872         * sysdeps/unix/mkdir.c: Remove file.
4873         * sysdeps/unix/rmdir.c: Likewise.
4874
4875 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
4876
4877         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
4878         ERR_MAX value.
4879         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
4880         errlist-compat value.
4881
4882 2012-04-18  David S. Miller  <davem@davemloft.net>
4883
4884         * sysdeps/generic/memcopy.h (reg_char): Delete.
4885         * debug/strcat_chk.c: Use char, not reg_char.
4886         * debug/strcpy_chk.c: Likewise.
4887         * debug/strncat_chk.c: Likewise.
4888         * debug/strncpy_chk.c: Likewise.
4889         * string/memchr.c: Likewise.
4890         * string/memrchr.c: Likewise.
4891         * string/rawmemchr.c: Likewise.
4892         * string/strcat.c: Likewise.
4893         * string/strchr.c: Likewise.
4894         * string/strchrnul.c: Likewise.
4895         * string/strcmp.c: Likewise.
4896         * string/strcpy.c: Likewise.
4897         * string/strncat.c: Likewise.
4898         * string/strncmp.c: Likewise.
4899         * string/strncpy.c: Likewise.
4900
4901 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4902
4903         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
4904         __builtin_memcopy is called when src and dest ranges are known to not
4905         overlap.
4906
4907 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4908
4909         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
4910         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
4911         fwd_align_merge macro call.
4912         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
4913         bwd_align_merge macro call.
4914         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4915
4916 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4917
4918         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
4919         bwd_align_merge macros.
4920         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
4921         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
4922         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4923
4924 2012-04-18  David S. Miller  <davem@davemloft.net>
4925
4926         * sysdeps/sparc/sparc64/memcopy.h: Delete.
4927
4928 2012-04-18  Andreas Jaeger  <aj@suse.de>
4929
4930         [BZ# 6794]
4931         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
4932         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
4933         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4934
4935         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
4936         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
4937         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4938
4939         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
4940         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
4941         Adjust for changed ldbl-128 files.
4942
4943         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
4944         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
4945         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4946
4947 2012-04-17  David S. Miller  <davem@davemloft.net>
4948
4949         * sysdeps/sparc/sparc32/memcopy.h: Delete.
4950
4951 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
4952
4953         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
4954         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
4955         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
4956         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
4957         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4958         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
4959
4960 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4961
4962         [BZ #6794]
4963         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
4964         * math/libm-test.inc: Add ilogb errno and exception tests.
4965         * math/w_ilogb.c: New file: ilogb wrapper.
4966         * math/w_ilogbf.c: New file: ilogbf wrapper.
4967         * math/w_ilogbl.c: New file: ilogbl wrapper.
4968         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
4969         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
4970         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
4971         exception being thrown with 0.0 as argument.
4972         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
4973         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
4974         exception being thrown with 0.0 as argument.
4975         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
4976         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4977         exception being thrown with 0.0 as argument.
4978         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
4979         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4980         exception being thrown with 0.0 as argument.
4981         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
4982         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
4983         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
4984         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
4985         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
4986         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
4987         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
4988         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
4989         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
4990
4991 2012-04-17  Petr Baudis  <pasky@ucw.cz>
4992
4993         * include/sys/uio.h: Change __vector to __iovec to avoid clash
4994         with altivec.
4995
4996 2012-04-16  Marek Polacek  <polacek@redhat.com>
4997
4998         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
4999
5000 2012-04-16  Marek Polacek  <polacek@redhat.com>
5001
5002         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
5003         operands of fdivp instruction.
5004
5005 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5006
5007         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
5008         * elf/tst-auditmod3b.c: Likewise.
5009         * elf/tst-auditmod4b.c: Likewise.
5010         * elf/tst-auditmod5b.c: Likewise.
5011         * elf/tst-auditmod6b.c: Likewise.
5012         * elf/tst-auditmod6c.c: Likewise.
5013         * elf/tst-auditmod7b.c: Likewise.
5014         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
5015         * sysdeps/x86_64/preconfigure.in: Likewise.
5016         * sysdeps/x86_64/preconfigure: Regenerated.
5017
5018 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5019
5020         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
5021         __ILP32__.
5022
5023 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
5024
5025         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5026         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
5027
5028 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
5029
5030         [BZ #13973]
5031         * locale/iso-639.def: Fix gl language name. Spotted by
5032         Yaron Shahrabani.
5033
5034 2012-04-12  Roland McGrath  <roland@hack.frob.com>
5035
5036         [BZ #2074]
5037         * libio/libio.h (__io_write_fn): Update comment.
5038
5039 2012-04-12  Petr Baudis  <pasky@ucw.cz>
5040
5041         [BZ #2074]
5042         * stdio.texi (Hook Functions): The user provided writer function
5043         is not allowed to return -1.
5044
5045 2012-04-11  David S. Miller  <davem@davemloft.net>
5046
5047         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5048
5049 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
5050
5051         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
5052         Add a leading slash to rtkaio.
5053
5054 2012-04-11  Jim Meyering  <meyering@redhat.com>
5055
5056         [BZ #11959]
5057         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
5058         It is not necessarily an error to ignore fwrite's return
5059         value.  One can reliably use ferror to test for errors after
5060         the fact.
5061
5062 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5063
5064         * bits/types.h (__snseconds_t): New type.
5065         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
5066
5067         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
5068         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5069         (__SNSECONDS_T_TYPE): Likewise.
5070         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5071         (__SNSECONDS_T_TYPE): Likewise.
5072         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5073         (__SNSECONDS_T_TYPE): Likewise.
5074
5075 2012-04-10  Andreas Jaeger  <aj@suse.de>
5076
5077         [BZ #2636]
5078         * manual/time.texi (Processor Time): Return type of times is
5079         elapsed real time since an arbitrary point in the past.
5080         (CPU Time): Move CLK_TCK from here...
5081         (Processor Time): ...to here.  Correct description.
5082         * manual/conf.texi (Constants for Sysconf): Correct description of
5083         _SC_CLK_TCK.
5084
5085 2012-04-10  David S. Miller  <davem@davemloft.net>
5086
5087         [BZ #13967]
5088         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
5089         where the is a gap between DT_REL(A) and DT_JMPREL.
5090
5091 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5092
5093         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
5094         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5095         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5096
5097 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5098
5099         * elf/dl-support.c (_dl_inhibit_cache): New variable.
5100         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
5101         (dl_main): Handle --inhibit-cache.
5102         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
5103         _dl_inhibit_cache.
5104         * elf/dl-load.c (_dl_map_object): Use it.
5105         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
5106
5107 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5108
5109         [BZ #13872]
5110         * sysdeps/i386/fpu/e_powl.S (p78): New object.
5111         (__ieee754_powl): Saturate large exponents rather than testing for
5112         overflow of y*log2(x).
5113         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5114         * math/libm-test.inc (pow_test): Do not permit spurious overflow
5115         exceptions.
5116
5117         [BZ #11521]
5118         * math/s_ctan.c: Include <float.h>.
5119         (__ctan): Avoid internal overflow or cancellation in calculating
5120         denominator.
5121         * math/s_ctanf.c: Likewise.
5122         * math/s_ctanl.c: Likewise.
5123         * math/s_ctanh.c: Likewise.
5124         * math/s_ctanhf.c: Likewise.
5125         * math/s_ctanhl.c: Likewise.
5126         * math/libm-test.inc (ctan_test): Add more tests.
5127         (ctanh_test): Likewise.
5128         * sysdeps/i386/fpu/libm-test-ulps: Update.
5129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5130
5131 2012-04-09  Andreas Jaeger  <aj@suse.de>
5132
5133         [BZ #6894]
5134         * manual/filesys.texi (Directory Entries): Mention that d_namlen
5135         is an optional BSD extension.
5136
5137         [BZ #10254]
5138         * manual/stdio.texi (Opening Streams): Document additional fopen
5139         parameters.
5140
5141 2012-04-09  Roland McGrath  <roland@hack.frob.com>
5142
5143         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
5144         %eax without telling the compiler.
5145
5146 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
5147
5148         [BZ # 13963]
5149         * manual/install.texi: Use sourceware.org.
5150
5151 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5152
5153         [BZ #13873]
5154         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
5155         (__ieee754_pow): Generate overflow and underflow using huge*huge
5156         and tiny*tiny rather than just returning constant infinity or zero
5157         for large exponents.
5158         * math/libm-test.inc (pow_test): Require overflow exceptions for
5159         applicable cases of large exponents.
5160
5161         [BZ #706]
5162         * sysdeps/i386/fpu/e_pow.S (p10): New object.
5163         (__ieee754_pow): Use iterative multiplication algorithm only for
5164         integer exponents with absolute value below 1024.  Check for odd
5165         integer exponents when using algorithm for real exponents.
5166         * math/libm-test.inc (pow_test): Add more tests.
5167         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5168
5169 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
5170
5171         [BZ #13705]
5172         * math/libm-test.inc (exp_test): Do not allow overflow exception
5173         on underflow test.
5174
5175 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
5176
5177         [BZ #13705]
5178         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
5179         instead of __kernel_standard_f.
5180
5181 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
5182
5183         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
5184         * sysdeps/x86_64/memset_chk.S: Likewise.
5185
5186 2012-04-08  Andreas Jaeger  <aj@suse.de>
5187
5188         [BZ #10153]
5189         * manual/startup.texi (Environment Access): Describe return value
5190         for putenv and setenv.
5191
5192         [BZ #6895]
5193         * manual/filesys.texi (Directory Entries): Add description for
5194         DT_LNK.
5195
5196         [BZ #6890]
5197         * manual/filesys.texi (Directory Entries): Clarify that it's file
5198         system not operating system in the description of DT_UNKNOWN.
5199
5200         [BZ #6578]
5201         * manual/syslog.texi (closelog): Fix reference, it's openlog.
5202
5203 2012-04-08  Stephen Compall  <s11@member.fsf.org>
5204
5205         [BZ #6649]
5206         * manual/llio.texi (Opening and Closing Files): Add cross
5207         reference to explain mode argument.
5208
5209 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
5210
5211         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
5212         * sysdeps/x86_64/memset_chk.S: Likewise.
5213
5214 2012-04-07  David S. Miller  <davem@davemloft.net>
5215
5216         * elf/elf.h (R_SPARC_WDISP10): Define.
5217         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
5218         R_SPARC_SIZE32.
5219         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
5220         R_SPARC_SIZE64 and R_SPARC_H34.
5221
5222 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
5223
5224         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
5225         conditions and remove no longer applicable assertion.
5226
5227 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5228
5229         * bits/byteswap.h: Include <features.h>.
5230         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5231         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5232
5233 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5234
5235         * bits/byteswap.h (__bswap_16): Removed.
5236         Include <bits/byteswap-16.h> to get __bswap_16.
5237         * sysdeps/i386/bits/byteswap.h: Likewise.
5238         * sysdeps/s390/bits/byteswap.h: Likewise.
5239         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5240         * bits/byteswap-16.h: New file.
5241         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5242         * sysdeps/s390/bits/byteswap-16.h: Likewise.
5243         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
5244         * string/Makefile (headers): Add bits/byteswap-16.h.
5245
5246 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5247
5248         [BZ #13895]
5249         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
5250         extra indirection.
5251         * nss/Makefile (tests-static, tests): Add tst-nss-static.
5252         * nss/tst-nss-static.c: New.
5253
5254 2012-04-06  Robert Millan  <rmh@gnu.org>
5255
5256         [BZ #6486]
5257         * manual/llio.texi (File Position Primitive): lseek
5258         refers to WHENCE when it really means OFFSET.
5259
5260 2012-04-06  Andreas Jaeger  <aj@suse.de>
5261
5262         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
5263         strncmp declarations.
5264
5265         * abilist/libc.abilist: Add __poll and __ppoll.
5266
5267 2012-04-05  David S. Miller  <davem@davemloft.net>
5268
5269         * scripts/check-local-headers.sh: Accept a host triplet in the
5270         path matched by the exclude regexp.
5271
5272         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
5273         definition.
5274         * sysdeps/powerpc/powerpc32/dl-machine.h
5275         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
5276         * sysdeps/s390/s390-32/dl-machine.h
5277         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5278         * sysdeps/sparc/sparc32/dl-machine.h
5279         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5280         * sysdeps/sparc/sparc64/dl-machine.h
5281         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5282
5283         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
5284         lazy binding.
5285         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
5286         undefined symbol errors.
5287
5288         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
5289         DT_NEEDED entries.
5290
5291 2012-04-05  Michael Matz  <matz@suse.de>
5292
5293         [BZ #13592]
5294         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
5295
5296 2012-04-05  Andreas Jaeger  <aj@suse.de>
5297
5298         [BZ #13908]
5299         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
5300         comment.
5301
5302 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5303
5304         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
5305         which ROUND is no valid rounding mode.
5306
5307 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5308
5309         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
5310         read again.
5311         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
5312
5313 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5314
5315         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
5316         an exception using FPU order intentionally.
5317
5318 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5319
5320         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
5321         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
5322         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
5323         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
5324
5325 2012-04-05  Simon Josefsson  <simon@josefsson.org>
5326
5327         [BZ #12340]
5328         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
5329         EINVAL when BUFLEN is too smal.
5330
5331 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5332
5333         [BZ #13553]
5334         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
5335         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5336
5337 2012-04-03  Andreas Jaeger  <aj@suse.de>
5338
5339         [BZ #13938]
5340         * manual/setjmp.texi (System V contexts): Fix sentence.
5341
5342         [BZ #13926]
5343         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
5344         New macro for this case.
5345         [!__GNUC__] (__bswap_64): New inline function for this case.
5346         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5347         * bits/byteswap.h: Likewise.
5348         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
5349         ull, guard with __GLIBC_HAVE_LONG_LONG.
5350
5351         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
5352         __GLIBC_HAVE_LONG_LONG.
5353
5354         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
5355         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
5356
5357 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
5358
5359         [BZ #13691]
5360         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
5361         inptr and inend, rather than using last_ch.
5362
5363 2012-04-02  David S. Miller  <davem@davemloft.net>
5364
5365         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
5366         * stdio-common/printf-parse.h (read_int): Change return type to
5367         'int', return -1 on INT_MAX overflow.
5368         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
5369         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
5370         overflows INT_MAX.  Check for overflow of in-format-string precision
5371         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
5372         SIZE_MAX not INT_MAX for integer overflow test.
5373         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
5374         skip the construct in the format string but do not record anything.
5375         * stdio-common/bug22.c: Adjust to test both width/prevision
5376         INT_MAX overflow as well as total length INT_MAX overflow.  Check
5377         explicitly for proper errno values.
5378
5379 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5380
5381         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
5382         CHAR_MAX.
5383         * string/test-strcmp.c [! WIDE]: Likewise.
5384         * time/tst-mktime2.c: Likewise for INT_MAX.
5385         * string/test-string.h: #include <sys/param.h> for MIN.
5386
5387         * csu/init-first.c (__libc_init_first): Call __ctype_init.
5388         * sysdeps/i386/init-first.c (init): Likewise.
5389         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
5390         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
5391         * sysdeps/sh/init-first.c (init): Likewise.
5392
5393 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
5394
5395         * po/ru.po: Update from translation team.
5396         * po/vi.po: Likewise.
5397
5398 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5399
5400         * resolv/nss_dns/dns-host.c: Merge copyright years.
5401
5402 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5403
5404         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5405         Optimize memcpy with prefetch if
5406         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
5407         src, dst pointers have unequal 16 byte alignments.
5408
5409 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5410
5411         [BZ #13928]
5412         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
5413         from a CNAME entry and return the minimum ttl for the query.
5414         (gaih_getanswer_slice): Likewise.
5415
5416 2012-03-30  Jeff Law  <law@redhat.com>
5417
5418         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
5419         due to long keys.
5420         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
5421         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
5422
5423         * resolv/nss_dns/dns-host.c: Update copyright year.
5424
5425 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
5426
5427         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
5428         requests to save a system call.  Fix check that all bytes are sent.
5429
5430         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
5431         comments for sendmmsg.
5432
5433 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5434
5435         [BZ #13691]
5436         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5437         with only 1 character between 0x0041 and 0x01b0.
5438         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
5439         * wcsmbs/tst-mbsnrtowcs.c: New file.
5440
5441 2012-03-29  David S. Miller  <davem@davemloft.net>
5442
5443         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
5444         small copies by hand.
5445
5446 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5447
5448         [BZ #13761]
5449         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
5450         _nss_compat_initgroups_dyn): Fall back to malloc/free
5451         for large group memberships.
5452
5453 2012-03-28  David S. Miller  <davem@davemloft.net>
5454
5455         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
5456         that branches into memcpy.
5457         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5458         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
5459         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5460         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
5461         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
5462         bits.
5463         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
5464         implementation too.
5465         * sysdeps/sparc/mempcpy.S: New file.
5466
5467         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
5468         the IFUNC routine in the libc case.
5469         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5470
5471         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
5472         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
5473         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
5474         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
5475         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
5476         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
5477         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
5478         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
5479
5480         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
5481         loop to 256 bytes instead of 64 bytes and fix test signedness.
5482
5483         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
5484         * sysdeps/sparc/sparc32/Makefile: rather than here...
5485         * sysdeps/sparc/sparc64/Makefile: and here.
5486
5487 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
5488
5489         * malloc/mallocbug.c: Avoid warnings about unused variables.
5490
5491 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5492
5493         [BZ #13760]
5494         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
5495         in the right place. Discard and retry query if response is
5496         larger than input buffer size.
5497
5498 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
5499
5500         [BZ #369]
5501         [BZ #2678]
5502         [BZ #3866]
5503         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
5504         x for large integer exponent.
5505         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
5506         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
5507         sign of result as needed afterwards.
5508         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5509         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
5510         result for underflowing pow the same as for overflow.
5511         (__kernel_standard_l): Handle powl overflow and underflow here
5512         rather than calling __kernel_standard.
5513         * math/libm-test.inc (pow_test): Add more tests.
5514
5515         [BZ #3868]
5516         [BZ #13879]
5517         [BZ #13910]
5518         [BZ #13911]
5519         [BZ #13912]
5520         [BZ #13913]
5521         [BZ #13915]
5522         [BZ #13916]
5523         [BZ #13917]
5524         [BZ #13918]
5525         [BZ #13919]
5526         [BZ #13920]
5527         [BZ #13921]
5528         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
5529         * sysdeps/ieee754/k_standard.c: Include <float.h>.
5530         (__kernel_standard_l): New function.
5531         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
5532         __kernel_standard.
5533         * math/w_acosl.c (__acosl): Likewise.
5534         * math/w_asinl.c (__asinl): Likewise.
5535         * math/w_atan2l.c (__atan2l): Likewise.
5536         * math/w_atanhl.c (__atanhl): Likewise.
5537         * math/w_coshl.c (__coshl): Likewise.
5538         * math/w_exp10l.c (__exp10l): Likewise.
5539         * math/w_exp2l.c (__exp2l): Likewise.
5540         * math/w_fmodl.c (__fmodl): Likewise.
5541         * math/w_hypotl.c (__hypotl): Likewise.
5542         * math/w_j0l.c (__j0l, __y0l): Likewise.
5543         * math/w_j1l.c (__j1l, __y1l): Likewise.
5544         * math/w_jnl.c (__jnl, __ynl): Likewise.
5545         * math/w_lgammal.c (__lgammal): Likewise.
5546         * math/w_log10l.c (__log10l): Likewise.
5547         * math/w_log2l.c (__log2l): Likewise.
5548         * math/w_logl.c (__logl): Likewise.
5549         * math/w_powl.c (__powl): Likewise.
5550         * math/w_remainderl.c (__remainderl): Likewise.
5551         * math/w_scalbl.c (sysv_scalbl): Likewise.
5552         * math/w_sinhl.c (__sinhl): Likewise.
5553         * math/w_sqrtl.c (__sqrtl): Likewise.
5554         * math/w_tgammal.c (__tgammal): Likewise.
5555         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
5556         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
5557         * math/libm-test.inc (acos_test): Add more tests.
5558         (acosh_test): Likewise.
5559         (asin_test): Likewise.
5560         (atanh_test): Likewise.
5561         (exp_test): Likewise.
5562         (exp10_test): Likewise.
5563         (exp2_test): Likewise.
5564         (expm1_test): Likewise.
5565         (lgamma_test): Likewise.
5566         (log_test): Likewise.
5567         (log10_test): Likewise.
5568         (log1p_test): Likewise.
5569         (log2_test): Likewise.
5570         (pow_test): Do not allow some spurious overflow exceptions.
5571         (sqrt_test): Add more tests.
5572         (tgamma_test): Likewise.
5573         (y0_test): Likewise.
5574         (y1_test): Likewise.
5575         (yn_test): Likewise.
5576
5577 2012-03-27  Anton Blanchard  <anton@samba.org>
5578
5579         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
5580         MAP_HUGETLB.
5581         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5582         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5583         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5584
5585 2012-03-27  David S. Miller  <davem@davemloft.net>
5586
5587         * conform/Makefile: Run run-conformtest.sh using $(BASH).
5588
5589         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
5590         have-as-vis3 check.
5591
5592 2012-03-27  Andreas Jaeger  <aj@suse.de>
5593
5594         * sysdeps/x86_64/elf/configure.in: Moved to ...
5595         * sysdeps/x86_64/configure.in: ... here.
5596         * sysdeps/x86_64/elf/start.S: Moved to ...
5597         * sysdeps/x86_64/start.S: ... here.
5598         * sysdeps/x86_64/elf/configure: Delete.
5599
5600         * sysdeps/x86_64/configure.in: Merge contents from
5601         sysdeps/i386/configure.in (without i686 check).
5602
5603         * sysdeps/i386/elf/Versions: Merge into ...
5604         * sysdeps/i386/Versions: ... this.
5605         * sysdeps/i386/elf/Versions: Delete file.
5606         * sysdeps/i386/elf/start.S: Moved to ...
5607         * sysdeps/i386/start.S: ...here.
5608         * sysdeps/i386/elf/configure.in: Merge into...
5609         * sysdeps/i386/configure.in: ...here.
5610         * sysdeps/i386/elf/configure.in: Delete file.
5611         * sysdeps/i386/elf/configure: Delete file.
5612
5613         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
5614         * debug/backtracesyms.c: ... here.
5615         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
5616         * debug/backtracesymsfd.c: ... here.
5617         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
5618         * sysdeps/generic/ifunc-sel.h: ... here.
5619
5620         * sysdeps/unix/i386/start.c: Delete file.
5621         * sysdeps/unix/sparc/start.c: Delete file.
5622         * sysdeps/unix/start.c: Delete file.
5623
5624         * sysdeps/sh/elf/configure.in: Moved to ...
5625         * sysdeps/sh/configure.in: ... here.
5626         * sysdeps/sh/elf/start.S: Moved to ...
5627         * sysdeps/sh/start.S: ... here.
5628         * sysdeps/sh/elf/configure: Delete file.
5629
5630         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
5631         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
5632         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
5633         * sysdeps/powerpc/powerpc64/entry.h: ... here.
5634         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
5635         * sysdeps/powerpc/powerpc64/start.S: here.
5636         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
5637         * sysdeps/powerpc/powerpc64/Makefile: ... this.
5638         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
5639         * sysdeps/powerpc/powerpc64/configure.in: ... this.
5640         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
5641
5642         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
5643         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
5644         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
5645         * sysdeps/powerpc/powerpc32/start.S: ... here.
5646         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
5647         * sysdeps/powerpc/powerpc32/configure.in: ... this.
5648         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
5649
5650         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
5651         * sysdeps/powerpc/ifunc-sel.h: ... here.
5652         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
5653         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
5654
5655         * sysdeps/sparc/elf/configure.in: Moved to ...
5656         * sysdeps/sparc/configure.in: ... here.
5657         * sysdeps/sparc/elf/configure: Delete file.
5658         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
5659         * sysdeps/sparc/sparc32/start.S: ... here.
5660         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
5661         * sysdeps/sparc/sparc64/start.S: ... here.
5662         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
5663         * sysdeps/sparc/sparc32/Makefile: ... this.
5664         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
5665         * sysdeps/sparc/sparc64/Makefile: ... this.
5666
5667         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
5668         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
5669         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
5670         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
5671         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
5672         * sysdeps/s390/s390-32/setjmp.S: ... here.
5673         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
5674         * sysdeps/s390/s390-32/configure.in: ... here.
5675         * sysdeps/s390/s390-32/elf/configure: Delete file.
5676         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
5677         * sysdeps/s390/s390-32/start.S: ... here.
5678
5679         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
5680         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
5681         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
5682         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
5683         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
5684         * sysdeps/s390/s390-64/setjmp.S: ... here.
5685         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
5686         * sysdeps/s390/s390-64/configure.in: ... here
5687         * sysdeps/s390/s390-64/elf/configure: Delete file.
5688         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
5689         * sysdeps/s390/s390-64/start.S: ... here.
5690         * sysdeps/s390/s390-64/elf/configure: Delete.
5691
5692         * configure.in: Remove support for elf directories in sysdeps.
5693
5694         * configure: Regenerated.
5695         * sysdeps/i386/configure: Regenerated.
5696         * sysdeps/powerpc/powerpc32/configure: Regenerated.
5697         * sysdeps/powerpc/powerpc64/configure: Regenerated.
5698         * sysdeps/s390/s390-32/configure: Regenerated.
5699         * sysdeps/s390/s390-64/configure: Regenerated.
5700         * sysdeps/sh/configure: Regenerated.
5701         * sysdeps/sparc/configure: Regenerated.
5702         * sysdeps/x86_64/configure: Regenerated.
5703
5704 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
5705
5706         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5707
5708         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
5709         denormal result into account.
5710
5711 2012-03-25  Roland McGrath  <roland@hack.frob.com>
5712
5713         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
5714         Reported by Allan McRae <allan@archlinux.org>.
5715
5716 2012-03-23  Jeff Law  <law@redhat.com>
5717
5718         * nss/getnssent.c (__nss_getent): Fix typo.
5719
5720 2012-03-23  David S. Miller  <davem@davemloft.net>
5721
5722         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5723
5724 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
5725
5726         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
5727         to pad to uint64_t for each field.
5728         (dl_tls_index): Replace unsigned long with uint64_t.
5729
5730 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
5731         Paul Pluzhnikov  <ppluzhnikov@google.com>
5732
5733         [BZ #6528]
5734         * grp/Makefile (otherlibs): Don't set it.
5735         * inet/Makefile (otherlibs): Likewise.
5736         * login/Makefile (otherlibs): Likewise.
5737         * nscd/Makefile (otherlibs): Likewise.
5738         * posix/Makefile (otherlibs): Likewise.
5739         * pwd/Makefile (otherlibs): Likewise.
5740         * rt/Makefile (otherlibs): Likewise.
5741         * sunrpc/Makefile (otherlibs): Likewise.
5742         * nss/Makefile (otherlibs): Likewise.
5743         Add libnss_files to routines and static-only-routines.
5744         ($(objpfx)getent): Remove rule.
5745         * resolv/Makefile: Add libnss_dns and libresolv to routines and
5746         static-only-routines.
5747
5748 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5749
5750         [BZ #13892]
5751         * math/s_cexp.c: Include <float.h>.
5752         (__cexp): Handle exp result overflowing not necessarily
5753         overflowing both real and imaginary parts of result.
5754         * math/s_cexpf.c: Likewise.
5755         * math/s_cexpl.c: Likewise.
5756         * math/libm-test.inc (cexp_test): Add more tests.
5757         * sysdeps/i386/fpu/libm-test-ulps: Update.
5758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5759
5760 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5761
5762         * include/link.h (ELFW): New macro.
5763         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
5764         Replace ELF64_R_TYPE with ELFW(R_TYPE).
5765
5766 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5767
5768         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
5769         with uint64_t.
5770
5771 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5772
5773         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
5774         declaration.
5775         (struct La_x32_retval): Likewise.
5776
5777 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5778
5779         * sysdeps/x86_64/preconfigure.in: New file.
5780         * sysdeps/x86_64/preconfigure: New generated file.
5781
5782 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5783
5784         [BZ #13824]
5785         * math/e_exp2l.c: Include <float.h>.
5786         (__ieee754_exp2l): Handle overflow and underflow cases
5787         separately.  Only pass fractional part of argument to
5788         __ieee754_expl.
5789         * math/libm-test.inc (exp2_test): Add more tests.
5790
5791         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
5792         negating x to take absolute value.
5793         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
5794         Likewise.
5795         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5796         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
5797         Likewise.
5798         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
5799         computing low part if x was negated.
5800         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5801
5802 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5803
5804         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
5805         la_x32_gnu_pltexit.
5806         (pltexit): Cast int_retval to ptrdiff_t.
5807         * elf/tst-auditmod3b.c: Likewise.
5808         * elf/tst-auditmod4b.c: Likewise.
5809         * elf/tst-auditmod5b.c: Likewise.
5810         * elf/tst-auditmod6b.c: Likewise.
5811         * elf/tst-auditmod6c.c: Likewise.
5812         * elf/tst-auditmod7b.c: Likewise.
5813
5814         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
5815         and x32_gnu_pltexit.
5816
5817         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
5818         __ELF_NATIVE_CLASS.
5819         (La_x32_regs): New macro.
5820         (La_x32_retval): Likewise.
5821         (la_x32_gnu_pltenter): New function prototype.
5822         (la_x32_gnu_pltexit): Likewise.
5823
5824 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
5825
5826         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
5827         exponent.
5828
5829         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5830
5831         * configure.in (libc_cv_cc_nofma): Check for option to disable
5832         generation of FMA instructions.
5833         * configure: Regenerate.
5834         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
5835         * sysdeps/ieee754/dbl-64/Makefile: New file.
5836         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5837         Remove brandred-fma4.
5838         (CFLAGS-brandred-fma4.c): Remove.
5839         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
5840         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
5841         define.
5842         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
5843         define.
5844
5845 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5846
5847         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5848         LLONG_MAX != LONG_MAX.
5849         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5850         (_fitoa_word): Likewise.
5851         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
5852         LLONG_MAX != LONG_MAX.
5853         * stdio-common/_itowa.h: Include <_itoa.h>.
5854         (_itowa_word): Use _ITOA_WORD_TYPE on value.
5855         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
5856         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
5857         only if not defined.
5858         (_ITOA_WORD_TYPE): Likewise.
5859         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5860         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
5861
5862 2012-03-21  David S. Miller  <davem@davemloft.net>
5863
5864         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5865
5866 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
5869         of x86_64 when setting libc_cv_slibdir, libdir and
5870         libc_cv_localedir.
5871         * sysdeps/unix/sysv/linux/configure: Regenerated.
5872
5873 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5874
5875         * manual/lang.texi (Old Varargs): Remove section.
5876         (How Variadic): Update menu.
5877         (va_start): Do not mention varargs.h.
5878
5879 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5880             Joseph Myers  <joseph@codesourcery.com>
5881
5882         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
5883         link test.
5884         * configure: Regenerated.
5885
5886 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5887
5888         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
5889         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
5890         conformtest.pl
5891
5892 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5893
5894         * NOTES: Remove.
5895         * Makefile (files-for-dist): Remove NOTES.
5896         (NOTES): Remove rule.
5897         * README: Don't refer to NOTES.
5898         * manual/creature.texi: Don't include macros.texi.
5899         * manual/intro.texi (creature.texi): Remove comment referring to
5900         NOTES.
5901
5902         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
5903         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
5904         * configure: Regenerated.
5905         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
5906         LIBC_TRY_CC_OPTION.
5907         (libc_cv_as_i686): Likewise.
5908         (libc_cv_cc_avx): Likewise.
5909         (libc_cv_cc_sse2avx): Likewise.
5910         (libc_cv_cc_fma4): Likewise.
5911         (libc_cv_cc_novzeroupper): Likewise.
5912         * sysdeps/i386/configure: Regenerated.
5913
5914         [BZ #13883]
5915         * sysdeps/i386/fpu/s_cexp.S: Remove.
5916         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5917         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5918         * math/libm-test.inc (cexp_test): Add more tests.
5919         * sysdeps/i386/fpu/libm-test-ulps: Update.
5920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5921
5922 2012-03-21  Allan McRae  <allan@archlinux.org>
5923
5924         * timezone/Makefile: Do not install iso3166.tab and zone.tab
5925
5926 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5927
5928         [BZ #13871]
5929         * math/w_exp2.c: Do not include <float.h>.
5930         (o_threshold, u_threshold): Remove.
5931         (__exp2): Calculate result before checking finiteness and calling
5932         __kernel_standard.
5933         * math/w_exp2f.c: Likewise.
5934         * math/w_exp2l.c: Likewise.
5935         * math/libm-test.inc (exp2_test): Require overflow exception for
5936         1e6 input.
5937
5938         [BZ #3866]
5939         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
5940         range of signed 64-bit integers before using fistpll.  Remove
5941         checks for whether integers fit in mantissa bits.
5942         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
5943         the range of signed 32-bit integers before using fistpl.  Remove
5944         checks for whether integers fit in mantissa bits.
5945         * sysdeps/i386/fpu/e_powl.S (p64): New object.
5946         (__ieee754_powl): Test for y outside the range of signed 64-bit
5947         integers before using fistpll.  Reduce 64-bit values to 63-bit
5948         ones as needed.
5949         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
5950         divide-by-zero is raised for zero to large negative powers.
5951         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
5952         (__ieee754_powl): Test for y outside the range of signed 64-bit
5953         integers before using fistpll.  Reduce 64-bit values to 63-bit
5954         ones as needed.
5955         * math/libm-test.inc (pow_test): Add more tests.
5956
5957 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5958
5959         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
5960         <stdio-common/_itoa.h>.
5961         * debug/segfault.c: Likewise.
5962         * elf/dl-cache.c: Likewise.
5963         * elf/dl-minimal.c: Likewise.
5964         * elf/dl-misc.c: Likewise.
5965         * elf/dl-sysdep.c: Likewise.
5966         * elf/dl-version.c: Likewise.
5967         * elf/rtld.c: Likewise.
5968         * hurd/hurdsock.c: Likewise.
5969         * hurd/lookup-retry.c: Likewise.
5970         * malloc/malloc.c: Likewise.
5971         * malloc/mtrace.c: Likewise.
5972         * nscd/nscd_getgr_r.c: Likewise.
5973         * nscd/nscd_getpw_r.c: Likewise.
5974         * nscd/nscd_getserv_r.c: Likewise.
5975         * posix/getopt_init.c: Likewise.
5976         * posix/wordexp.c: Likewise.
5977         * stdio-common/_itoa.c: Likewise.
5978         * stdio-common/printf_fphex.c: Likewise.
5979         * stdio-common/vfprintf.c: Likewise.
5980         * string/_strerror.c: Likewise.
5981         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5982         * sysdeps/i386/i686/hp-timing.h: Likewise.
5983         * sysdeps/mach/_strerror.c: Likewise.
5984         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
5985         * sysdeps/mach/hurd/sethostid.c: Likewise.
5986         * sysdeps/mach/hurd/xmknodat.c: Likewise.
5987         * sysdeps/mach/xpg-strerror.c: Likewise.
5988         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5989         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5990         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
5991         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
5992         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5993         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
5994         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5995         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5996         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
5997         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
5998         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
5999         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6000         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
6001         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
6002         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
6003         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
6004         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
6005         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6006         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6007         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6008         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
6009
6010         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
6011
6012         * stdio-common/_itoa.h: Moved to ...
6013         * sysdeps/generic/_itoa.h: Here.
6014
6015         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
6016
6017         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
6018         instead of "_itoa.h" and "_itowa.h".
6019         * stdio-common/vfprintf.: Likewise.
6020
6021 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6022
6023         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
6024         <bits/wordsize.h>.
6025         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
6026         (__signbit): Likwise.
6027         (llrintf): Likwise.
6028         (llrint): Likwise.
6029
6030 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6031
6032         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
6033         __WORDSIZE != 64.
6034
6035 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
6036
6037         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
6038         OVERFLOW_EXCEPTION_OK.
6039         * math/libm-test.inc ("Philosophy"): Update comment about
6040         exception testing.
6041         (OVERFLOW_EXCEPTION): Define.
6042         (OVERFLOW_EXCEPTION_OK): Likewise.
6043         (INVALID_EXCEPTION_OK): Renumber.
6044         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6045         (IGNORE_ZERO_INF_SIGN): Likewise.
6046         (test_exceptions): Handle FE_OVERFLOW.
6047         (exp10_test): Expect overflow exceptions.
6048         (exp2_test): Likewise.
6049         (expm1_test): Likewise.
6050         (nextafter_test): Likewise.
6051         (pow_test): Likewise.
6052         (scalbn_test): Likewise.
6053         (scalbln_test): Likewise.
6054
6055 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6056
6057         * sysdeps/x86_64/bits/atomic.h
6058         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
6059         64bit integer.
6060         (atomic_exchange_acq): Likewise.
6061         (__arch_exchange_and_add_body): Likewise.
6062         (__arch_add_body): Likewise.
6063         (atomic_add_negative): Likewise.
6064         (atomic_add_zero): Likewise.
6065
6066 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6067
6068         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
6069         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
6070
6071 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6072
6073         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
6074         Check __x86_64__ instead of __WORDSIZE.
6075
6076 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6077
6078         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
6079
6080 2012-03-19  David S. Miller  <davem@davemloft.net>
6081
6082         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6083
6084         * sysdeps/sparc/fpu/fenv_private.h: New file.
6085         * sysdeps/sparc/fpu/math_private.h: Use it.
6086         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
6087         Remove.
6088         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
6089         (libc_feholdexcept_setroundl): Remove.
6090         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
6091         Remove.
6092         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
6093         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
6094
6095 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6096
6097         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
6098         int64_t instead of long int.
6099         (INSERT_WORDS64): Likwise.
6100
6101 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6102
6103         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
6104         _Unwind_GetCFA return to _Unwind_Ptr first.
6105
6106 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
6107
6108         [BZ #13629]
6109         * math/s_clog.c: Include <float.h>.
6110         (__clog): Scale large or subnormal inputs.
6111         * math/s_clogf.c: Likewise.
6112         * math/s_clogl.c: Likewise.
6113         * math/s_clog10.c: Include <float.h>.
6114         (M_LOG10_2): Define.
6115         (__clog10): Scale large or subnormal inputs.
6116         * math/s_clog10f.c: Likewise.
6117         * math/s_clog10l.c: Likewise.
6118         * math/libm-test.inc (clog_test): Add more tests.
6119         (clog10_test): Likewise.
6120         * sysdeps/i386/fpu/libm-test-ulps: Update.
6121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6122
6123         [BZ #11451]
6124         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
6125         x and y.
6126         * math/libm-test.inc (atan2_test): Add another test.
6127
6128         * Makerules (common-objdir-compile): Remove.
6129         * sysdeps/unix/Makefile (config-generated): Do not add
6130         $(unix-generated) to variable.
6131         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
6132         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
6133         Remove rule.
6134         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
6135         Likewise.
6136         [generic bits/local_lim.h] (before-compile): Do not append to
6137         variable.
6138         [generic bits/local_lim.h] (common-generated): Likewise.
6139         [generic sys/param.h] (before-compile): Do not append to variable.
6140         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
6141         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
6142         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
6143         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
6144         include.
6145         [generic sys/param.h] (sys/param.h-includes): Remove variable.
6146         [generic sys/param.h] (sys/param.h-includes): Remove rule.
6147         [generic sys/param.h] ($(addprefix
6148         $(common-objpfx),$(sys/param.h-includes))): Likewise.
6149         [generic sys/param.h] (common-generated): Do not append to
6150         variable.
6151         [generic sys/param.h] (sysdep_headers): Likewise.
6152         [generic bits/errno.h] (before-compile): Do not append to
6153         variable.
6154         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
6155         rule.
6156         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
6157         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
6158         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
6159         [generic bits/errno.h] (common-generated): Do not append to
6160         variable.
6161         [generic bits/ioctls.h] (before-compile): Do not append to
6162         variable.
6163         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
6164         rule.
6165         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
6166         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
6167         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
6168         rule.
6169         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
6170         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
6171         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
6172         [generic bits/ioctls.h] (common-generated): Do not append to
6173         variable.
6174         [generic sys/syscall.h] (syscall.h): Remove variable.
6175         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
6176         rule.
6177         [generic sys/syscall.h] (before-compile): Do not append to
6178         variable.
6179         [generic sys/syscall.h] (common-generated): Likewise.
6180         * sysdeps/unix/errnos-tmpl.c: Remove file.
6181         * sysdeps/unix/errnos.awk: Likewise.
6182         * sysdeps/unix/ioctls-tmpl.c: Likewise.
6183         * sysdeps/unix/ioctls.awk: Likewise.
6184         * sysdeps/unix/mk-local_lim.c: Likewise.
6185         * sysdeps/unix/snarf-ioctls: Likewise.
6186
6187 2012-03-19  Richard Henderson  <rth@twiddle.net>
6188
6189         * sysdeps/i386/fpu/fenv_private.h: New file.
6190         * sysdeps/i386/fpu/math_private.h: Use it.
6191         (math_opt_barrier, math_force_eval): Remove.
6192         (libc_feholdexcept_setround_53bit): Remove.
6193         (libc_feupdateenv_53bit): Remove.
6194         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6195         (math_opt_barrier, math_force_eval): Remove.
6196         (libc_feholdexcept): Remove.
6197         (libc_feholdexcept_setround): Remove.
6198         (libc_fetestexcept, libc_fesetenv): Remove.
6199         (libc_feupdateenv_test): Remove.
6200         (libc_feupdateenv, libc_feholdsetround): Remove.
6201         (libc_feresetround): Remove.
6202
6203         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
6204         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
6205
6206         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
6207         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
6208         (libc_feupdateenv_testl): New.
6209         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
6210         (libc_feupdateenv_testf): New.
6211         (libc_feupdateenv): Use libc_feupdateenv_test.
6212         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
6213         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
6214
6215         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
6216         (libc_feholdsetroundf, libc_feholdsetroundl): New.
6217         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
6218         (libc_feresetround_noex): New.
6219         (libc_feresetround_noexf): New.
6220         (libc_feresetround_noexl): New.
6221         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
6222         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
6223         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
6224         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
6225         SET_RESTORE_ROUND.
6226         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6227         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
6228         (__cos): Likewise.
6229         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
6230         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
6231         SET_RESTORE_ROUND_NOEX.
6232         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
6233         SET_RESTORE_ROUND_NOEXF.
6234         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
6235         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
6236         (libc_feholdsetroundf): New.
6237         (libc_feresetround, libc_feresetroundf): New.
6238
6239         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
6240         (libc_feholdexcept_setround_53bit): Convert from macro to function.
6241         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
6242
6243         * sysdeps/generic/math_private.h: Include <fenv.h>.
6244         (default_libc_feholdexcept): New.
6245         (default_libc_feholdexcept_setround): New.
6246         (default_libc_fesetenv, default_libc_feupdateenv): New.
6247         (libc_feholdexcept): Only define if undefined.
6248         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
6249         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
6250         (libc_feholdexcept_setroundl): Likewise.
6251         (libc_feholdexcept_setround_53bit): Likewise.
6252         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
6253         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
6254         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
6255         (libc_feupdateenv_53bit): Likewise.
6256         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
6257         (libc_feholdexcept): Convert from macro to inline function.
6258         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
6259         (libc_fesetenv, libc_feupdateenv): Likewise.
6260
6261         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
6262         not previously defined.
6263         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
6264         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
6265         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
6266         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
6267         * sysdeps/ieee754/flt-32/math_private.h: New file.
6268         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
6269         math_private.h below SET_FLOAT_WORD.
6270         (__isnan, __isinf_ns, __finite): Remove.
6271         (__isnanf, __isinf_nsf, __finitef): Remove.
6272
6273 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
6274
6275         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6276
6277 2012-03-17  David S. Miller  <davem@davemloft.net>
6278
6279         [BZ #6471]
6280         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
6281         for 2.16.
6282
6283 2012-03-16  David S. Miller  <davem@davemloft.net>
6284
6285         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
6286         warnings.
6287
6288         [BZ #6471]
6289         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
6290         properly.
6291         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
6292         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
6293         sysdep_routines when subdir is sysvipc.
6294         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
6295         __getshmlba helper.
6296
6297         * sysdeps/sparc/fpu/libm-test/ulps: Update.
6298
6299 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6300
6301         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
6302         [__LP64__].
6303
6304 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6305
6306         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
6307         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
6308         (__lround): Renamed to ...
6309         (__llround): This.  Replace long int with long long int.
6310         Define lround functions as aliases of llround functions.
6311         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
6312
6313 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6314
6315         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6316         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
6317         adresses to uintptr_t.  Replace "long int" and "unsigned long
6318         int" with "greg_t" on va_arg.
6319
6320 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6321
6322         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
6323         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
6324
6325         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
6326         Move e_machine check before EI_CLASS check.  Handle x32
6327         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
6328         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
6329         SKIP_EM_IA_64 and include
6330         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
6331
6332         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
6333         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
6334         (add_system_dir): New macro.
6335
6336         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
6337         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
6338
6339 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6340
6341         [BZ #2551]
6342         [BZ #2552]
6343         [BZ #2553]
6344         [BZ #2554]
6345         [BZ #2562]
6346         [BZ #2563]
6347         [BZ #2565]
6348         [BZ #2566]
6349         [BZ #2576]
6350         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
6351         (y0): Likewise.
6352         * math/w_j0f.c (j0f): Likewise.
6353         (y0f): Likewise.
6354         * math/w_j0l.c (__j0l): Likewise.
6355         (__y0l): Likewise.
6356         * math/w_j1.c (j1): Likewise.
6357         (y1): Likewise.
6358         * math/w_j1f.c (j1f): Likewise.
6359         (y1f): Likewise.
6360         * math/w_j1l.c (__j1l): Likewise.
6361         (__y1l): Likewise.
6362         * math/w_jn.c (jn): Likewise.
6363         (yn): Likewise.
6364         * math/w_jnf.c (jnf): Likewise.
6365         (ynf): Likewise.
6366         * math/w_jnl.c (__jnl): Likewise.
6367         (__ynl): Likewise.
6368         * math/libm-test.inc (j0_test): Add more tests.
6369         (j1_test): Likewise.
6370         (jn_test): Likewise.  Add trailing semicolon to existing test.
6371         (y0_test): Likewise.
6372         (y1_test): Likewise.
6373         * sysdeps/i386/fpu/libm-test-ulps: Update.
6374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6375
6376         [BZ #13851]
6377         [BZ #13854]
6378         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
6379         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
6380         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
6381         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
6382         (__tanl): Set errno for infinite argument.
6383         * sysdeps/i386/fpu/mptan.c: Remove.
6384         * sysdeps/i386/fpu/s_tan.S: Likewise.
6385         * sysdeps/i386/fpu/s_tanl.S: Likewise.
6386         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
6387         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
6388         * math/libm-test.inc (tan_test): Add more tests and enable more
6389         tests for double and long double.
6390         * sysdeps/i386/fpu/libm-test-ulps: Update.
6391         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6392
6393 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6394
6395         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
6396         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
6397
6398 2012-03-16  Roland McGrath  <roland@hack.frob.com>
6399
6400         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
6401         * configure.in: Use it for both main tree and add-ons.
6402         * configure: Regenerated.
6403
6404 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6405
6406         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
6407
6408 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6409
6410         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
6411         in comment.
6412
6413         [BZ #13851]
6414         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
6415         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
6416         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
6417         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
6418         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
6419         infinite argument.
6420         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
6421         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
6422         != 0 for prec == 2.
6423         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
6424         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
6425         * sysdeps/i386/fpu/s_cosl.S: Likewise.
6426         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
6427         * sysdeps/i386/fpu/s_sinl.S: Likewise.
6428         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
6429         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
6430         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
6431         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
6432         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
6433         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
6434         * math/libm-test.inc (cos_test): Add more tests and enable more
6435         tests for long double.
6436         (sin_test): Likewise.
6437         (sincos_test): Likewise.
6438         * sysdeps/i386/fpu/libm-test-ulps: Update.
6439         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6440
6441 2012-03-16  David S. Miller  <davem@davemloft.net>
6442
6443         * sysdeps/sparc/fpu/math_private.h: New file.
6444
6445 2012-03-15  David S. Miller  <davem@davemloft.net>
6446
6447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
6448         file.
6449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
6450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
6451         file.
6452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
6453         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
6454         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
6455         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
6456         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
6457         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
6458         sysdep routines.
6459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6460
6461         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
6462         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
6463
6464         * sysdeps/sparc/sparc-ifunc.h: New file.
6465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
6466         sparc-ifunc.h
6467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6469         Likewise.
6470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6471         Likewise.
6472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
6473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6476         Likewise.
6477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
6479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
6481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
6482         Likewise.
6483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
6484         Likewise.
6485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
6488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
6489         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6490         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6491         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
6492         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
6493         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6494         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
6496         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
6497         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
6498         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
6499         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
6500         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6501         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
6502         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6503         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
6504         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6505         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
6506         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6507         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
6508         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6509
6510 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6511
6512         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
6513         scaling.
6514         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6515
6516 2012-03-15  Andreas Jaeger  <aj@suse.de>
6517
6518         [BZ #13852]
6519         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
6520         ieee754/flt-32 implementation for sin, cos and sincos.
6521         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
6522         * sysdeps/i386/fpu/s_cosf.S: Likewise.
6523         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
6524         * sysdeps/i386/fpu/s_sinf.S: Likewise.
6525         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
6526         ieee754/flt-32 implementation for tan.
6527
6528         * math/libm-test.inc (cos_test): Enable some large input tests for
6529         float as well
6530         (sin_test): Likewise.
6531         (sincos_test): Likewise.
6532         (tan_test): Add tests for large input.
6533
6534         * sysdeps/i386/fpu/libm-test-ulps: Update.
6535
6536 2012-03-15  Andreas Jaeger  <aj@suse.de>
6537
6538         [BZ #13658]
6539         * math/libm-test.inc (cos_test): Add more test cases.
6540         (sin_test): Likewise.
6541         (sincos_test): Likewise.
6542
6543 2012-03-15  Andreas Jaeger  <aj@suse.de>
6544
6545         [BZ #13837]
6546         * math/libm-test.inc (cos_test): Add a test case for large input
6547         value.
6548         (sin_test): Likewise.
6549         (sincos_test): Likewise.
6550
6551 2012-03-15  Andreas Jaeger  <aj@suse.de>,
6552         Joseph Myers  <joseph@codesourcery.com>
6553
6554         [BZ #13658]
6555         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
6556         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
6557         * sysdeps/i386/fpu/branred.c: Likewise.
6558         * sysdeps/i386/fpu/dosincos.c: Likewise.
6559         * sysdeps/i386/fpu/mpa.c: Likewise.
6560         * sysdeps/i386/fpu/s_cos.S: Likewise.
6561         * sysdeps/i386/fpu/s_sin.S: Likewise.
6562         * sysdeps/i386/fpu/s_sincos.S: Likewise.
6563         * sysdeps/i386/fpu/sincos32.c: Likewise.
6564
6565         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
6566         Define.
6567         (libc_feupdateenv_53bit): Define.
6568         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
6569         Define.
6570         (libc_feupdateenv_53bit): Define.
6571
6572         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
6573         53 bit (without extend i386 double precision).
6574
6575         * math/libm-test.inc (sincos_test): Add tests for large input.
6576         (sin): Likewise.
6577         (cos): Likewise.
6578
6579         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
6580
6581 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6582
6583         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6584
6585 2012-03-15  David S. Miller  <davem@davemloft.net>
6586
6587         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
6588         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
6589         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
6590         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
6591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
6592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
6593         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
6594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
6595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
6596         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
6597         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
6598         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
6599         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
6600         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
6601         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
6602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
6603         file.
6604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
6605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
6606         file.
6607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
6608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
6609         file.
6610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
6611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
6612         file.
6613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
6614         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
6615         fmin/fmax sysdep routines.
6616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6617
6618 2012-03-14  David S. Miller  <davem@davemloft.net>
6619
6620         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
6621         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
6622         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
6623         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
6624         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
6625         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
6626         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
6627         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
6628         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
6629         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
6630         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
6631         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
6632         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
6633         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
6634         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
6635         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
6636         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
6637         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
6638         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
6639         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
6640         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
6641         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
6642         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
6643         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
6644         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
6645         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
6646         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
6647         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
6648         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
6649         routines.
6650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
6651         file.
6652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
6653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
6654         file.
6655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
6656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
6657         file.
6658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
6659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
6660         file.
6661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
6662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
6663         file.
6664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
6665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
6666         file.
6667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
6668         file.
6669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
6670         file.
6671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
6672         file.
6673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
6674         New file.
6675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
6676         file.
6677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
6678         file.
6679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
6680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
6681         file.
6682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
6683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
6684         file.
6685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
6686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
6687         file.
6688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
6689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
6690         VIS3 routines.
6691
6692         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
6693         New file.
6694
6695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6696
6697         * sysdeps/sparc/configure.in: New file.
6698         * sysdeps/sparc/configure: Generate.
6699         * configure.in (libc_cv_sparc_as_vis3): Substitute.
6700         * configure: Regenerate.
6701         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
6702         * config.make.in (have-as-vis3): New.
6703         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
6704         available use -Av9d instead of -Av9a.
6705         * sysdeps/sparc/sparc64/Makefile: Likewise.
6706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
6707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
6708         New file.
6709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
6710         file.
6711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
6712         New file.
6713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
6714         file.
6715         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
6716         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
6717         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
6718         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
6719         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
6720
6721         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
6722         fzeros/fnegs to load 0x80000000 into a float register instead of
6723         using the stack.
6724         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
6725
6726 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6727
6728         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6729         bits/syscall.h.
6730         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
6731         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
6732         ($(inst_includedir)/bits/syscall.h): Remove rule.
6733         ($(objpfx)bits/syscall.d): Include instead of
6734         $(objpfx)syscall-list.d.
6735         (generated): Change syscall-list.h and syscall-list.d to
6736         bits/syscall.h and bits/syscall.d.
6737
6738 2012-03-14  Roland McGrath  <roland@hack.frob.com>
6739
6740         [BZ #13846]
6741         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
6742
6743 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6744
6745         [BZ #13841]
6746         * math/s_csqrt.c: Include <float.h>.
6747         (__csqrt): Scale large or subnormal inputs.
6748         * math/s_csqrtf.c: Likewise.
6749         * math/s_csqrtl.c: Likewise.
6750         * math/libm-test.inc (csqrt_test): Add more tests.
6751         * sysdeps/i386/fpu/libm-test-ulps: Update.
6752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6753
6754         [BZ #13840]
6755         * math/libm-test.inc (hypot_test): Add more tests.
6756
6757 2012-03-13  David S. Miller  <davem@davemloft.net>
6758
6759         [BZ #13840]
6760         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
6761         double-precision for the calculation instead of scaling.
6762
6763 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
6764
6765         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
6766         manipulate bits before adding and subtracting TWO52[sx].
6767         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
6768         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6769         Likewise.
6770         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
6771
6772 2012-03-13  David S. Miller  <davem@davemloft.net>
6773
6774         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
6775         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
6776         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
6777         rtld-global-offsets.h
6778         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6779
6780         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
6781         large parameters.
6782
6783         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
6784
6785         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
6786         'err' in the ifdef scope in which it is actually used.
6787
6788         * nss/nss_db/db-init.c: Include string.h
6789
6790 2012-03-12  David S. Miller  <davem@davemloft.net>
6791
6792         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
6793         masking out of the most significant byte of random value used.
6794         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6795         Fix coding style in previous change.
6796
6797         * sysdeps/unix/sysv/linux/kernel-features.h
6798         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
6799         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
6800         expression.
6801         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
6802         later.
6803
6804 2012-03-11  David S. Miller  <davem@davemloft.net>
6805
6806         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6807         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
6808         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
6809         for 'resultvar' otherwise things get truncated on 64-bit.
6810
6811         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6812         Fix masking out of the most significant byte of random value used.
6813
6814         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6815
6816 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
6817
6818         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6819
6820 2012-03-09  David S. Miller  <davem@davemloft.net>
6821
6822         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
6823         variables with appropriate CPP guards.
6824         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
6825         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
6826         on resulting framesize and the management of the outregs buffer for pltexit.
6827         Preserve floating point return values across _dl_call_pltexit call.
6828         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
6829         framesize and the management of the outregs buffer for pltexit.
6830         Preserve floating point return values across _dl_call_pltexit
6831         call.
6832         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
6833         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
6834         (print_exit): Fix format string for return register value.
6835
6836 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
6837
6838         * sunrpc/Makefile (others): Add rpcgen.
6839         ($(objpfx)rpcgen): Remove special build rule and dependency on
6840         libc.
6841         * sunrpc/rpcgen.c: New file.
6842
6843 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
6844
6845         [BZ #13673]
6846         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
6847         * stdio-common/bug-vfprintf-nargs.c: Likewise.
6848         * sysdeps/i386/crti.S: Likewise.
6849         * sysdeps/i386/crtn.S: Likewise.
6850         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
6851         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
6852         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
6853         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
6854         * sysdeps/sh/crti.S: Likewise.
6855         * sysdeps/sh/crtn.S: Likewise.
6856         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
6857
6858         [BZ #13673]
6859         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
6860         with URL.
6861         * locale/programs/locfile-kw.gperf: Likewise.
6862         * locale/programs/charmap-kw.h: Regenerated.
6863         * locale/programs/locfile-kw.h: Likewise.
6864
6865         [BZ #13673]
6866         * intl/plural.y: Replace FSF snail mail address with URL.
6867         * intl/plural.c: Regenerated.
6868
6869 2012-03-09  Richard Henderson  <rth@twiddle.net>
6870
6871         * include/math_private.h: Remove file.
6872         * math/math_private.h: Move file ...
6873         * sysdeps/generic/math_private.h: ... here.
6874
6875         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
6876         * sysdeps/powerpc/fpu/math_private.h: Likewise.
6877         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6878
6879         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
6880         and <math_private.h>.
6881         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
6882         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6883         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
6884         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
6885         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
6886         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
6887         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6888         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6889         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6890         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6891         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6892         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6893         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6894         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6895         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6896         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6897         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6898         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6899         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6900         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6901         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6902         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6903         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6904         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6905         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
6906         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6907         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6908         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6909         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6910         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6911         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6912         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6913         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6914         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6915         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6916         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6917         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6918         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
6919         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6920         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6921         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
6922         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
6923         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
6924         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6925         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
6926         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6927         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6928         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6929         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6930         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
6931         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6932         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6933         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
6934         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6935         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
6936         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6937         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6938         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
6939         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
6940         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
6941         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6942         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6943         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6944         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
6945         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6946         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6947         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6948         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6949         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
6950         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
6951         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
6952         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6953         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6954         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6955         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
6956         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6957         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
6958         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6959         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
6960         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6961         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
6962         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6963         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
6964         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6965         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6966         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
6967         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
6968         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6969         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6970         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6971         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6972         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6973         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6974         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6975         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6976         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6977         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6978         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6979         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6980         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6981         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6982         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6983         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6984         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6985         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6986         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6987         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6988         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6989         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6990         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6991         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6992         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6993         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6994         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6995         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6996         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6997         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6998         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
6999         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7000         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7001         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7002         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7003         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7004         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
7005         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7006         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7007         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7008         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7009         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7010         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7011         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7012         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7013         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7014         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7015         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7016         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7017         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7018         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7019         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
7020         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7021         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7022         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7023         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7024         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
7025         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
7026         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7027         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7028         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7029         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7030         * sysdeps/ieee754/k_standard.c: Likewise.
7031         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
7032         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
7033         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7034         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
7035         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7036         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
7037         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
7038         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7039         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
7040         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7041         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7042         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
7043         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7044         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
7045         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
7046         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7047         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7048         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
7049         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7050         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
7051         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
7052         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
7053         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7054         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7055         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7056         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
7057         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7058         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7059         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7060         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7061         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7062         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7063         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7064         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7065         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7066         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7067         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7068         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
7069         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7070         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7071         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7072         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7073         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7074         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7075         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7076         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7077         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7078         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7079         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7080         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7081         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7082         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7083         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7084         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7085         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7086         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7087         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
7088         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
7089         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7090         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7091         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7092         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7093         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7094         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
7095         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7096         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7097         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7098         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7099         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7100         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7101         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7102         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7103         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7104         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7105         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7106         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7107         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
7108         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7109         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7110         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7111         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7112         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7113         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7114         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7115         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
7116         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7117         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7118         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
7119         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
7120         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7121         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
7122         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7123         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
7124         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7125         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7126         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7127         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
7128         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
7129         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
7130         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
7131         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7132         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7133         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7134         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7135         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
7136         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7137         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7138         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
7139         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
7140         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7141         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7142         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7143         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7144         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7145         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7146         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7147         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7148         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7149         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7150         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7151         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7152         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7153         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7154         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7155         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7156         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7157         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7158         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7159         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7160         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7161         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7162         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7163         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7164         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
7165         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7166         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7167         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
7168         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7169         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7170         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7171         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7172         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7173         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7174         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7175         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7176         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7177         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7178         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7179         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7180         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
7181         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7182         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7183         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7184         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7185         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
7186         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
7187         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7188         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7189         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7190         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
7191         * sysdeps/ieee754/s_lib_version.c: Likewise.
7192         * sysdeps/ieee754/s_matherr.c: Likewise.
7193         * sysdeps/ieee754/s_signgam.c: Likewise.
7194         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7195         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7196         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7197         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7198         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7199         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7200         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
7201         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
7202         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7203         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7204         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7205         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7206         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7207         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7208         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
7209         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
7210         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
7211         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
7212         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
7213         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7214         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7215
7216 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7217
7218         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
7219         * sunrpc/rpc_main.c: Likewise.
7220         * sunrpc/rpc_svcout.c: Likewise.
7221
7222 2012-03-09  David S. Miller  <davem@davemloft.net>
7223
7224         * include/math_private.h: New file.
7225
7226 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7227
7228         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
7229         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
7230         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
7231         from <bits/socket_type.h>.
7232         (enum __socket_type): Don't define here.
7233         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
7234         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7235         bits/socket_type.h.
7236
7237         [BZ #13566]
7238         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
7239         checking __USE_GNU.
7240
7241         * Makerules ($(inst_includedir)/%.h): New rule.
7242         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
7243         (install-others): Remove variable setting.
7244         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
7245
7246 2012-03-08  Richard Henderson  <rth@twiddle.net>
7247
7248         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
7249         from macro to inline function; merge with the
7250         !__LIBC_INTERNAL_MATH_INLINES version.
7251         (__ieee754_sqrtf): Likewise.
7252
7253         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
7254         to inline function.
7255         (__rintf, __floor, __floorf): Likewise.
7256
7257         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
7258         macro to inline function.
7259         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
7260
7261         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
7262         not <math/math_private.h>.
7263
7264 2012-03-08  David S. Miller  <davem@davemloft.net>
7265
7266         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
7267         copyright year.
7268         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7269
7270 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
7271
7272         * resolv/gai_misc.c (handle_requests): Fix struct timespec
7273         normalization.
7274         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
7275         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
7276
7277 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
7278
7279         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
7280         be defined individually, they must be defined as a block.  Define
7281         S for printing a string instead of hidint the different by using a
7282         macro for adding the 'l'.
7283         * stdio-common/tst-fphex-wide.c: Adjust.
7284
7285 2012-03-07  Marek Polacek  <polacek@redhat.com>
7286
7287         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
7288
7289 2012-03-08  Marek Polacek  <polacek@redhat.com>
7290
7291         [BZ #13806]
7292         * stdio-common/Makefile (tests): Add tst-fphex-wide.
7293         * stdio-common/tst-fphex.c: Define a few macros to make the
7294         test reusable.  Use them.
7295         * stdio-common/tst-fphex-wide.c: New file.
7296
7297 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
7298
7299         [BZ #6911]
7300         * manual/macros.texi (gnusystems): New macro.
7301         (nongnusystems): Likewise.
7302         (gnulinuxhurdsystems): Likewise.
7303         (gnuhurdsystems): Likewise..
7304         (gnulinuxsystems): Likewise.
7305         * manual/charset.texi: Use new macros or @theglibc{} to refer to
7306         variants of the GNU system, not "GNU system".
7307         * manual/conf.texi: Likewise.
7308         * manual/errno.texi: Likewise.  Update example of errno macro
7309         expansion.
7310         * manual/filesys.texi: Likewise.
7311         (getumask): Document as specific to GNU/Hurd.
7312         * manual/install.texi: Likewise.  Reword some references to
7313         GNU/Linux.
7314         * manual/intro.texi: Likewise.
7315         * manual/io.texi: Likewise.
7316         (File Name Portability): Detail which constraints are inapplicable
7317         to all GNU systems and which are only inapplicable to GNU/Hurd.
7318         * manual/job.texi: Likewise.
7319         * manual/llio.texi: Likewise.
7320         (O_NOCTTY): Document as present on GNU/Linux.
7321         * manual/maint.texi: Likewise.
7322         * manual/memory.texi: Likewise.
7323         * manual/pattern.texi: Likewise.
7324         * manual/pipe.texi: Likewise.
7325         * manual/process.texi: Likewise.
7326         * manual/resource.texi: Likewise.
7327         (RUSAGE_CHILDREN): Remove statement about specifying a particular
7328         child on GNU/Hurd.
7329         * manual/setjmp.texi: Likewise.
7330         * manual/signal.texi: Likewise.
7331         * manual/startup.texi: Likewise.
7332         * manual/stdio.texi: Likewise.
7333         * manual/terminal.texi: Likewise.
7334         (ONLCR): Document as POSIX.
7335         (OXTABS): Document availability on GNU/Linux as XTABS.
7336         (ONOEOT): Document availability separately from other bits.
7337         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
7338         * manual/time.texi: Likewise.
7339         * manual/users.texi: Likewise.
7340         * INSTALL: Regenerated.
7341         * sysdeps/gnu/errlist.c: Regenerated.
7342
7343         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
7344         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
7345         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
7346         puts.
7347         * configure: Regenerated.
7348
7349 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
7350
7351         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
7352         default includes instead of AC_HEADER_CHECK.
7353         * sysdeps/i386/configure: Regenerated.
7354
7355         [BZ #10716]
7356         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
7357         * math/s_cacoshf.c (__cacoshf): Likewise.
7358         * math/s_cacoshl.c (__cacoshl): Likewise.
7359         * math/s_casinh.c (__casinh): Set signs of result from argument.
7360         * math/s_casinhf.c (__casinhf): Likewise.
7361         * math/s_casinhl.c (__casinhl): Likewise.
7362         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
7363         (casinh_test): Add more tests.
7364         * sysdeps/i386/fpu/libm-test-ulps: Update.
7365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7366
7367 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
7368
7369         * po/zh_TW.po: Update from translation team.
7370
7371         * login/Makefile (distribute): Remove variable.
7372         * catgets/Makefile: Likewise.
7373         * mach/Makefile: Likewise.
7374         * malloc/Makefile: Likewise.
7375         * misc/Makefile: Likewise.
7376         * iconv/Makefile: Likewise.
7377         * nscd/Makefile: Likewise.
7378         * hurd/Makefile: Likewise.
7379         * manual/Makefile: Likewise.
7380         * locale/Makefile: Likewise.
7381         * intl/Makefile: Likewise.
7382         * conform/Makefile: Likewise.
7383         * nss/Makefile: Likewise.
7384         * time/Makefile: Likewise.
7385         * soft-fp/Makefile: Likewise.
7386         * dirent/Makefile: Likewise.
7387         * gmon/Makefile: Likewise.
7388         * po/Makefile: Likewise.
7389         * rt/Makefile: Likewise.
7390         * socket/Makefile: Likewise.
7391         * math/Makefile: Likewise.
7392         * signal/Makefile: Likewise.
7393         * debug/Makefile: Likewise.
7394         * elf/Makefile: Likewise.
7395         * timezone/Makefile: Likewise.
7396         * stdlib/Makefile: Likewise.
7397         * iconvdata/Makefile: Likewise.
7398         * sunrpc/Makefile: Likewise.
7399         * io/Makefile: Likewise.
7400         * argp/Makefile: Likewise.
7401         * inet/Makefile: Likewise.
7402         * hesiod/Makefile: Likewise.
7403         * grp/Makefile: Likewise.
7404         * csu/Makefile: Likewise.
7405         * wctype/Makefile: Likewise.
7406         * crypt/Makefile: Likewise.
7407         * libio/Makefile: Likewise.
7408         * string/Makefile: Likewise.
7409         * nis/Makefile: Likewise.
7410         * resolv/Makefile: Likewise.
7411         * stdio-common/Makefile: Likewise.
7412         * wcsmbs/Makefile: Likewise.
7413         * dlfcn/Makefile: Likewise.
7414         * posix/Makefile: Likewise.
7415
7416         [BZ #6959]
7417         * timezone/Makefile: Don't install timezone files, just the programs
7418         and scripts.
7419
7420 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
7421
7422         * nss/databases.def: Add missing gshadow entry.
7423
7424         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
7425
7426 2012-03-06  Marek Polacek  <polacek@redhat.com>
7427
7428         [BZ #13726]
7429         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
7430         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
7431         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
7432         * stdio-common/tst-long-dbl-fphex.c: New file.
7433
7434 2012-03-06  David S. Miller  <davem@davemloft.net>
7435
7436         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7437         (set_obp_int): New function.
7438         (get_obp_int): New function.
7439         (__get_clockfreq_via_dev_openprom): Likewise.
7440         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7441         Avoid unused variable warnings on 'val' and use builtin_expect.
7442         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
7443         __builtin_expect.
7444         (INLINE_CLONE_SYSCALL): Likewise.
7445
7446 2012-03-05  David S. Miller  <davem@davemloft.net>
7447
7448         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7449
7450 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
7451
7452         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7453
7454         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
7455         only for |x| >= 40.
7456         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7457
7458 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7459
7460         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
7461         Replace gettimeofday with __vdso_gettimeofday.
7462
7463         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7464         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
7465         __vdso_clock_gettime and __vdso_getcpu.
7466
7467         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
7468         time with __vdso_time.
7469
7470 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7471
7472         * manual/lang.texi (size_t): Note types to which size_t may be
7473         equivalent with the GNU C Library, but do not describe when
7474         differences between them are significant.
7475
7476 2012-03-05  Andreas Jaeger  <aj@suse.de>
7477
7478         * sysdeps/i386/fpu/libm-test-ulps: Update.
7479
7480 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7481
7482         [BZ #3976]
7483         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
7484         (__ieee754_pow): Save and restore rounding mode and use
7485         round-to-nearest for main computations.
7486         * math/libm-test.inc (pow_test_tonearest): New function.
7487         (pow_test_towardzero): Likewise.
7488         (pow_test_downward): Likewise.
7489         (pow_test_upward): Likewise.
7490         (main): Call the new functions.
7491         * sysdeps/i386/fpu/libm-test-ulps: Update.
7492         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7493
7494         [BZ #3976]
7495         * math/libm-test.inc (cosh_test_tonearest): New function.
7496         (cosh_test_towardzero): Likewise.
7497         (cosh_test_downward): Likewise.
7498         (cosh_test_upward): Likewise.
7499         (sinh_test_tonearest): Likewise.
7500         (sinh_test_towardzero): Likewise.
7501         (sinh_test_downward): Likewise.
7502         (sinh_test_upward): Likewise.
7503         (main): Call the new functions.
7504         * sysdeps/i386/fpu/libm-test-ulps: Update.
7505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7506
7507 2012-03-05  Tom de Vries  <tom@codesourcery.com>
7508
7509         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
7510         default stack guard is set in last bytes.
7511         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
7512
7513 2012-03-05  Kees Cook  <keescook@chromium.org>
7514
7515         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
7516
7517         [BZ #13656]
7518         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
7519         possibly allocate from heap instead of stack.
7520         * stdio-common/bug-vfprintf-nargs.c: New file.
7521         * stdio-common/Makefile (tests): Add nargs overflow test.
7522
7523 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7524
7525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7526
7527 2012-03-03  Marek Polacek  <polacek@redhat.com>
7528
7529         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
7530         * math/math_private.h: Likewise.
7531         * stdlib/tst-strtod.c: Likewise.
7532         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7533         * sysdeps/x86_64/bits/atomic.h: Likewise.
7534
7535 2012-03-02  David S. Miller  <davem@davemloft.net>
7536
7537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
7538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
7539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
7540         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
7541         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
7542         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
7543         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
7544         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
7545
7546 2012-03-02  Roland McGrath  <roland@hack.frob.com>
7547
7548         [BZ #13792]
7549         * manual/examples/README: New file, says the example source files
7550         can be used under GPL>=2.
7551         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
7552         line containing just "*/".
7553         * manual/examples/add.c: Add copyright header (GPL>=2).
7554         * manual/examples/argp-ex1.c: Likewise.
7555         * manual/examples/argp-ex2.c: Likewise.
7556         * manual/examples/argp-ex3.c: Likewise.
7557         * manual/examples/argp-ex4.c: Likewise.
7558         * manual/examples/atexit.c: Likewise.
7559         * manual/examples/db.c: Likewise.
7560         * manual/examples/dir.c: Likewise.
7561         * manual/examples/dir2.c: Likewise.
7562         * manual/examples/execinfo.c: Likewise.
7563         * manual/examples/filecli.c: Likewise.
7564         * manual/examples/filesrv.c: Likewise.
7565         * manual/examples/fmtmsgexpl.c: Likewise.
7566         * manual/examples/genpass.c: Likewise.
7567         * manual/examples/inetcli.c: Likewise.
7568         * manual/examples/inetsrv.c: Likewise.
7569         * manual/examples/isockad.c: Likewise.
7570         * manual/examples/longopt.c: Likewise.
7571         * manual/examples/memopen.c: Likewise.
7572         * manual/examples/memstrm.c: Likewise.
7573         * manual/examples/mkfsock.c: Likewise.
7574         * manual/examples/mkisock.c: Likewise.
7575         * manual/examples/mygetpass.c: Likewise.
7576         * manual/examples/pipe.c: Likewise.
7577         * manual/examples/popen.c: Likewise.
7578         * manual/examples/rprintf.c: Likewise.
7579         * manual/examples/search.c: Likewise.
7580         * manual/examples/select.c: Likewise.
7581         * manual/examples/setjmp.c: Likewise.
7582         * manual/examples/sigh1.c: Likewise.
7583         * manual/examples/sigusr.c: Likewise.
7584         * manual/examples/stpcpy.c: Likewise.
7585         * manual/examples/strdupa.c: Likewise.
7586         * manual/examples/strftim.c: Likewise.
7587         * manual/examples/strncat.c: Likewise.
7588         * manual/examples/subopt.c: Likewise.
7589         * manual/examples/swapcontext.c: Likewise.
7590         * manual/examples/termios.c: Likewise.
7591         * manual/examples/testopt.c: Likewise.
7592         * manual/examples/testpass.c: Likewise.
7593         * manual/examples/timeval_subtract.c: Likewise.
7594
7595         [BZ #13792]
7596         * manual/time.texi (Elapsed Time): Move timeval_subtract example
7597         function to ...
7598         * manual/timeval_subtract.c.texi: ... here, new file.
7599
7600 2012-03-02  David S. Miller  <davem@davemloft.net>
7601
7602         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
7603
7604 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
7605
7606         [BZ #3976]
7607         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
7608         (__sin): Save and restore rounding mode and use round-to-nearest
7609         for all computations.
7610         (__cos): Save and restore rounding mode and use round-to-nearest
7611         for all computations.
7612         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
7613         <fenv.h>.
7614         (tan): Save and restore rounding mode and use round-to-nearest for
7615         all computations.
7616         * math/libm-test.inc (cos_test_tonearest): New function.
7617         (cos_test_towardzero): Likewise.
7618         (cos_test_downward): Likewise.
7619         (cos_test_upward): Likewise.
7620         (sin_test_tonearest): Likewise.
7621         (sin_test_towardzero): Likewise.
7622         (sin_test_downward): Likewise.
7623         (sin_test_upward): Likewise.
7624         (tan_test_tonearest): Likewise.
7625         (tan_test_towardzero): Likewise.
7626         (tan_test_downward): Likewise.
7627         (tan_test_upward): Likewise.
7628         (main): Call the new functions.
7629         * sysdeps/i386/fpu/libm-test-ulps: Update.
7630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7631
7632         [BZ #10135]
7633         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
7634         small n, then large n, before computing and testing k+n.
7635         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7636         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7637         Likewise.
7638         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7639         Likewise.
7640         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
7641         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7642         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7643         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7644         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7645         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7646         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7647         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
7648         * math/libm-test.inc (scalbn_test): Add more tests.
7649         (scalbln_test): Likewise.
7650
7651         * manual/filesys.texi (mode_t): Describe constraints on size and
7652         signedness, not exact equivalence to a particular type.
7653         (ino_t): Likewise.
7654         (ino64_t): Likewise.
7655         (dev_t): Likewise.
7656         (nlink_t): Likewise.
7657         (blkcnt_t): Likewise.
7658         (blkcnt64_t): Likewise.
7659         * manual/llio.texi (off_t): Likewise.
7660
7661         [BZ #3976]
7662         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
7663         (__ieee754_exp): Save and restore rounding mode and use
7664         round-to-nearest for all computations.
7665         * math/libm-test.inc (exp_test_tonearest): New function.
7666         (exp_test_towardzero): Likewise.
7667         (exp_test_downward): Likewise.
7668         (exp_test_upward): Likewise.
7669         (main): Call the new functions.
7670         * sysdeps/i386/fpu/libm-test-ulps: Update.
7671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7672
7673 2012-03-01  Chris Demetriou  <cgd@google.com>
7674
7675         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
7676         have predictable order.
7677
7678 2012-03-01  David S. Miller  <davem@davemloft.net>
7679
7680         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
7681
7682         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
7683         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
7684         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
7685         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
7686
7687         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
7688         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
7689         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
7690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
7691         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
7692         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
7693         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
7694         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
7695         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
7696
7697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7698
7699         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
7700         * sysdeps/sparc/fpu/libm-test-ulps: to here.
7701         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
7702
7703         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
7704         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7705         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7706         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
7707         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
7708         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
7709         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
7710         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7711         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7712         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
7713         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
7714         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7715         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7716         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
7717         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7718         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7719         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
7720         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
7721         * sysdeps/sparc/elf/configure: Regenerated.
7722
7723 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
7724
7725         * configure.in (AS, LD): Require binutils 2.20 or later.
7726         * configure: Regenerated.
7727         * manual/install.texi (Tools for Compilation): Give binutils 2.20
7728         as required minimum version.
7729         * INSTALL: Regenerated.
7730
7731         [BZ #2541]
7732         [BZ #4108]
7733         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
7734         before squaring exponent.
7735         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
7736         bottom long double and 27 bits of top long double before squaring
7737         exponent.
7738         * math/libm-test.inc (erfc_test): Add more tests.
7739         * sysdeps/i386/fpu/libm-test-ulps: Update.
7740         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7742
7743 2012-03-01  Kai Tietz  <ktietz@redhat.com>
7744
7745         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
7746         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
7747         containing bit-fields.
7748         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7749         * soft-fp/single.h (_FP_UNION_S): Likewise.
7750         * soft-fp/double.h (_FP_UNION_D): Likewise.
7751
7752 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7753
7754         [BZ #13786]
7755         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
7756         not include ../strcmp.S.
7757         [USE_AS_STRNCASECMP_L]: Likewise.
7758         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
7759         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
7760         * sysdeps/i386/i686/multiarch/strncase_l-c.c
7761         (__strncasecmp_l_ia32): Define as alias to
7762         __strncasecmp_l_nonascii.
7763
7764         [BZ #5794]
7765         * math/libm-test.inc (expm1_test): Add test for bug 5794.
7766         * sysdeps/i386/fpu/libm-test-ulps: Update.
7767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7768
7769         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
7770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7771
7772 2012-02-29  Jeff Law  <law@redhat.com>
7773
7774         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
7775         out of bounds read.
7776
7777 2012-02-29  Marek Polacek  <polacek@redhat.com>
7778
7779         [BZ #13706]
7780         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
7781         * elf/Makefile: Add rules to run tst-unused-dep.out.
7782
7783 2012-02-28  David S. Miller  <davem@davemloft.net>
7784
7785         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
7786         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
7787         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
7788         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
7789         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
7790         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
7791
7792 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7793
7794         * math/libm-test.inc (llround_test): Move one test from
7795         lround_test.  Use TEST_f_L in moved test.
7796         (lround_test): Move misplaced test to llround_test.  Add testcase
7797         from bug 2561.
7798
7799 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
7800
7801         * sysdeps/x86_64/fpu/e_expf.S: New file.
7802         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
7803
7804 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
7805
7806         [BZ #13637]
7807         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
7808         of remain_len that may cause incomplete multi-byte character and
7809         false match.
7810         * posix/bug-regex33.c: New file.
7811         * posix/Makefile (tests): Add bug-regex33.
7812
7813 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
7814
7815         * manual/macros.texi: New file.
7816         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
7817         * manual/libc.texinfo: Include macros.texi.
7818         * manual/creatute.texi: Likewise.
7819         * manual/install.texi: Likewise.
7820         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
7821         @glibcadj{} in references to the GNU C Library.
7822         * manual/charset.texi: Likewise.
7823         * manual/conf.texi: Likewise.
7824         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
7825         when not using those macros.
7826         * manual/creature.texi: Likewise.
7827         * manual/crypt.texi: Likewise.
7828         * manual/errno.texi: Likewise.
7829         * manual/filesys.texi: Likewise.
7830         * manual/header.texi: Likewise.
7831         * manual/install.texi: Likewise.
7832         * manual/intro.texi: Likewise.
7833         * manual/io.texi: Likewise.
7834         * manual/job.texi: Likewise.
7835         * manual/lang.texi: Likewise.
7836         * manual/libc.texiinfo: Likewise.
7837         * manual/llio.texi: Likewise.
7838         * manual/locale.texi: Likewise.
7839         * manual/maint.texi: Likewise.
7840         * manual/math.texi: Likewise.
7841         * manual/memory.texi: Likewise.
7842         * manual/message.texi: Likewise.
7843         * manual/nss.texi: Likewise.
7844         * manual/pattern.texi: Likewise.
7845         * manual/process.texi: Likewise.
7846         * manual/resource.texi: Likewise.
7847         * manual/search.texi: Likewise.
7848         * manual/setjmp.texi: Likewise.
7849         * manual/signal.texi: Likewise.
7850         * manual/socket.texi: Likewise.
7851         * manual/startup.texi: Likewise.
7852         * manual/stdio.texi: Likewise.
7853         * manual/string.texi: Likewise.
7854         * manual/sysinfo.texi: Likewise.
7855         * manual/syslog.texi: Likewise.
7856         * manual/terminal.texi: Likewise.
7857         * manual/time.texi: Likewise.
7858         * manual/users.texi: Likewise.
7859         * INSTALL: Regenerated.
7860         * NOTES: Regenerated.
7861         * sysdeps/gnu/errlist.c: Regenerated.
7862
7863 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
7864
7865         * include/dirent.h: Include <dirstream.h> before
7866         <dirent/dirent.h>.
7867
7868 2012-02-28  David S. Miller  <davem@davemloft.net>
7869
7870         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
7871         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
7872         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
7873         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
7874
7875 2012-02-27  David S. Miller  <davem@davemloft.net>
7876
7877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
7878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
7879         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
7880         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
7881
7882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
7883         frame pointer instead of stack pointer relative arg slot.
7884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7885         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7886         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7887
7888 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
7889
7890         [BZ #3992]
7891         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
7892
7893 2012-02-27  David S. Miller  <davem@davemloft.net>
7894
7895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
7896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
7899         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7900         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7901         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
7902         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
7903
7904 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7905
7906         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
7907         later.  Allow versions 5-9.
7908         * configure: Regenerated.
7909         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
7910         required minimum version and 4.6 as recommended version.  Do not
7911         mention bugs in GCC 2.7 and 2.8.
7912         * INSTALL: Regenerated.
7913
7914 2012-02-27  David S. Miller  <davem@davemloft.net>
7915
7916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
7917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
7918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
7919         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
7920         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
7921         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
7922         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
7923         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
7924
7925         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
7926         manipulate bits before adding and subtracting TWO112[sx].
7927         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7928
7929 2012-02-27  Roland McGrath  <roland@hack.frob.com>
7930
7931         [BZ #13775]
7932         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
7933         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
7934         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
7935         being in POSIX, because they are in 1003.1-2008.
7936
7937         * rt/tst-aio.c: Include <fcntl.h>.
7938         * rt/tst-aio7.c: Likewise.
7939         * rt/tst-aio64.c: Likewise.
7940
7941         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
7942
7943 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7944
7945         * manual/install.texi (--with-headers): Describe headers as
7946         interface headers, not private headers.
7947         (Specific advice for GNU/Linux systems): Describe use of headers
7948         from "make headers_install", not private headers from older
7949         kernels.
7950         * INSTALL: Regenerated.
7951         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
7952         Change to 2.6.19.
7953         * sysdeps/unix/sysv/linux/configure: Regenerated.
7954
7955         * manual/llio.texi (fclean): Remove documentation.
7956
7957         * manual/Makefile (libc-texi-generated): New variable.  Include
7958         version.texi.
7959         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
7960         $(libc-texi-generated), not duplicated list of files.
7961         (version.texi, stamp-version): New rules.
7962         (realclean): Remove $(libc-texi-generated), not individual files
7963         from that list.  Do not remove dir-add.texinfo.
7964         * manual/libc.texinfo: Comment out uses of edition numbers and
7965         references to printed manual.  Remove last-updated dates.
7966         (EDITION): Comment out.
7967         (ISBN): Likewise.
7968         (VERSION, UPDATED): Remove.
7969         (version.texi): Include.
7970
7971 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
7972
7973         * sysdeps/posix/spawni.c: Include <signal.h>.
7974         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
7975         * sysdeps/pthread/aio_fsync.c: Likewise.
7976
7977 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
7978
7979         * conform/Makefile (tests): Run only when not cross-compiling and
7980         when fast-check is not defined.
7981
7982         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
7983         * conform/data/limits.h-data: Fixes for POSIX2008.
7984         * conform/run-conformtest.sh: Run all tests.
7985         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
7986         headers.
7987         * include/bits/dlfcn.h: Likewise.
7988         * include/langinfo.h: Likewise.
7989         * include/monetary.h: Likewise.
7990         * include/sys/poll.h: Likewise.
7991
7992         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
7993         for __USE_GNU.
7994         * posix/spawn.h: Define __need_sigset_t.
7995         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
7996         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
7997         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
7998         to get sigevent_t only.
7999         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
8000         only for __USE_GNU.
8001         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8002         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8003         process_vm_writev only for __USE_GNU.
8004         * termios/termios.h: Declare tcgetsid also for POSIX2008.
8005
8006         * conform/Makefile: For now ignore errors from run-conformtest.
8007         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
8008         POSIX to avoid namespace pollution.  Don't prepend headers.
8009         * conform/data/aio.h-data: Fixes for POSIX testing.
8010         * conform/data/fcntl.h-data: Likewise.
8011         * conform/data/glob.h-data: Likewise.
8012         * conform/data/grp.h-data: Likewise.
8013         * conform/data/pthread.h-data: Likewise.
8014         * conform/data/pwd.h-data: Likewise.
8015         * conform/data/signal.h-data: Likewise.
8016         * conform/data/spawn.h-data: Likewise.
8017         * conform/data/stdio.h-data: Likewise.
8018         * conform/data/stdlib.h-data: Likewise.
8019         * conform/data/stropts.h-data: Likewise.
8020         * conform/data/sys/mman.h-data: Likewise.
8021         * conform/data/sys/stat.h-data: Likewise.
8022         * conform/data/sys/types.h-data: Likewise.
8023         * conform/data/sys/wait.h-data: Likewise.
8024         * conform/data/time.h-data: Likewise.
8025         * conform/data/unistd.h-data: Likewise.
8026         * conform/data/utime.h-data: Likewise.
8027
8028         * io/sys/stat.h: fchmod was always in POSIX.
8029         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
8030         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
8031         * rt/aio.h: Define __need_timespec before including <time.h>.
8032         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
8033         struct.  Add forward declaration of pthread_attr_t and use it in
8034         sigevent.
8035         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8036         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8037         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
8038         always remove CLK_TCK definition.
8039
8040 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
8041
8042         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
8043
8044 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
8045
8046         * conform/run-conformtest.sh: New file.
8047         * conform/Makefile: Run run-conformtest for tests.
8048         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
8049         support.
8050
8051         * conform/data/uchar.h-data: New file.
8052         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
8053         * conform/data/arpa/inet.h-data: Likewise.
8054         * conform/data/assert.h-data: Likewise.
8055         * conform/data/complex.h-data: Likewise.
8056         * conform/data/cpio.h-data: Likewise.
8057         * conform/data/ctype.h-data: Likewise.
8058         * conform/data/dirent.h-data: Likewise.
8059         * conform/data/dlfcn.h-data: Likewise.
8060         * conform/data/errno.h-data: Likewise.
8061         * conform/data/fcntl.h-data: Likewise.
8062         * conform/data/float.h-data: Likewise.
8063         * conform/data/fmtmsg.h-data: Likewise.
8064         * conform/data/fnmatch.h-data: Likewise.
8065         * conform/data/ftw.h-data: Likewise.
8066         * conform/data/glob.h-data: Likewise.
8067         * conform/data/grp.h-data: Likewise.
8068         * conform/data/iconv.h-data: Likewise.
8069         * conform/data/inttypes.h-data: Likewise.
8070         * conform/data/langinfo.h-data: Likewise.
8071         * conform/data/libgen.h-data: Likewise.
8072         * conform/data/limits.h-data: Likewise.
8073         * conform/data/locale.h-data: Likewise.
8074         * conform/data/math.h-data: Likewise.
8075         * conform/data/monetary.h-data: Likewise.
8076         * conform/data/mqueue.h-data: Likewise.
8077         * conform/data/ndbm.h-data: Likewise.
8078         * conform/data/net/if.h-data: Likewise.
8079         * conform/data/netdb.h-data: Likewise.
8080         * conform/data/netinet/in.h-data: Likewise.
8081         * conform/data/nl_types.h-data: Likewise.
8082         * conform/data/poll.h-data: Likewise.
8083         * conform/data/pthread.h-data: Likewise.
8084         * conform/data/pwd.h-data: Likewise.
8085         * conform/data/regex.h-data: Likewise.
8086         * conform/data/sched.h-data: Likewise.
8087         * conform/data/search.h-data: Likewise.
8088         * conform/data/semaphore.h-data: Likewise.
8089         * conform/data/setjmp.h-data: Likewise.
8090         * conform/data/signal.h-data: Likewise.
8091         * conform/data/spawn.h-data: Likewise.
8092         * conform/data/stdarg.h-data: Likewise.
8093         * conform/data/stdio.h-data: Likewise.
8094         * conform/data/stdlib.h-data: Likewise.
8095         * conform/data/string.h-data: Likewise.
8096         * conform/data/strings.h-data: Likewise.
8097         * conform/data/stropts.h-data: Likewise.
8098         * conform/data/sys/ipc.h-data: Likewise.
8099         * conform/data/sys/mman.h-data: Likewise.
8100         * conform/data/sys/msg.h-data: Likewise.
8101         * conform/data/sys/resource.h-data: Likewise.
8102         * conform/data/sys/select.h-data: Likewise.
8103         * conform/data/sys/sem.h-data: Likewise.
8104         * conform/data/sys/shm.h-data: Likewise.
8105         * conform/data/sys/socket.h-data: Likewise.
8106         * conform/data/sys/stat.h-data: Likewise.
8107         * conform/data/sys/statvfs.h-data: Likewise.
8108         * conform/data/sys/time.h-data: Likewise.
8109         * conform/data/sys/timeb.h-data: Likewise.
8110         * conform/data/sys/times.h-data: Likewise.
8111         * conform/data/sys/types.h-data: Likewise.
8112         * conform/data/sys/uio.h-data: Likewise.
8113         * conform/data/sys/un.h-data: Likewise.
8114         * conform/data/sys/utsname.h-data: Likewise.
8115         * conform/data/sys/wait.h-data: Likewise.
8116         * conform/data/syslog.h-data: Likewise.
8117         * conform/data/tar.h-data: Likewise.
8118         * conform/data/termios.h-data: Likewise.
8119         * conform/data/utime.h-data: Likewise.
8120         * conform/data/utmpx.h-data: Likewise.
8121         * conform/data/varargs.h-data: Likewise.
8122         * conform/data/wchar.h-data: Likewise.
8123         * conform/data/wctype.h-data: Likewise.
8124         * conform/data/wordexp.h-data: Likewise.
8125
8126         * include/stropts.h: New file.
8127         * include/uchar.h: New file.
8128         * include/aio.h: Changes to allow conformtest.pl to use the headers.
8129         * include/assert.h: Likewise.
8130         * include/ctype.h: Likewise.
8131         * include/dirent.h: Likewise.
8132         * include/dlfcn.h: Likewise.
8133         * include/fcntl.h: Likewise.
8134         * include/fnmatch.h: Likewise.
8135         * include/glob.h: Likewise.
8136         * include/grp.h: Likewise.
8137         * include/libio.h: Likewise.
8138         * include/locale.h: Likewise.
8139         * include/math.h: Likewise.
8140         * include/net/if.h: Likewise.
8141         * include/netdb.h: Likewise.
8142         * include/netinet/in.h: Likewise.
8143         * include/pthread.h: Likewise.
8144         * include/pwd.h: Likewise.
8145         * include/regex.h: Likewise.
8146         * include/sched.h: Likewise.
8147         * include/search.h: Likewise.
8148         * include/setjmp.h: Likewise.
8149         * include/signal.h: Likewise.
8150         * include/stdio.h: Likewise.
8151         * include/stdlib.h: Likewise.
8152         * include/string.h: Likewise.
8153         * include/sys/cdefs.h: Likewise.
8154         * include/sys/mman.h: Likewise.
8155         * include/sys/msg.h: Likewise.
8156         * include/sys/resource.h: Likewise.
8157         * include/sys/select.h: Likewise.
8158         * include/sys/socket.h: Likewise.
8159         * include/sys/stat.h: Likewise.
8160         * include/sys/statvfs.h: Likewise.
8161         * include/sys/time.h: Likewise.
8162         * include/sys/times.h: Likewise.
8163         * include/sys/uio.h: Likewise.
8164         * include/sys/utsname.h: Likewise.
8165         * include/sys/wait.h: Likewise.
8166         * include/termios.h: Likewise.
8167         * include/time.h: Likewise.
8168         * include/ulimit.h: Likewise.
8169         * include/unistd.h: Likewise.
8170         * include/utime.h: Likewise.
8171         * include/wchar.h: Likewise.
8172         * include/wctype.h: Likewise.
8173         * include/wordexp.h: Likewise.
8174
8175         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
8176
8177         * time/time.h: TIME_UTC must be a macro.
8178         Make timespec_get available for ISO C11 only as well.
8179
8180 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
8181
8182         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
8183         Reported by Peng Haitao <penght@cn.fujitsu.com>.
8184
8185 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8186
8187         * configure.in: Use -o not -a in test for unsupported multi-arch.
8188
8189 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8190
8191         * manual/texinfo.tex: Update to version 2012-01-19.16.
8192
8193 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8194
8195         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
8196
8197 2012-02-24  Roland McGrath  <roland@hack.frob.com>
8198
8199         [BZ #13738]
8200         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
8201         * manual/fdl-1.3.texi: New file.
8202         * manual/fdl-1.1.texi: File removed.
8203
8204         [BZ #13738]
8205         * manual/libc.texinfo (FDL_VERSION): New @set.
8206         Use it for mention of FDL in cover text.
8207         (Documentation License): Use it in @include file name.
8208
8209 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8210             Roland McGrath  <roland@hack.frob.com>
8211
8212         [BZ #5461]
8213         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
8214         not LONG_LONG_MAX and LONG_LONG_MIN.
8215         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
8216         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
8217         name.
8218         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
8219
8220 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8221
8222         [BZ #2547]
8223         [BZ #11365]
8224         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
8225         manipulate bits before adding and subtracting TWO23[sx].
8226         * math/libm-test.inc (nearbyint_test): Add more tests.
8227
8228 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8229
8230         [BZ #2548]
8231         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
8232         bits before adding and subtracting TWO23[sx].
8233         * math/libm-test.inc (rint_test): Add more tests.
8234         (rint_test_tonearest): Likewise.
8235         (rint_test_towardzero): Likewise.
8236         (rint_test_downward): Likewise.
8237         (rint_test_upward: Likewise.
8238
8239 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8240
8241         [BZ #10110]
8242         * include/stdc-predef.h: New file.  Extracted from features.h.
8243         * include/features.h: Include stdc-predef.h.
8244         * Makefile (headers): Add stdc-predef.h.
8245         * CONFORMANCE (Compiler limitations): Update.
8246
8247 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8248
8249         * manual/libc.texinfo (VERSION, UPDATED): Revert.
8250
8251 2012-02-21  David S. Miller  <davem@davemloft.net>
8252
8253         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
8254         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8255
8256 2012-02-20  David S. Miller  <davem@davemloft.net>
8257
8258         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
8259         using a normal save/restore sequence, rather than allocating a
8260         dummy stack frame just to store a frame pointer and restore.
8261         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8262
8263 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8264
8265         * manual/install.texi: Fix stray word in line-wrapped comment.
8266
8267 2012-02-20  David S. Miller  <davem@davemloft.net>
8268
8269         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
8270         both binutils and gcc support GOTDATA.
8271
8272         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
8273         "rd %pc" in the PIC register setup sequences.
8274
8275         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
8276         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
8277         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8278         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
8279         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8280         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8281         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8282         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8283         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
8284         (SYSCALL_ERROR_HANDLER): Likewise.
8285         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8286         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8287         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
8288         (SYSCALL_ERROR_HANDLER): Likewise.
8289
8290         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
8291         (HAVE_GCC_GOTDATA): New.
8292         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
8293         relocation support in both binutils and gcc.
8294         * sysdeps/sparc/elf/configure: Regenerate.
8295
8296         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
8297         * sysdeps/sparc/sparc32/elf/configure: Delete.
8298         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
8299         * sysdeps/sparc/sparc64/elf/configure: Delete.
8300         * sysdeps/sparc/elf/configure.in: New file.
8301         * sysdeps/sparc/elf/configure: Generate.
8302
8303         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
8304         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
8305         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8306         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
8307         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
8308
8309 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8310
8311         * manual/install.texi: Do not mention specific glibc version
8312         numbers.
8313         * manual/libc.texinfo (VERSION, UPDATED): Update.
8314         (@copying): Use @copyright{} and range of years.
8315
8316 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8317
8318         [BZ #13695]
8319         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
8320         [crti.S not in sysdirs] (generated): Do not append.
8321         [crti.S not in sysdirs] (omit-deps): Likewise.
8322         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
8323         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
8324         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
8325         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
8326         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
8327         Likewise.
8328         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
8329         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
8330         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
8331         * csu/defs.awk: Remove file.
8332         * sysdeps/generic/initfini.c: Likewise.
8333         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
8334         variable.
8335         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
8336         Likewise.
8337
8338 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8339
8340         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
8341         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
8342         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
8343         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
8344         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8345         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
8346         <bits/epoll.h>.
8347         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
8348         (__EPOLL_PACKED): Define to empty if not defined by
8349         <bits/epoll.h>.
8350         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
8351         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8352         bits/epoll.h.
8353
8354 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8355
8356         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
8357         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
8358         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
8359         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
8360         <bits/timerfd.h>.
8361         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
8362         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8363         bits/timerfd.h.
8364
8365 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8366
8367         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
8368         in C locale.
8369         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8370         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8371         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
8372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8373
8374 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
8375
8376         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8377         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8378
8379 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
8380
8381         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
8382         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
8383         defined.
8384         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
8385         Likewise.
8386         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
8387         entry for 2.16.
8388
8389 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
8390
8391         * math/w_acos.c: Use non-signaling floating-point comparisons.
8392         * math/w_acosf.c: Likewise.
8393         * math/w_acosh.c: Likewise.
8394         * math/w_acoshf.c: Likewise.
8395         * math/w_acoshl.c: Likewise.
8396         * math/w_acosl.c: Likewise.
8397         * math/w_asin.c: Likewise.
8398         * math/w_asinf.c: Likewise.
8399         * math/w_asinl.c: Likewise.
8400         * math/w_atanh.c: Likewise.
8401         * math/w_atanhf.c: Likewise.
8402         * math/w_atanhl.c: Likewise.
8403         * math/w_exp2.c: Likewise.
8404         * math/w_exp2f.c: Likewise.
8405         * math/w_exp2l.c: Likewise.
8406         * math/w_j0.c: Likewise.
8407         * math/w_j0f.c: Likewise.
8408         * math/w_j0l.c: Likewise.
8409         * math/w_j1.c: Likewise.
8410         * math/w_j1f.c: Likewise.
8411         * math/w_j1l.c: Likewise.
8412         * math/w_jn.c: Likewise.
8413         * math/w_jnf.c: Likewise.
8414         * math/w_log.c: Likewise.
8415         * math/w_log10.c: Likewise.
8416         * math/w_log10f.c: Likewise.
8417         * math/w_log10l.c: Likewise.
8418         * math/w_log2.c: Likewise.
8419         * math/w_log2f.c: Likewise.
8420         * math/w_log2l.c: Likewise.
8421         * math/w_logf.c: Likewise.
8422         * math/w_logl.c: Likewise.
8423         * math/w_sqrt.c: Likewise.
8424         * math/w_sqrtf.c: Likewise.
8425         * math/w_sqrtl.c: Likewise.
8426         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8427         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
8428         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8429         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8430         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8431
8432 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8433
8434         [BZ #9739]
8435         * manual/string.texi (strnlen): Use correct parameter name in
8436         equivalent expression.
8437
8438 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8439
8440         [BZ #11174]
8441         * manual/users.texi (seteuid): Consistently use neweuid for
8442         argument name.
8443
8444 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8445
8446         [BZ #13704]
8447         * manual/nss.texi (Services in the NSS configuration): Correct
8448         list of services in example configuration file.
8449
8450 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
8451
8452         [BZ #11322]
8453         * manual/arith.texi: Remove statements about negative zero
8454         behaving identically to zero.
8455
8456 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8457
8458         [BZ #5993]
8459         * manual/install.texi: Do not document upgrading from libc5.
8460
8461 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8462
8463         [BZ #4596]
8464         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
8465
8466 2012-02-18  David S. Miller  <davem@davemloft.net>
8467
8468         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
8469         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
8470         %o7 across the call.
8471         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
8472         instead.
8473         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
8474         SETUP_PIC_REG_LEAF.
8475         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8476         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
8477         * sysdeps/sparc/crtn.S: Likewise.
8478
8479 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
8480
8481         * aout/Makefile: Remove.
8482
8483 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
8484
8485         [BZ #13058]
8486         * manual/examples/argp-ex1.c (main): Format definition in GNU
8487         style.
8488         * manual/examples/argp-ex2.c (main): Likewise.
8489         * manual/examples/argp-ex3.c (main): Likewise.
8490         * manual/examples/argp-ex4.c (main): Likewise.
8491         * manual/examples/longopt.c (main): Use new-style prototype
8492         definition.
8493         * manual/examples/strncat.c (main): Specify return type and use
8494         (void) for arguments.
8495         * manual/examples/subopt.c (main): Use char **argv argument.
8496
8497 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8498
8499         [BZ #5077]
8500         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
8501         rounding modes.
8502
8503 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
8504
8505         [BZ #6907]
8506         * manual/string.texi (strchr): Change when strchrnul is
8507         recommended.
8508
8509 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
8510
8511         [BZ #174]
8512         * manual/locale.texi (setlocale): Document LOCPATH.
8513
8514 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8515
8516         [BZ #10210]
8517         * manual/process.texi (execle): Move @dots{} before last argument.
8518
8519 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
8520
8521         [BZ #12047]
8522         * manual/charset.texi (Generic Charset Conversion): Fix typo
8523         (LC_TYPE -> LC_CTYPE).
8524
8525 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
8526
8527         [BZ #5805]
8528         * manual/arith.texi (scalbn): Use @var{} on parameter names.
8529         (scalbnf): Likewise.
8530         (scalbnl): Likewise.
8531         (scalbln): Likewise.
8532         (scalblnf): Likewise.
8533         (scalblnl): Likewise.
8534         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
8535         (vwarnx): Likewise.
8536         (verr): Likewise.
8537         (verrx): Likewise.
8538         * manual/filesys.texi (telldir): Use braces around return type.
8539         * manual/llio.texi (mmap): Add space after comma.
8540         (mmap64): Likewise.
8541         * manual/math.texi (jn): Use @var{} on parameter names.
8542         (jnf): Likewise.
8543         (jnl): Likewise.
8544         (yn): Likewise.
8545         (ynf): Likewise.
8546         (ynl): Likewise.
8547         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
8548         line.
8549         * manual/resource.texi (ulimit): Use @dots{} instead of literal
8550         "...".
8551         (sched_get_priority_min): Remove semicolon on @deftypefun line.
8552         (sched_get_priority_max): Likewise.
8553         * manual/signal.texi (sigvec): Add space after comma.
8554         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
8555         names.
8556         (if_indextoname): Likewise.
8557         (if_freenameindex): Likewise.
8558         (sendto): Use ',' instead of '.' in prototype.
8559         * manual/startup.texi (syscall): Use @dots{} instead of literal
8560         "...".
8561         * manual/stdio.texi (__fpending): Separate initial words of
8562         paragraph from @deftypefun line.
8563         * manual/syslog.texi (syslog): Use @dots{} instead of literal
8564         "...".
8565         (vsyslog): Use @var{} on parameter names.
8566         * manual/terminal.texi (stty): Use @var{} on parameter names.
8567         * manual/users.texi (getutmp): Use @var{} on parameter names.
8568         (getutmpx): Likewise.
8569
8570 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8571
8572         [BZ #6884]
8573         * manual/stdio.texi (fopen): Fix typos in description of
8574         ",ccs=STRING".
8575
8576 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
8577
8578         [BZ #4026]
8579         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
8580         get clock_id definition.
8581
8582 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
8583
8584         [BZ #4822]
8585         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
8586         (madvise): Cast every argument to void on its own.
8587
8588 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8589
8590         [BZ #9902]
8591         * manual/startup.texi (Exit Status): Fix typo.
8592
8593 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8594
8595         [BZ #10140]
8596         * manual/examples/argp-ex1.c: Include <stdlib.h>.
8597         * manual/examples/argp-ex2.c: Likewise.
8598         * manual/examples/argp-ex3.c: Likewise.
8599
8600 2012-02-16  Richard Henderson  <rth@redhat.com>
8601
8602         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
8603         * sysdeps/s390/s390-32/initfini.c: Remove.
8604         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
8605         * sysdeps/s390/s390-64/initfini.c: Remove.
8606
8607 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8608
8609         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
8610         compiler output for sysdeps/generic/initfini.c.
8611         * sysdeps/sh/elf/initfini.c: Remove file.
8612
8613 2012-02-16  David S. Miller  <davem@davemloft.net>
8614
8615         [BZ #11494]
8616         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
8617
8618         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
8619         * sysdeps/sparc/crti.S: New file.
8620         * sysdeps/sparc/crtn.S: New file.
8621         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
8622         * sysdeps/sparc/sparc64/Makefile: Likewise.
8623
8624 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
8625
8626         [BZ #3335]
8627         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
8628
8629 2012-02-15  Roland McGrath  <roland@hack.frob.com>
8630
8631         [BZ #4822]
8632         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
8633
8634         * mach/devstream.c (cookie_io_functions_t): Macro removed.
8635         (write, read, close): Likewise.
8636         Patch by Aurelien Jarno <aurelien@aurel32.net>.
8637
8638 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
8639
8640         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
8641         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
8642         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
8643         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
8644         <bits/signalfd.h>.
8645         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
8646         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8647         bits/signalfd.h.
8648
8649 2012-02-14  Marek Polacek  <polacek@redhat.com>
8650
8651         * sysdeps/x86_64/crti.S: New file.
8652         * sysdeps/x86_64/crtn.S: New file.
8653         * sysdeps/x86_64/elf/initfini.c: Remove file.
8654
8655 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
8658         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
8659         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
8660         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
8661         <bits/inotify.h>.
8662         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
8663         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8664         bits/inotify.h.
8665
8666 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8667
8668         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
8669         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
8670         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
8671         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
8672         <bits/eventfd.h>.
8673         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
8674         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8675         bits/eventfd.h.
8676
8677 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
8678
8679         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
8680         __feraiseexcept instead of feraiseexcept.
8681
8682         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
8683         nanosleep invocations.
8684         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
8685         strings, and add error checking for a nanosleep invocations.
8686
8687 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8688
8689         Replace FSF snail mail address with URLs, as per GNU coding standards.
8690         Most of the snail mail addresses were wrong anyway, and omitting
8691         them makes the source code easier to maintain.  Almost all of the
8692         changes are to license notices and to locale LC_IDENTIFICATION
8693         addresses, except for this one:
8694         * manual/libc.texinfo: In "Published by", give the FSF's URL,
8695         not its snail mail address.
8696
8697 2012-02-09  Richard Henderson  <rth@twiddle.net>
8698
8699         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
8700         of kernel-features.h.
8701
8702         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
8703
8704 2012-02-08  Marek Polacek  <polacek@redhat.com>
8705
8706         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
8707         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
8708         * sysdeps/gnu/_G_config.h: Likewise.
8709         * sysdeps/generic/_G_config.h: Likewise.
8710
8711 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
8712
8713         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
8714         tests.
8715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8716
8717         * sysdeps/powerpc/powerpc32/crti.S: New file.
8718         * sysdeps/powerpc/powerpc32/crtn.S: New file.
8719         * sysdeps/powerpc/powerpc64/crti.S: New file.
8720         * sysdeps/powerpc/powerpc64/crtn.S: New file.
8721
8722         * Makeconfig (have-initfini): Don't set.
8723         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
8724         * configure.in (nopic_initfini): Don't substitute.
8725         * config.h.in (HAVE_INITFINI): Don't #undef.
8726         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
8727         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
8728
8729 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
8730
8731         Support crti.S and crtn.S provided directly by architectures.
8732         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
8733         [crti.S in sysdirs] (omit-deps): Likewise.
8734         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
8735         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
8736         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
8737         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
8738         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
8739         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
8740         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
8741         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
8742         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
8743         compiler output for sysdeps/generic/initfini.c.
8744         * sysdeps/i386/elf/Makefile: Remove file.
8745         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
8746
8747 2012-02-07  Marek Polacek  <polacek@redhat.com>
8748
8749         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
8750         * sysdeps/gnu/_G_config.h: Likewise.
8751         * sysdeps/mach/hurd/_G_config.h: Likewise.
8752
8753 2012-02-07  Marek Polacek  <polacek@redhat.com>
8754
8755         * math/Makefile (tests): Add tst-CMPLX2.
8756         * math/tst-CMPLX2.c: New file.
8757
8758 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
8759
8760         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8761
8762         * math/libm-test.inc (jn_test): Add missing L suffix.
8763
8764 2012-02-06  Marek Polacek  <polacek@redhat.com>
8765
8766         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
8767         * sysdeps/i386/fpu/e_powf.S: Likewise.
8768         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8769         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8770         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8771         * sysdeps/i386/fpu/e_pow.S: Likewise.
8772         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
8773         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8774         * sysdeps/i386/fpu/s_expm1.S: Likewise.
8775         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
8776         * sysdeps/i386/fpu/e_log2.S: Likewise.
8777         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8778         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8779         * sysdeps/i386/fpu/e_powl.S: Likewise.
8780         * sysdeps/i386/fpu/s_log1p.S: Likewise.
8781         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8782         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
8783         * sysdeps/i386/fpu/e_logl.S: Likewise.
8784         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
8785         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
8786         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
8787         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
8788         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8789         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8790         * sysdeps/i386/fpu/e_log.S: Likewise.
8791         * sysdeps/i386/fpu/s_cexp.S: Likewise.
8792         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8793         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
8794         * sysdeps/i386/fpu/e_logf.S: Likewise.
8795         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8796         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8797         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
8798         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
8799         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8800         * sysdeps/i386/fpu/e_log10.S: Likewise.
8801         * sysdeps/i386/fpu/s_frexp.S: Likewise.
8802         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8803         * sysdeps/i386/fpu/s_asinh.S: Likewise.
8804         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
8805         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8806         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
8807         * sysdeps/i386/asm-syntax.h: Likewise.
8808         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8809         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8810         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8811         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
8812         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
8813         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8814         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8815         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8816         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8817         * sysdeps/powerpc/sysdep.h: Likewise.
8818         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
8819         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8820
8821 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8822
8823         [BZ #411]
8824         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
8825
8826 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8827
8828         * sysdeps/i386/sysdep.h: Include <features.h>.
8829         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
8830         version.
8831
8832 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
8833
8834         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
8835         Define.
8836         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
8837         LOAD_PIC_REG_STR.
8838
8839 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8840
8841         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
8842         (SETUP_PIC_REG): Use GET_PC_THUNK.
8843         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
8844         macro.
8845
8846 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8847
8848         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
8849         for non-PIC compilation.
8850         (SETUP_PIC_REG): Add .p2align directive.
8851         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
8852         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
8853         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8854         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8855         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
8856         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8857         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
8858         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
8859         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8860         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8861         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8862         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8863         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8864         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8865         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8866         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
8867         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
8868         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8869         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8870         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8871         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8872         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
8873         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8874         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8875         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
8876         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
8877         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8878         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
8879         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8880         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8881         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8882         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8883         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8884         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8885         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8886         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8887         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8888         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8889         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8890         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8891         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8892
8893 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8894
8895         * math/tst-CMPLX.c: Include <stdio.h>.
8896
8897 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
8898
8899         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
8900         float.
8901         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8902         * sysdeps/sparc/bits/mathdef.h: Likewise.
8903
8904 2012-01-31  Marek Polacek  <polacek@redhat.com>
8905
8906         * libio/libio.h: Don't define _PARAMS.
8907         * locale/programs/config.h: Don't define PARAMS.
8908         * stdlib/strtol_l.c: Likewise.
8909         (__strtol_l): Remove PARAMS from the prototype.
8910
8911 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
8912
8913         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
8914         names.  Just use the correct names.  Remove unnecessary wrapper
8915         functions.
8916         * malloc/arena.c: Likewise.
8917         * malloc/hooks.c: Likewise.
8918
8919         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
8920         ARENA_TEST says not to.  Simplify test for creation of a new arena.
8921         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
8922
8923 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
8924
8925         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
8926         into tail calls.
8927         (update_get_addr): New function.
8928         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
8929         GET_ADDR_MODULE parameter.
8930
8931 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8932
8933         * crypt/cert.c: Remove __STDC__ conditionals.
8934         * crypt/crypt-entry.c: Likewise.
8935         * crypt/crypt_util.c: Likewise.
8936         * libio/filedoalloc.c: Likewise.
8937         * libio/fileops.c: Likewise.
8938         * libio/genops.c: Likewise.
8939         * libio/iofclose.c: Likewise.
8940         * libio/iofdopen.c: Likewise.
8941         * libio/iofopen.c: Likewise.
8942         * libio/iofopen64.c: Likewise.
8943         * libio/iogetdelim.c: Likewise.
8944         * libio/iopopen.c: Likewise.
8945         * libio/obprintf.c: Likewise.
8946         * libio/oldfileops.c: Likewise.
8947         * libio/oldiofclose.c: Likewise.
8948         * libio/oldiofdopen.c: Likewise.
8949         * libio/oldiofopen.c: Likewise.
8950         * libio/oldiopopen.c: Likewise.
8951         * libio/wfiledoalloc.c: Likewise.
8952         * libio/wgenops.c: Likewise.
8953         * locale/programs/xmalloc.c: Likewise.
8954         * misc/syslog.c: Likewise.
8955         * stdio-common/xbug.c: Likewise.
8956         * string/memchr.c: Likewise.
8957         * string/memcmp.c: Likewise.
8958         * string/memrchr.c: Likewise.
8959         * string/rawmemchr.c: Likewise.
8960         * sysdeps/posix/getcwd.c: Likewise.
8961         * time/strftime_l.c: Likewise.
8962
8963 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8964
8965         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
8966         * config.make.in (config-cflags-sse2avx): Define.
8967         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
8968         Fix typo.
8969
8970 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
8971
8972         * scripts/config.guess: Update from upstream config git repository.
8973         * scripts/config.sub: Likewise.
8974
8975 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
8976
8977         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
8978         (EM_NUM): Update.
8979         (R_TILEPRO_*, R_TILEGX_*): New macros.
8980
8981         * scripts/firstversions.awk: Fix bug in version range handling.
8982
8983         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
8984
8985         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
8986
8987         * include/sys/epoll.h: New file.
8988         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
8989         libc_hidden_def.
8990
8991 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
8992
8993         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
8994         Avoid unnecessary __WORDSIZE == 64 test.
8995         (fmaxf): Use VEX format if possible.
8996         (fmax): Likewise.
8997         (fminf): Likewise.
8998         (fmin): Likewise.
8999
9000         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
9001         * math/math_private.h: Remove libc_fegetround* and
9002         libc_fesetround*.
9003         * sysdeps/i386/configure.in: Check for -msse2avx.
9004         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
9005         also if SSE2AVX is defined.
9006         Remove libc_fegetround* and libc_fesetround*.
9007         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
9008         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
9009         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
9010         of HAS_YMM_USABLE.
9011         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9012         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9013         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9014         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9015         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9016
9017         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
9018
9019 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9020
9021         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
9022         size is not set.
9023         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
9024
9025 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
9026
9027         [BZ #13618]
9028         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
9029         relocation.
9030         * Makeconfig (libm): Define.
9031         * elf/Makefile: Add rules to build and run tst-relsort1.
9032         * elf/tst-relsort1.c: New file.
9033         * elf/tst-relsort1mod1.c: New file.
9034         * elf/tst-relsort1mod2.c: New file.
9035
9036 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
9037
9038         * math/s_ldexp.c: Remove __STDC__ conditionals.
9039         * math/s_ldexpf.c: Likewise.
9040         * math/s_ldexpl.c: Likewise.
9041         * math/s_nextafter.c: Likewise.
9042         * math/s_nexttowardf.c: Likewise.
9043         * math/s_significand.c: Likewise.
9044         * math/s_significandf.c: Likewise.
9045         * math/s_significandl.c: Likewise.
9046         * math/w_jnl.c: Likewise.
9047         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9048         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9049         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9050         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9051         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9052         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9053         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
9054         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9055         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9056         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9057         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9058         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9059         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9060         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9061         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9062         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9063         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9064         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9065         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9066         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9067         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9068         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9069         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9070         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9071         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9072         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9073         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9074         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9075         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9076         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9077         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9078         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9079         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9080         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9081         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9082         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9083         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9084         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9085         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9086         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9087         * sysdeps/ieee754/k_standard.c: Likewise.
9088         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9089         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9090         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9091         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9092         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9093         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9094         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9095         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9096         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9097         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9098         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9099         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9100         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9101         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9102         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9103         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9104         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9105         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9106         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9107         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9108         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9109         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9110         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9111         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9112         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9113         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9114         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9115         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9116         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9117         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9118         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9119         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9120         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9121         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9122         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9123         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9124         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9125         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9126         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9127         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9128         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9129         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9130         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9131         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9132         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9133         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
9134         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
9135         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9136         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9137         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9138         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9139         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9140         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9141         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9142         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9143         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9144         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9145         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9146         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9147         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9148         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9149         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9150         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9151         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9152         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9153         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9154         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9155         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9156         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9157         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9158         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9159         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9160         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9161         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9162         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9163         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9164         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9165         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9166         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9167         * sysdeps/ieee754/s_matherr.c: Likewise.
9168         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9169         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9170         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9171         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9172
9173 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9174
9175         * crypt/md5.h: Remove __STDC__ conditionals.
9176         * libio/libioP.h: Likewise.
9177         * locale/programs/config.h: Likewise.
9178         * sysdeps/generic/sysdep.h: Likewise.
9179         * sysdeps/i386/asm-syntax.h: Likewise.
9180         * sysdeps/s390/asm-syntax.h: Likewise.
9181         * sysdeps/unix/sysdep.h: Likewise.
9182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9184
9185 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9186
9187         * libio/libio.h: Remove __STDC__ conditionals.
9188         * malloc/obstack.h: Likewise.
9189         * math/complex.h: Likewise.
9190         * math/math.h: Likewise.
9191         * sysdeps/generic/_G_config.h: Likewise.
9192         * sysdeps/gnu/_G_config.h: Likewise.
9193         * sysdeps/mach/hurd/_G_config.h: Likewise.
9194         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9195         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9196         * sysdeps/sparc/bits/mathdef.h: Likewise.
9197
9198 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
9199
9200         [BZ #13583]
9201         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
9202         Clean up HAS_* macros.
9203         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
9204         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
9205         possible.
9206         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
9207         HAS_AVX.
9208         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9209         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9210         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9211         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9212         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9213
9214 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
9215
9216         * elf/tst-unique3.cc (gets): Remove declaration.
9217         * elf/tst-unique3lib.cc (gets): Likewise.
9218         * elf/tst-unique3lib2.cc (gets): Likewise.
9219         * elf/tst-unique4.cc (gets): Likewise.
9220
9221 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
9222
9223         * include/stdio.h: Add C++ protection.  Add gets declarations and
9224         definitions.
9225         * debug/tst-chk1.c: Don't declare gets here.
9226         * stdio-common/tst-gets.c: Likewise.
9227
9228 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9229
9230         * posix/glob: Remove directory.
9231
9232 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9233
9234         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
9235
9236 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
9237
9238         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
9239         of the non-standard EPFNOSUPPORT.
9240
9241 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9242
9243         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
9244         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
9245         ANYWHERE set to 1 only on KERN_NO_SPACE error.
9246
9247 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
9248
9249         * wcsmbs/uchar.h: Test __STDC_VERSION__.
9250
9251 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
9252
9253         * nscd/aicache.c (addhstaiX): Do not cache negative results of
9254         transient errors.
9255         * nscd/grpcache.c (cache_addgr): Likewise.
9256         * nscd/hstcache.c (cache_addhst): Likewise.
9257         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9258         * nscd/pwdcache.c (cache_addpw): Likewise.
9259         * nscd/servicescache.c (cache_addserv): Likewise.
9260
9261 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
9262
9263         * malloc/malloc.c: Various cleanups.
9264         * malloc/hooks.c: Likewise.
9265
9266         * stdlib/Makefile (tests): Add bug-fmtmsg1.
9267         * stdlib/bug-fmtmsg1.c: New file.
9268
9269         * stdlib/fmtmsg.c (init): Add missing unlock.
9270         Patch by Peng Haitao <penght@cn.fujitsu.com>.
9271
9272 2012-01-12  Marek Polacek  <polacek@redhat.com>
9273
9274         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
9275         and _GNU_SOURCE.
9276
9277 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9278
9279         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
9280         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
9281         macro to ensure uniqueness of label name.
9282         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9283         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9284
9285 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
9286
9287         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
9288
9289         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
9290         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9291         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9292         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
9293
9294 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
9295
9296         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
9297
9298         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
9299         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9300         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9301
9302         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
9303
9304         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
9305         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9306         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9307         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
9308
9309         * math/bits/math-finite.h: Add ldexp support.
9310
9311 2012-01-10  Marek Polacek  <polacek@redhat.com>
9312
9313         * locale/programs/localedef.h (show_archive_content): Add noreturn
9314         attribute.
9315
9316 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
9317
9318         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
9319
9320 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9321
9322         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
9323
9324         * io/Makefile (headers): Add bits/poll2.h.
9325
9326 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
9327
9328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
9329         typo #include statement.
9330
9331 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9332
9333         * include/sys/cdefs.h: Define __attribute_alloc_size.
9334         * catgets/gencat.c: Add alloc_size attribute and apply consistently
9335         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
9336         * elf/pldd.c: Likewise.
9337         * iconv/iconv_charmap.c: Likewise.
9338         * iconv/iconvconfig.c: Likewise.
9339         * iconv/strtab.c: Likewise.
9340         * locale/programs/locale.c: Likewise.
9341         * locale/programs/localedef.h: Likewise.
9342         * locale/programs/simple-hash.c: Likewise.
9343         * nscd/nscd.h: Likewise.
9344         * nss/makedb.c: Likewise.
9345         * sysdeps/generic/ldconfig.h: Likewise.
9346         * locale/programs/localedef.c: Remove xmalloc prototype.
9347         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
9348
9349 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9350
9351         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
9352         appropriate.
9353
9354 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9355
9356         * math/Makefile (tests): Add tst-CMPLX.
9357         * math/tst-CMPLX.c: New file.
9358
9359         * math/complex.h (CMPLXL): Fix typo.
9360
9361         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
9362         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
9363         GLIBC_2.16.
9364         * debug/tst-chk1.c: Add poll and ppoll tests.
9365         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
9366         * include/sys/poll.h: Add hidden proto for ppoll.
9367         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
9368         * sysdeps/mach/hurd/ppoll.c: Likewise.
9369         * io/ppoll.c: Likewise.
9370         * debug/poll_chk.c: New file.
9371         * debug/ppoll_chk.c: New file.
9372         * include/bits/poll2.h: New file.
9373         * io/bits/poll2.h: New file.
9374
9375         [BZ #1350]
9376         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
9377
9378         * configure.in: static is always set to yes.  Remove.
9379         * config.make.in: Don't set build-static.
9380         * Makeconfig: Remove use of build-static.
9381         * dlfcn/Makefile: Likewise.
9382         * elf/Makefile: Likewise.
9383         * math/Makefile: Likewise.
9384         * misc/Makefile: Likewise.
9385         * nptl/Makefile: Likewise.
9386         * sysdeps/mach/hurd/Makefile: Likewise.
9387
9388         * configure.in: PWD_P is not used anymore.
9389         * config.make.in: Remove PWD_P entry.
9390
9391         * configure.in: Remove last remnants of RANLIB.
9392         No need to check for signed size_t anymore.
9393         Don't set libc_commonpagesize and libc_relro_required here for Alpha
9394         and IA-64.
9395         Remove __builtin_expect test because we require at least gcc 3.4.
9396         * aclocal.m4: Likewise.
9397
9398         * wcsmbs/mbrtoc16.c: Implement using towc function.
9399         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
9400         * wcsmbs/wcsmbsload.c: Likewise.
9401         * iconv/gconv_simple.c: Likewise.
9402         * iconv/gconv_int.h: Likewise.
9403         * iconv/gconv_builtin.h: Likewise.
9404         * iconv/iconv_prog.c: Remove CHAR16 handling.
9405
9406         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
9407
9408         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
9409
9410         * configure.in: Remove --with-elf and --enable-bounded options.
9411         Dont set base_machine for ia64.  More non-ELF conditions removed.
9412         Remove testing and setting of leading underscore information.
9413         * config.make.in (build-bounded): Set to no.
9414         * config.h.in: Remove NO_UNDERSCORES entry.
9415         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
9416         them.
9417         * csu/start.c: Remove !NO_UNDERSCORE code.
9418         * locale/localeinfo.h: Likewise.
9419         * sysdeps/generic/machine-gmon.h: Likewise.
9420         * sysdeps/generic/sysdep.h: Likewise.
9421         * sysdeps/i386/sysdep.h: Likewise.
9422         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9423         * sysdeps/mach/sysdep.h: Likewise.
9424         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9425         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9426         * sysdeps/sh/sysdep.h: Likewise.
9427         * sysdeps/sparc/sparc32/alloca.S: Likewise.
9428         * sysdeps/unix/i386/sysdep.S: Likewise.
9429         * sysdeps/unix/sparc/start.c: Likewise.
9430         * sysdeps/unix/sparc/sysdep.S: Likewise.
9431         * sysdeps/unix/sparc/sysdep.h: Likewise.
9432         * sysdeps/unix/start.c: Likewise.
9433         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9434         * sysdeps/x86_64/sysdep.h: Likewise.
9435
9436 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
9437
9438         [BZ #13553]
9439         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
9440         for non-gcc.
9441         * argp/argp-fmtstream.h: Use const instead __const.
9442         * argp/argp.h: Likewise.
9443         * assert/assert.h: Likewise.
9444         * bits/fenv.h: Likewise.
9445         * bits/sched.h: Likewise.
9446         * bits/sigset.h: Likewise.
9447         * bits/sigthread.h: Likewise.
9448         * catgets/nl_types.h: Likewise.
9449         * conform/data/pthread.h-data: Likewise.
9450         * crypt/crypt-private.h: Likewise.
9451         * crypt/crypt.h: Likewise.
9452         * crypt/crypt_util.c: Likewise.
9453         * ctype/ctype.h: Likewise.
9454         * debug/execinfo.h: Likewise.
9455         * debug/mbsnrtowcs_chk.c: Likewise.
9456         * debug/mbsrtowcs_chk.c: Likewise.
9457         * debug/wcsnrtombs_chk.c: Likewise.
9458         * debug/wcsrtombs_chk.c: Likewise.
9459         * debug/wcstombs_chk.c: Likewise.
9460         * dirent/dirent.h: Likewise.
9461         * dlfcn/dlfcn.h: Likewise.
9462         * elf/neededtest4.c: Likewise.
9463         * grp/grp.h: Likewise.
9464         * gshadow/gshadow.h: Likewise.
9465         * iconv/gconv.h: Likewise.
9466         * iconv/gconv_int.h: Likewise.
9467         * iconv/gconv_simple.c: Likewise.
9468         * iconv/iconv.h: Likewise.
9469         * iconv/loop.c: Likewise.
9470         * iconv/skeleton.c: Likewise.
9471         * include/aio.h: Likewise.
9472         * include/aliases.h: Likewise.
9473         * include/argz.h: Likewise.
9474         * include/arpa/inet.h: Likewise.
9475         * include/assert.h: Likewise.
9476         * include/dirent.h: Likewise.
9477         * include/dlfcn.h: Likewise.
9478         * include/execinfo.h: Likewise.
9479         * include/fcntl.h: Likewise.
9480         * include/fenv.h: Likewise.
9481         * include/glob.h: Likewise.
9482         * include/grp.h: Likewise.
9483         * include/libintl.h: Likewise.
9484         * include/mntent.h: Likewise.
9485         * include/netdb.h: Likewise.
9486         * include/pwd.h: Likewise.
9487         * include/rpc/netdb.h: Likewise.
9488         * include/sched.h: Likewise.
9489         * include/search.h: Likewise.
9490         * include/shadow.h: Likewise.
9491         * include/signal.h: Likewise.
9492         * include/stdio.h: Likewise.
9493         * include/stdlib.h: Likewise.
9494         * include/string.h: Likewise.
9495         * include/sys/socket.h: Likewise.
9496         * include/sys/stat.h: Likewise.
9497         * include/sys/statfs.h: Likewise.
9498         * include/sys/statvfs.h: Likewise.
9499         * include/sys/syslog.h: Likewise.
9500         * include/sys/time.h: Likewise.
9501         * include/sys/uio.h: Likewise.
9502         * include/time.h: Likewise.
9503         * include/unistd.h: Likewise.
9504         * include/utmp.h: Likewise.
9505         * include/wchar.h: Likewise.
9506         * include/wctype.h: Likewise.
9507         * inet/aliases.h: Likewise.
9508         * inet/arpa/inet.h: Likewise.
9509         * inet/netinet/ether.h: Likewise.
9510         * inet/netinet/in.h: Likewise.
9511         * intl/libintl.h: Likewise.
9512         * io/bits/fcntl2.h: Likewise.
9513         * io/fcntl.h: Likewise.
9514         * io/ftw.h: Likewise.
9515         * io/sys/poll.h: Likewise.
9516         * io/sys/stat.h: Likewise.
9517         * io/sys/statfs.h: Likewise.
9518         * io/sys/statvfs.h: Likewise.
9519         * io/utime.h: Likewise.
9520         * libio/bits/stdio.h: Likewise.
9521         * libio/bits/stdio2.h: Likewise.
9522         * libio/libio.h: Likewise.
9523         * libio/libioP.h: Likewise.
9524         * libio/stdio.h: Likewise.
9525         * locale/lc-ctype.c: Likewise.
9526         * locale/locale.h: Likewise.
9527         * login/utmp.h: Likewise.
9528         * malloc/arena.c: Likewise.
9529         * malloc/malloc.c: Likewise.
9530         * malloc/malloc.h: Likewise.
9531         * malloc/mcheck.c: Likewise.
9532         * malloc/mtrace.c: Likewise.
9533         * math/bits/mathcalls.h: Likewise.
9534         * math/fenv.h: Likewise.
9535         * math/math_private.h: Likewise.
9536         * misc/bits/error.h: Likewise.
9537         * misc/bits/syslog.h: Likewise.
9538         * misc/err.h: Likewise.
9539         * misc/error.h: Likewise.
9540         * misc/fstab.h: Likewise.
9541         * misc/mntent.h: Likewise.
9542         * misc/regexp.h: Likewise.
9543         * misc/search.h: Likewise.
9544         * misc/sgtty.h: Likewise.
9545         * misc/sys/mman.h: Likewise.
9546         * misc/sys/syslog.h: Likewise.
9547         * misc/sys/uio.h: Likewise.
9548         * misc/sys/xattr.h: Likewise.
9549         * misc/ttyent.h: Likewise.
9550         * nis/rpcsvc/ypclnt.h: Likewise.
9551         * nss/nss.h: Likewise.
9552         * posix/bits/unistd.h: Likewise.
9553         * posix/fnmatch.h: Likewise.
9554         * posix/glob.h: Likewise.
9555         * posix/sched.h: Likewise.
9556         * posix/spawn.h: Likewise.
9557         * posix/sys/wait.h: Likewise.
9558         * posix/unistd.h: Likewise.
9559         * posix/wordexp.h: Likewise.
9560         * pwd/pwd.h: Likewise.
9561         * resolv/netdb.h: Likewise.
9562         * resource/sys/resource.h: Likewise.
9563         * rt/aio.h: Likewise.
9564         * rt/bits/mqueue2.h: Likewise.
9565         * rt/mqueue.h: Likewise.
9566         * shadow/shadow.h: Likewise.
9567         * signal/signal.h: Likewise.
9568         * socket/send.c: Likewise.
9569         * socket/sendto.c: Likewise.
9570         * socket/sys/socket.h: Likewise.
9571         * stdio-common/printf.h: Likewise.
9572         * stdlib/bits/stdlib.h: Likewise.
9573         * stdlib/fmtmsg.h: Likewise.
9574         * stdlib/monetary.h: Likewise.
9575         * stdlib/stdlib.h: Likewise.
9576         * stdlib/ucontext.h: Likewise.
9577         * streams/stropts.h: Likewise.
9578         * string/argz.h: Likewise.
9579         * string/bits/string2.h: Likewise.
9580         * string/string.h: Likewise.
9581         * string/strings.h: Likewise.
9582         * sunrpc/rpc/auth.h: Likewise.
9583         * sunrpc/rpc/auth_des.h: Likewise.
9584         * sunrpc/rpc/clnt.h: Likewise.
9585         * sunrpc/rpc/netdb.h: Likewise.
9586         * sunrpc/rpc/pmap_clnt.h: Likewise.
9587         * sunrpc/rpc/xdr.h: Likewise.
9588         * sysdeps/generic/inttypes.h: Likewise.
9589         * sysdeps/generic/net/if.h: Likewise.
9590         * sysdeps/generic/sys/swap.h: Likewise.
9591         * sysdeps/gnu/net/if.h: Likewise.
9592         * sysdeps/gnu/utmpx.h: Likewise.
9593         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
9594         * sysdeps/i386/i486/bits/string.h: Likewise.
9595         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
9596         * sysdeps/s390/bits/string.h: Likewise.
9597         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
9598         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
9599         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9600         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
9601         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9602         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9603         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9604         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
9605         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
9606         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
9607         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
9608         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9609         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
9610         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9611         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9612         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
9613         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9614         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9615         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9616         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9617         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9618         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
9619         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
9620         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
9621         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
9622         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
9623         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
9624         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9625         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
9626         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
9627         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
9628         * sysvipc/sys/ipc.h: Likewise.
9629         * sysvipc/sys/msg.h: Likewise.
9630         * sysvipc/sys/sem.h: Likewise.
9631         * sysvipc/sys/shm.h: Likewise.
9632         * termios/termios.h: Likewise.
9633         * time/sys/time.h: Likewise.
9634         * time/time.h: Likewise.
9635         * wcsmbs/bits/wchar2.h: Likewise.
9636         * wcsmbs/uchar.h: Likewise.
9637         * wcsmbs/wchar.h: Likewise.
9638         * wctype/wctype.h: Likewise.
9639
9640         [BZ #13551]
9641         * Makeconfig: Remove all but ELF support including AIX support.
9642         * Makerules: Likewise.
9643         * config.h.in: Likewise.
9644         * config.make.in: Likewise.
9645         * configure: Likewise.
9646         * configure.in: Likewise.
9647         * csu/Makefile: Likewise.
9648         * csu/version.c: Likewise.
9649         * debug/Makefile: Likewise.
9650         * dlfcn/Makefile: Likewise.
9651         * elf/Makefile: Likewise.
9652         * extra-lib.mk: Likewise.
9653         * iconv/Makefile: Likewise.
9654         * include/libc-symbols.h: Likewise.
9655         * include/shlib-compat.h: Likewise.
9656         * resolv/Makefile: Likewise.
9657         * resolv/res_libc.c: Likewise.
9658         * rt/Makefile: Likewise.
9659         * sysdeps/i386/asm-syntax.h: Likewise.
9660         * sysdeps/i386/sysdep.h: Likewise.
9661         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9662         * sysdeps/mach/sysdep.h: Likewise.
9663         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
9664         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
9665         * sysdeps/s390/asm-syntax.h: Likewise.
9666         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9667         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9668         * sysdeps/sh/sysdep.h: Likewise.
9669         * sysdeps/unix/sparc/sysdep.h: Likewise.
9670         * sysdeps/wordsize-32/divdi3.c: Likewise.
9671         * sysdeps/x86_64/sysdep.h: Likewise.
9672
9673         * argp/Versions: Remove _argp_unlock_xxx.
9674
9675         [BZ #13559]
9676         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
9677         * abilist/libBrokenLocale.abilist: Likewise.
9678         * abilist/libanl.abilist: Likewise.
9679         * abilist/libc.abilist: Likewise.
9680         * abilist/libcrypt.abilist: Likewise.
9681         * abilist/libdl.abilist: Likewise.
9682         * abilist/libm.abilist: Likewise.
9683         * abilist/libnsl.abilist: Likewise.
9684         * abilist/libpthread.abilist: Likewise.
9685         * abilist/libresolv.abilist: Likewise.
9686         * abilist/librt.abilist: Likewise.
9687         * abilist/libthread_db.abilist: Likewise.
9688         * abilist/libutil.abilist: Likewise.
9689         * abilist/libnss_db.abilist: New file.
9690
9691         * scripts/abilist.awk: Add support for indirect functions.
9692
9693         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
9694
9695         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
9696
9697         * shlib-versions: Remove entries for ports architectures.
9698
9699         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
9700         files in ports.
9701         * elf/stackguard-macros.h: Remove support for IA-64.
9702         * elf/tst-auditmod1.c: Likewise.
9703         * sysdeps/generic/ldsodefs.h: Likewise.
9704
9705         * sysdeps/unix/sysv/linux/configure.in: Ports should define
9706         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
9707         configure files.
9708
9709         [BZ #13552]
9710         * configure.in: Remove --enable-omitfp support.
9711         * FAQ.in: Adjust.
9712         * config.make.in: Likewise.
9713         * Makeconfig: Likewise.
9714         * manual/install.texi: Likewise.
9715
9716         In case anyone cares, the IA-64 architecture could move to ports.
9717         * sysdeps/ia64/*: Removed.
9718         * sysdeps/unix/sysv/linux/ia64/*: Removed.
9719         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
9720
9721         [BZ #13555]
9722         * configure.in: Remove entries for unsupported architectures.
9723
9724         [BZ #13533]
9725         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
9726         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
9727         routines.
9728         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
9729         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
9730         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
9731         fall back to using wcrtomb.
9732         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
9733         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
9734         renaming.
9735         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
9736         * wcsmbs/tst-c16c32-1.c: New file.
9737
9738         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
9739         local variable.
9740
9741         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
9742
9743         * elf/tst-unique3.cc: Add explicit declaration of gets.
9744         * elf/tst-unique3lib.cc: Likewise.
9745         * elf/tst-unique3lib2.cc: Likewise.
9746         * elf/tst-unique4.cc: Likewise.
9747
9748         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
9749
9750 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
9751
9752         [BZ #13566]
9753         * assert/assert.h (static_assert): Don't define for C++.
9754         * libio/stdio.h (gets): Do declare for C++ <= C++11.
9755         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
9756
9757 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
9758
9759         * iconv/loop.c (single loop): Fix assertion in storing of
9760         remaining bytes.
9761
9762         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
9763
9764 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
9765
9766         * posix/getconf.c: Update copyright year.
9767         * nss/getent.c: Likewise.
9768         * nss/makedb.c: Likewise.
9769         * iconv/iconvconfig.c: Likewise.
9770         * iconv/iconv_prog.c: Likewise.
9771         * elf/ldconfig.c: Likewise.
9772         * elf/pldd.c: Likewise.
9773         * elf/sotruss.ksh: Likewise.
9774         * catgets/gencat.c: Likewise.
9775         * csu/version.c: Likewise.
9776         * elf/ldd.bash.in: Likewise.
9777         * elf/sprof.c (print_version): Likewise.
9778         * locale/programs/locale.c: Likewise.
9779         * locale/programs/localedef.c: Likewise.
9780         * login/programs/pt_chown.c: Likewise.
9781         * nscd/nscd.c (print_version): Likewise.
9782         * debug/xtrace.sh: Likewise.
9783         * malloc/memusage.sh: Likewise.
9784         * malloc/mtrace.pl: Likewise.
9785         * debug/catchsegv.sh: Likewise.
9786
9787 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
9788
9789         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
9790         pure attribute.
9791
9792 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
9793
9794         [BZ #13533]
9795         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
9796         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
9797         transformations.
9798         * iconv/gconv_int.h: Likewise.
9799         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
9800         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
9801         from libc for GLIBC_2.16.
9802         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
9803         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
9804         * wcsmbs/uchar.h: Really define mbstate_t.
9805         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
9806         * wcsmbs/c16rtomb.c: New file.
9807         * wcsmbs/mbrtoc16.c: New file.
9808         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
9809         for C/POSIX locale.
9810         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
9811         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
9812
9813         * wcsmbs/wchar.h: Add missing __restrict.
9814
9815 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9816
9817         [BZ #13532]
9818         * time/Makefile (routines): Add timespec_get.
9819         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
9820         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
9821         timespec for ISO C11.
9822         * time/timespec_get.c: New file.
9823         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
9824         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
9825
9826         [BZ #13531]
9827         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
9828         * stdlib/stdlib.h: Declare aligned_alloc.
9829         * Versions.def: Add GLIBC_2.16 for libc.
9830         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
9831
9832         [BZ 13527]
9833         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
9834         ISO C11.
9835
9836         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
9837         code.
9838
9839         [BZ #13528]
9840         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
9841
9842         [BZ #13529]
9843         * assert/assert.h (static_assert): Define.
9844
9845         * version.h: Update for 2.16 development version.
9846
9847         [BZ #13526]
9848         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
9849         _ISOC11_SOURCE.
9850
9851         * version.h (RELEASE): Bump for 2.15 release.
9852         * include/features.h (__GLIBC_MINOR__): Bump to 15.
9853
9854         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
9855         Patch by Marek Polacek <mpolacek@redhat.com>.
9856
9857         * bits/byteswap.h: Protect long long constants with __extension__.
9858         * sysdeps/i386/bits/byteswap.h: Likewise.
9859         * sysdeps/ia64/bits/byteswap.h: Likewise.
9860         * sysdeps/s390/bits/byteswap.h: Likewise.
9861         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9862
9863 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9864
9865         [BZ #13540]
9866         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
9867         destination buffer.
9868         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
9869
9870 2011-12-23  Marek Polacek  <polacek@redhat.com>
9871
9872         * elf/dl-addr.c (determine_info): Add inline keyword.
9873         * elf/tst-auditmod4b.c (check_avx): Likewise.
9874         * elf/tst-auditmod6b.c (check_avx): Likewise.
9875         * elf/tst-auditmod6c.c (check_avx): Likewise.
9876         * elf/tst-auditmod7b.c (check_avx): Likewise.
9877
9878 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9879
9880         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
9881         !__SSE_MATH__.
9882
9883 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9884
9885         [BZ #13540]
9886         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
9887         processing for last bytes.
9888
9889 2011-08-06  Bruno Haible  <bruno@clisp.org>
9890
9891         [BZ #13061]
9892         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
9893         U+0385, not to U+1FEE.
9894
9895         [BZ #13062]
9896         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
9897         entry for U+00A5 U+0301.
9898
9899 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9900
9901         [BZ #13166]
9902         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
9903         buffer for the output is too small.
9904
9905         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
9906         optimization.
9907
9908         [BZ #13185]
9909         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
9910         SSE flags if possible.
9911
9912 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9913
9914         [BZ #13540]
9915         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
9916         processing for last bytes.
9917
9918 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
9919
9920         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
9921         (syscall-list-default-options, syscall-list-default-condition)
9922         (syscall-list-includes): Define.
9923         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
9924         list of ABIs and options and #if conditions for each ABI.  Do not
9925         handle common syscalls between ABIs specially.
9926         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
9927         Remove.
9928         (syscall-list-variants, syscall-list-32bit-options)
9929         (syscall-list-32bit-condition, syscall-list-64bit-options)
9930         (syscall-list-64bit-condition): Define.
9931         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
9932         (syscall-list-variants, syscall-list-32bit-options)
9933         (syscall-list-32bit-condition, syscall-list-64bit-options)
9934         (syscall-list-64bit-condition): Define.
9935         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
9936         Remove.
9937         (syscall-list-variants, syscall-list-32bit-options)
9938         (syscall-list-32bit-condition, syscall-list-64bit-options)
9939         (syscall-list-64bit-condition): Define.
9940         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
9941         Remove.
9942         (syscall-list-variants, syscall-list-32bit-options)
9943         (syscall-list-32bit-condition, syscall-list-64bit-options)
9944         (syscall-list-64bit-condition): Define.
9945
9946 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9947
9948         * locale/iso-639.def: Add brx entry.
9949
9950         [BZ #13328]
9951         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
9952         Proposed by Mariusz_Cukr <marcukr@op.pl>.
9953
9954         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
9955         __feraiseexcept_renamed.
9956
9957 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9958
9959         [BZ #13538]
9960         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
9961         EPOLLET with unsigned values.
9962         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9963         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9964
9965         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
9966         to large cancellation.
9967         * math/s_cacoshf.c: Likewise.
9968         * math/s_cacoshl.c: Likewise.
9969
9970 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
9971
9972         [BZ #13305]
9973         [BZ #12786]
9974         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
9975         * math/s_cacoshf.c: Likewise.
9976         * math/s_cacoshl.c: Likewise.
9977
9978 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9979
9980         [BZ #13439]
9981         * iconv/gconv.h: Define __GCONV_SWAP.
9982         * iconvdata/unicode.c: The swap bit must be stored in __flags.
9983         * iconvdata/utf-16.c: Likewise.
9984         * iconvdata/utf-32.c: Likewise.
9985
9986 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
9987
9988         [BZ #13524]
9989         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
9990         numerator after shifting it by one limb.
9991
9992 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
9993
9994         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
9995         under [__USE_EXTERN_INLINES].
9996
9997 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9998
9999         [BZ #13446]
10000         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
10001
10002 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10003
10004         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
10005         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
10006         optimized code.
10007         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
10008         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
10009         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
10010         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
10011         for strncasecmp/strncasecmp_l compilation.
10012         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
10013         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
10014
10015 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
10016
10017         [BZ #13484]
10018         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
10019         of __asm__.
10020
10021 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
10022
10023         [BZ #13506]
10024         * time/tzfile.c (__tzfile_read): Check values from file header.
10025
10026 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10027
10028         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
10029         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
10030         * powerpc/powerpc32/dl-start.S: Likewise.
10031         * powerpc/powerpc32/elf/start.S: Likewise.
10032         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10033         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
10034         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
10035         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
10036         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
10037         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
10038         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
10039         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10040         * powerpc/powerpc32/fpu/s_round.S: Likewise.
10041         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
10042         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
10043         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
10044         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
10045         * powerpc/powerpc32/memset.S: Likewise.
10046         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
10047         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10048         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10049         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10050         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10051         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
10052         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
10053         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
10054         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
10055         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
10056         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
10057         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10058         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10059
10060 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10061
10062         * math/libm-test.inc: Added more nearbyint tests.
10063         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
10064         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
10065         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
10066         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
10067
10068 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
10069
10070         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
10071         FD_CLOEXEC.
10072
10073 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10074
10075         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
10076         Add wcscpy-ssse3 wcscpy-c.
10077         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
10078         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
10079         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
10080         * sysdeps/x86_64/wcschr.S: New file.
10081         * sysdeps/x86_64/wcsrchr.S: New file.
10082         * string/test-strcmp.c: Remove checking of wcscmp function for
10083         wrong alignments.
10084         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
10085         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
10086         wcsrchr-sse2 wcsrchr-c.
10087         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
10088         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
10089         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
10090         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
10091         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
10092         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
10093         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
10094         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
10095         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
10096         * wcsmbc/wcschr.c (WCSCHR): New macro.
10097
10098 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10099
10100         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
10101         * wcsmbs/test-wcsrchr.c: New file.
10102         * string/test-strrchr.c: Add wcsrchr support.
10103         (WIDE): New macro.
10104         * wcsmbs/test-wcscpy.c: New file.
10105         * string/test-strcpy.c: Add wcscpy support.
10106         (WIDE): New macro.
10107
10108 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
10109
10110         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
10111         the inner loop.
10112
10113 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
10114
10115         [BZ #13472]
10116         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
10117
10118 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
10119
10120         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
10121         Minor optimizations.
10122
10123         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
10124         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
10125         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10126
10127 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
10128
10129         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
10130         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
10131         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
10132         for gcc to avoid warnings.
10133         * inet/Makefile (tests): Add tst-checks.
10134         * inet/tst-checks.c: New file.
10135
10136         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
10137         warning.
10138
10139         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
10140         __wmemcmp_sse2.
10141
10142         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
10143         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
10144
10145         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
10146
10147 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
10148
10149         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
10150         problem.
10151
10152         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
10153
10154 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
10155
10156         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
10157         conditional on GCC version.
10158         (__arch_compare_and_exchange_val_8_acq)
10159         (__arch_compare_and_exchange_val_16_acq)
10160         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
10161         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
10162         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
10163
10164 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
10165
10166         * sysdeps/sh/backtrace.c: New file.
10167
10168 2011-12-02  Andreas Schwab  <schwab@redhat.com>
10169
10170         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
10171         parenthesis.
10172
10173 2011-12-01  Andreas Schwab  <schwab@redhat.com>
10174
10175         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
10176         falling back to utime.
10177
10178 2011-11-30  Andreas Schwab  <schwab@redhat.com>
10179
10180         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
10181         expectations for float.
10182
10183 2011-11-29  Andreas Schwab  <schwab@redhat.com>
10184
10185         * locale/weight.h (findidx): Add parameter len.
10186         * locale/weightwc.h (findidx): Likewise.
10187         * posix/fnmatch_loop.c (FCT): Adjust caller.
10188         * posix/regcomp.c (build_equiv_class): Likewise.
10189         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
10190         * posix/regexec.c (check_node_accept_bytes): Likewise.
10191         * string/strcoll_l.c (STRCOLL): Likewise.
10192         * string/strxfrm_l.c (STRXFRM): Likewise.
10193
10194 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
10195
10196         * Makefile.in: Remove CVSOPT handling.
10197         * configure.in: Remove use of AC_REVISION.
10198         * iconvdata/Makefile (distribute): No need to filter out CVS.
10199         * scripts/list-sources.sh: Remove CVS, subversion and monotone
10200         handling.
10201
10202 2011-11-16  Andreas Schwab  <schwab@redhat.com>
10203
10204         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
10205         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
10206         [USE_AS_STRNCASECMP_L]: Likewise.
10207         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
10208         NO_TLS_DIRECT_SEG_REFS.
10209         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
10210         Fix argument offsets for non-PIC.
10211         [USE_AS_STRNCASECMP_L]: Likewise.
10212         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
10213         NO_TLS_DIRECT_SEG_REFS.
10214
10215 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10216
10217         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
10218         O_CLOEXEC.
10219         * locale/loadlocale.c (_nl_load_locale): Likewise.
10220
10221 2011-11-15  Andreas Schwab  <schwab@redhat.com>
10222
10223         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
10224         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
10225         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
10226         (SYSCALL_GETTIME): Set errno on error.
10227
10228         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
10229         count references to noai6ai_cached.
10230
10231 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10232
10233         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
10234
10235         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
10236         FD_CLOEXEC for /proc/self/maps.
10237
10238         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
10239         FD_CLOEXEC for /proc/meminfo.
10240
10241         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
10242         gai.conf.
10243
10244         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
10245         FD_CLOEXEC for given file.
10246
10247         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
10248
10249         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
10250         FD_CLOEXEC for /etc/hosts.
10251         (_gethtent): Likewise.
10252
10253         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
10254
10255         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
10256         cancellation and set FD_CLOEXEC for /etc/netgroup.
10257
10258         * nss/nss_files/files-key.c (search): Don't allow cancellation when
10259         reading /etc/publickey.
10260
10261         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
10262         allow cancellation when reading /etc/group.
10263
10264         * nss/nss_files/files-alias.c (internal_setent): Don't allow
10265         cancellation.
10266         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
10267
10268         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
10269         when using data file.
10270
10271         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
10272
10273         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
10274         (write_nis_obj): Use "c" and "e" in fopen.
10275
10276         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
10277
10278         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
10279
10280         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
10281
10282         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
10283
10284         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
10285         locale.alias.
10286
10287         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
10288
10289         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
10290
10291         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
10292
10293         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
10294         file parsing and set FD_CLOEXEC.
10295
10296 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10297
10298         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
10299
10300 2011-11-14  Andreas Schwab  <schwab@redhat.com>
10301
10302         * malloc/arena.c (arena_get2): Don't call reused_arena when
10303         _int_new_arena failed.
10304
10305 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10306
10307         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
10308         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
10309         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
10310         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10311         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10312         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
10313         to compile strcasecmp and strncasecmp.
10314         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
10315         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
10316
10317         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
10318
10319 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
10320
10321         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
10322         locale-defines.sym to gen-as-const-headers.
10323         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
10324         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
10325         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
10326         to compile strcasecmp and strncasecmp.
10327         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
10328         strcasecmp_l and strncasecmp_l.
10329         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
10330         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
10331         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
10332         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
10333         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
10334         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
10335         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
10336         * sysdeps/i386/i686/multiarch/strncase.S: New file.
10337         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
10338         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
10339         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
10340
10341 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
10342
10343         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
10344         result of SYSDEP_GETTIME_CPU to retval.
10345         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
10346         parameter list to macro.  Remove trailing semicolon.  Adjust users.
10347
10348         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
10349         variable.
10350
10351         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
10352         mantissa words.
10353         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10354
10355         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
10356         from unused variable.
10357
10358         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
10359         DWARF definitions.
10360         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
10361         for assembling.
10362
10363         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
10364         over namespaces.
10365
10366         * sunrpc/rpc_prot.c (rejected): Fix case value.
10367
10368         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
10369         unsigned long long int to avoid warnings in shift.
10370
10371         * posix/regex_internal.c (re_string_reconstruct): Actually use result
10372         of use of trans.
10373         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
10374         variable tmp.
10375
10376         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
10377         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
10378         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
10379
10380         * nis/nis_table.c (nis_list): Use variable of correct type for
10381         result of __follow_path call.
10382
10383 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10384
10385         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
10386         of math functions ceil, trunc, floor, round, and sqrt, when
10387         avaliable on the platform.
10388         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
10389         name clash.
10390         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10391         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10392         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10393
10394 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
10395
10396         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
10397         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
10398
10399 2011-11-11  Roland McGrath  <roland@hack.frob.com>
10400
10401         * include/unistd.h: Fix __readlink return type.
10402         Reported by Chris Metcalf <cmetcalf@tilera.com>.
10403
10404 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
10405
10406         * stdlib/ucontext.h: Undo last change for makecontext.
10407
10408 2011-11-11  Andreas Schwab  <schwab@redhat.com>
10409
10410         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
10411
10412         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
10413         * setjmp/setjmp.h: Mark functions as non-leaf.
10414         * setjmp/bits/setjmp2.h: Likewise.
10415         * stdlib/ucontext.h: Likewise.
10416
10417 2011-11-10  Andreas Schwab  <schwab@redhat.com>
10418
10419         * malloc/arena.c (_int_new_arena): Don't increment narenas.
10420         (reused_arena): Don't check arena limit.
10421         (arena_get2): Atomically check arena limit.
10422
10423 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
10424
10425         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
10426         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
10427
10428         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
10429         instructions.
10430
10431 2011-11-07  Andreas Schwab  <schwab@redhat.com>
10432
10433         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
10434         handler when locking.
10435
10436         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10437         Fix size of allocated buffer.
10438
10439 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10440
10441         [BZ #10103]
10442         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
10443         declarations for long double functions.
10444         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
10445
10446         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
10447
10448 2011-11-03  Andreas Schwab  <schwab@redhat.com>
10449
10450         * nscd/nscd.c (main): Don't start AVC thread until credentials are
10451         installed.
10452
10453         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
10454         is disabled.
10455
10456 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10457
10458         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
10459
10460 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
10461
10462         * include/alloca.h (stackinfo_alloca_round): Define.
10463         (extend_alloca): Use it.
10464         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
10465         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
10466         here.
10467
10468         * scripts/check-local-headers.sh: Ignore libaudit.h.
10469
10470         * nscd/Makefile (extra-objs): Make recursively expanded.
10471
10472 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
10473
10474         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
10475         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
10476
10477         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
10478         * posix/tst-rfc3484-2.c: Likewise.
10479         * posix/tst-rfc3484-3.c: Likewise.
10480
10481         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10482         process_vm_writev.
10483         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
10484         process_vm_writev.
10485         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
10486         process_vm_writev from libc using GLIBC_2.15 version.
10487
10488         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
10489
10490 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10491
10492         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
10493         stack usage.
10494
10495 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
10496
10497         [BZ #13367]
10498         * nss/getent.c (initgroups_keys): Show error message in case no group
10499         names are given.
10500
10501         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
10502         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
10503         __bump_nl_timestamp.
10504         * nscd/connections (nscd_init): When host database is served open
10505         netlink socket and request notification about configuration changes.
10506         (main_loop_poll): Track netlink file descriptor and bump timestamp
10507         in case data becomes available.
10508         (main_loop_epoll): Likewise.
10509         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
10510         (database_pers_head): Add extra_data fileds.
10511         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
10512         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
10513         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
10514         Adjust caller.
10515         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
10516         in6ai data, call __free_in6ai.
10517         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
10518         Add -DHAVE_NETLINK.
10519         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
10520         interface information.  Reuse previous data if netlink timestamp
10521         is not changed.
10522         (__bump_nl_timestamp): New function.
10523         (__free_in6ai): New function.
10524
10525 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
10526
10527         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
10528         close_not_cancel_no_status here.
10529         (__check_pf): Reorganize code a bit to not call close twice if OOM.
10530
10531 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10532
10533         [BZ #13276]
10534         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
10535         return value.
10536
10537         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
10538         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
10539         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
10540
10541 2011-07-03  Andreas Jaeger  <aj@suse.de>
10542
10543         [BZ #10709]
10544         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
10545         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
10546         * math/libm-test.inc (sin_test): Add test case.
10547
10548 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10549
10550         [BZ #13337]
10551         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
10552         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10553
10554         * elf/chroot_canon.c (chroot_canon): Cleanups.
10555
10556         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
10557
10558         [BZ #13335]
10559         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
10560         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10561
10562         * string/test-strchr.c: Make usable for strchrnul testing.
10563         * string/test-strchrnul.c: New file.
10564         * string/Makefile (strop-tests): Add strchrnul.
10565
10566         * po/it.po: Update from translation team.
10567         * po/es.po: Likewise.
10568
10569 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
10570
10571         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
10572         the three constants needed as parameters.  Drop the others.
10573         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
10574         __m128i_strloadu_tolower.
10575         Create and initialize variable zero and use it in all the places
10576         where _mm_setzero_si128 was used.
10577
10578         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
10579         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
10580         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
10581         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
10582         anymore.
10583         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
10584         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
10585         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
10586         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
10587         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
10588         __mpranred, __mptan.
10589         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
10590         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
10591         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
10592         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
10593         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
10594         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
10595         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
10596         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
10597         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
10598
10599 2011-10-28  Andreas Schwab  <schwab@redhat.com>
10600
10601         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
10602         redefine if SHARED.
10603         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
10604
10605         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
10606         wide char related routines to wcsmbs subdir.
10607
10608 2011-10-27  Andreas Schwab  <schwab@redhat.com>
10609
10610         [BZ #13344]
10611         * misc/sys/cdefs.h (__THROWNL): Define.
10612         * posix/unistd.h: Use __THREADNL instead of __THREAD
10613         for memory synchronization functions.
10614
10615 2011-10-26  Roland McGrath  <roland@hack.frob.com>
10616
10617         [BZ #13349]
10618         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
10619         doesn't exist.
10620         * manual/stdio.texi (Obstack Streams): Node removed.
10621
10622 2011-10-26  Andreas Schwab  <schwab@redhat.com>
10623
10624         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
10625         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10626         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10627
10628         * math/math_private.h (math_force_eval): Allow non-addressable
10629         arguments.
10630         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
10631
10632 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10633
10634         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
10635         file is not needed.
10636
10637         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
10638         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10639         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10640         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10641         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10642         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10643         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10644         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
10645         Add AVX variants.
10646         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
10647         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
10648         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
10649         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
10650         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
10651         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
10652         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
10653         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
10654         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
10655         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
10656         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
10657         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
10658         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
10659         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
10660         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
10661         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
10662         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
10663         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
10664         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
10665
10666         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
10667         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
10668
10669         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
10670         place.  Use VEX encoding when compiling for AVX.
10671
10672 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10673
10674         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
10675         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10676
10677         * string/test-strchr.c (do_test): Don't generate NUL bytes.
10678
10679 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10680
10681         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
10682         useless if() expression.
10683         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10684         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10685         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10686         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10687         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10688         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10689         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10690         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10691         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10692         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10693         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10694         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10695         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10696         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10697         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10698         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10699         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10700         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10701         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10702
10703         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
10704
10705 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10706
10707         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
10708         condition.
10709         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10710
10711 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10712
10713         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
10714         .text section.  Avoid duplicate constants.
10715         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10716         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10717         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10718         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10719         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10720         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10721         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10722         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10723         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10724         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
10725         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10726         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10727         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10728         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10729         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10730         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10731         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10732         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10733         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10734         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10735         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10736         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10737         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10738         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
10739         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
10740         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
10741         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
10742         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
10743         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
10744         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
10745         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
10746         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
10747         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10748         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
10749         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
10750         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
10751         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
10752         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
10753         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
10754         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
10755         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
10756         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
10757         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
10758         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
10759         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
10760
10761 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
10762
10763         * sysdeps/x86_64/dla.h: Move to ...
10764         * sysdeps/x86_64/fpu/dla.h: ...here.
10765         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
10766         situations.  Use __builtin_fma only for gcc 4.6 and up.
10767
10768         * config.make.in: Add have-mfma4 entry.
10769         * configure.in: Substitute libc_cv_cc_fma4.
10770         * math/Makefile (dbl-only-routines): Add sincostab.
10771         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
10772         Use __sincostab not sincos.
10773         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
10774         name is a macro.
10775         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10776         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10777         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10778         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
10779         using __copysign.
10780         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
10781         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
10782         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
10783         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
10784         and __inv.
10785         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
10786         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
10787         __copysign.
10788         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
10789         define aliases when function name is a macro.
10790         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
10791         sysdeps/ieee754/dbl-64/sincos.tbl.
10792         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
10793         fma4-enabled routines.
10794         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
10795         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
10796         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
10797         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
10798         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
10799         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
10800         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
10801         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
10802         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
10803         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
10804         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
10805         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
10806         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
10807         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
10808         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
10809         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
10810         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
10811         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
10812         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
10813         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
10814         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
10815         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
10816         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
10817         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
10818         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
10819         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
10820         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
10821         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
10822         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
10823         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
10824
10825         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
10826         rename.
10827         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10828         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10829         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10830         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10831         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10832         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10833         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10834         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10835
10836 2011-10-24  Andreas Schwab  <schwab@redhat.com>
10837
10838         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
10839
10840 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10841
10842         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
10843
10844         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
10845         prediction.
10846         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
10847
10848         * string/strnlen.c: Don't define STRNLEN, reverse logic.
10849         Remove unused variable magic_bits.
10850         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
10851
10852         * string/strnlen.c: Define and use STRNLEN macro.
10853         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
10854         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
10855         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
10856         * wcsmbs/wcslen.c: Define and use WCSLEN.
10857         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
10858         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
10859         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
10860         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
10861         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
10862         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
10863         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10864
10865 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10866
10867         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10868         strnlen-sse2-no-bsf.
10869         Rename strlen-no-bsf to strlen-sse2-no-bsf.
10870         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
10871         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
10872         Add strnlen support.
10873         (USE_AS_STRNLEN): New macro.
10874         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
10875         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
10876         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
10877         * sysdeps/x86_64/wcslen.S: New file.
10878
10879 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
10880
10881         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10882         XMM-moves are used for copying on small sizes.
10883
10884 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10885
10886         * wcsmbs/Makefile (strop-tests): Add wcschr.
10887         * wcsmbs/test-wcschr.c: New file.
10888         * string/test-strchr.c: Update.
10889         Add wcschr support.
10890         (WIDE): New macro.
10891
10892 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10893
10894         * wcsmbs/Makefile (strop-tests): Add wcslen.
10895         * wcsmbs/test-wcslen.c: New file.
10896         * string/test-strlen.c: Update.
10897         Add wcslen support.
10898         (WIDE): New macro.
10899
10900 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10901
10902         * po/it.po: Update from translation team.
10903
10904 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10905
10906         * sysdeps/x86_64/wcscmp.S: Update.
10907         Fix wrong comparison semantics.
10908         wcscmp shall use signed comparison not unsigned.
10909         Don't use substraction to avoid overflow bug.
10910         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
10911         * wcsmbc/wcscmp.c: Likewise.
10912         * string/test-strcmp.c: Likewise.
10913         Add new tests to check cases with negative values.
10914
10915 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10916
10917         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
10918         * sysdeps/x86_64/dla.h: ...here.  New file.
10919         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
10920         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10921         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10922         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10923         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10924         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10925         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10926         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10927         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10928
10929 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
10930
10931         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
10932         __ynl_finite aliases.
10933
10934 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10935
10936         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10937
10938         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
10939         define DLA_FMA.
10940         [DLA_FMA] (EMULV): Use DLA_FMA.
10941         [DLA_FMA] (MUL12): Use EMULV.
10942         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
10943         that are not needed.
10944         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10945         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10946         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10947         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10948         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10949         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10950         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10951
10952 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
10953
10954         * math/s_nan.c: Undef __nan.
10955         * math/s_nanf.c: Undef __nanf.
10956         * math/s_nanl.c: Undef __nanl.
10957         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
10958         "math_private.h".
10959
10960 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10961
10962         * math/s_catan.c: Add branch predictions.
10963         * math/s_catanf.c: Likewise.
10964         * math/s_catanh.c: Likewise.
10965         * math/s_catanhf.c: Likewise.
10966         * math/s_catanhl.c: Likewise.
10967         * math/s_catanl.c: Likewise.
10968         * math/s_cexp.c: Likewise.
10969         * math/s_cexpf.c: Likewise.
10970         * math/s_cexpl.c: Likewise.
10971         * math/s_clog.c: Likewise.
10972         * math/s_clog10.c: Likewise.
10973         * math/s_clog10f.c: Likewise.
10974         * math/s_clog10l.c: Likewise.
10975         * math/s_clogf.c: Likewise.
10976         * math/s_clogl.c: Likewise.
10977         * math/s_csqrt.c: Likewise.
10978         * math/s_csqrtf.c: Likewise.
10979         * math/s_csqrtl.c: Likewise.
10980         * math/s_ctanf.c: Likewise.
10981         * math/s_ctanh.c: Likewise.
10982         * math/s_ctanhf.c: Likewise.
10983         * math/s_ctanhl.c: Likewise.
10984         * math/s_ctanl.c: Likewise.
10985
10986         * math/math_private.h: Define __nan, __nanf, __nanl.
10987         * math/s_cacosh.c: Include <math_private.h>.
10988         * math/s_cacoshl.c: Likewise.
10989         * math/s_casinh.c: Likewise.
10990         * math/s_casinhf.c: Likewise.
10991         * math/s_casinhl.c: Likewise.
10992         * math/s_ccos.c: Rely entire on ccosh.
10993         * math/s_ccosf.c: Rely entire on ccoshf.
10994         * math/s_ccosl.c: Rely entirely on ccoshl.
10995         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
10996         Remove tests for FE_INVALID.
10997         * math/s_ccoshf.c: Likewise.
10998         * math/s_ccoshl.c: Likewise.
10999         * math/s_csin.c: Likewise.
11000         * math/s_csinf.c: Likewise.
11001         * math/s_csinh.c Likewise.
11002         * math/s_csinhf.c: Likewise.
11003         * math/s_csinhl.c: Likewise.
11004         * math/s_csinl.c: Likewise.
11005         * math/s_ctan.c: Likewise.
11006         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
11007         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
11008         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
11009
11010 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
11011
11012         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
11013         compilation problems.
11014
11015         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
11016         __builtin_expect.
11017
11018 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
11019
11020         * sysdeps/i386/configure.in: Test for -mfma4 option.
11021         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
11022         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
11023         COMMON_CPUID_INDEX_80000001.
11024         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
11025         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
11026         use it if FMA3 is not supported.
11027         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
11028
11029         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
11030         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11031
11032 2011-10-20  Andreas Schwab  <schwab@redhat.com>
11033
11034         [BZ #12892]
11035         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
11036         it would create a cycle with a link time dependency.
11037
11038 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
11039
11040         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
11041         instruction.
11042         * string/Makefile (strop-tests): Add rawmemchr.
11043         * string/test-rawmemchr.c: New file.
11044
11045         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
11046         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
11047         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
11048         when compiling str{,n}casecmp and when AVX is available.  Hook up
11049         new optimized code in initializers.
11050
11051 2011-10-19  Andreas Schwab  <schwab@redhat.com>
11052
11053         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
11054         __feraiseexcept instead of feraiseexcept.
11055
11056 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
11057
11058         * math/math_private.h: Define defaults for libc_fetestexcept and
11059         libc_feupdateenv.
11060         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
11061         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11062         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11063         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11064         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11065         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11066         libc_fetestexcept and libc_feupdateenv.
11067
11068         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
11069         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
11070         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
11071         * sysdeps/x86_64/fpu/math_private.h: Define special version of
11072         libc_feholdexcept_setround.
11073
11074         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
11075         Add s_nearbyint-c and s_nearbyintf-c.
11076         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
11077         nearbyintf inlines.
11078         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
11079         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
11080         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
11081         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
11082
11083         * math/math_private.h: Define defaults for libc_fegetround,
11084         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
11085         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
11086         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
11087         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
11088         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
11089         standard functions.
11090         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11091         Remove comments and hacks for old compiler versions.
11092         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11093         libc_fegetround, libc_fesetround, libc_feholdexcept, and
11094         libc_feholdexceptl.
11095
11096 2011-10-18  Andreas Schwab  <schwab@redhat.com>
11097
11098         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
11099         (__feraiseexcept_renamed): Add __NTH.
11100         (feraiseexcept): Add __NTH.  Rename local variables to fix
11101         namespace violations.
11102
11103 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
11104
11105         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
11106
11107         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
11108
11109         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
11110         recently added interfaces.
11111         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11112
11113         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
11114         about macro parameter expansion.
11115
11116         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
11117         __NO_MATH_INLINES is defined.  Cleanups.
11118
11119         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
11120         and __floorf is target has SSE4.1.
11121         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
11122         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
11123         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
11124         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
11125
11126         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
11127         name.
11128         (floorf): Likewise.
11129
11130         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
11131
11132 2011-10-17  Andreas Schwab  <schwab@redhat.com>
11133
11134         * misc/sys/cdefs.h: Fix last change.
11135
11136         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
11137         database lookup.
11138
11139 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
11140
11141         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
11142
11143         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
11144         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11145         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11146         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11147         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11148         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11149         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11150         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11151         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11152         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
11153         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
11154         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
11155         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
11156         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
11157         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
11158         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
11159         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
11160         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
11161         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
11162         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
11163         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
11164         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
11165
11166         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
11167         ceil, ceilf, floor, floorf.
11168
11169         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
11170         Perform IRELATIVE relocations last.
11171
11172         * elf/do-rel.h: Add another parameter nrelative, replacing the
11173         local variable with the same name.  Change name of the function
11174         to end in Rel or Rela (uppercase).
11175         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
11176         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
11177         elf_dynamic_do_##reloc function.
11178
11179 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11180
11181         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
11182         is sufficient, at least on modern CPUs.
11183
11184         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
11185
11186         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
11187         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
11188
11189         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
11190         __expl_finite.
11191         * math/bits/math-finite.h: Add entries for exp.
11192         * math/e_expl.c: Add __*_finite alias.
11193         * sysdeps/i386/fpu/e_exp.S: Likewise.
11194         * sysdeps/i386/fpu/e_expf.S: Likewise.
11195         * sysdeps/i386/fpu/e_expl.c: Likewise.
11196         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11197         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11198         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11199         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11200         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
11201         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11202         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11203
11204         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
11205         is sufficient, at least on modern CPUs.
11206
11207         * ctype/ctype-info.c (__ctype_init): Define.
11208         * include/ctype.h (__ctype_init): Declare.
11209         (__ctype_b_loc): The variable is always initialized.
11210         (__ctype_toupper_loc): Likewise.
11211         (__ctype_tolower_loc): Likewise.
11212         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
11213         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
11214
11215 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
11216
11217         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
11218
11219         * configure.in: Also look in $cxxmachine/include for C++ system
11220         headers.
11221
11222 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11223
11224         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
11225         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
11226         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
11227         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
11228         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
11229         (USE_AS_WMEMCMP): New macro.
11230         Fixing indents.
11231         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
11232         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
11233         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
11234         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
11235         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11236         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
11237         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
11238         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
11239         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
11240         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
11241         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
11242         (USE_AS_WMEMCMP): New macro.
11243         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
11244         * sysdeps/string/test-memcmp.c: Update.
11245         Fix simple_wmemcmp.
11246         Add new tests.
11247         * wcsmbs/wmemcmp.c: Update.
11248         (WMEMCMP): New macro.
11249         Fix overflow bug.
11250
11251 2011-10-12  Andreas Jaeger  <aj@suse.de>
11252
11253         [BZ #13268]
11254         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
11255
11256 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11257
11258         * libio/iofwide.c (do_length): Avoid warning.
11259
11260         * ctype/ctype.h (__isctype_f): Add missing __THROW.
11261
11262 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
11263
11264         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
11265
11266         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
11267         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
11268         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
11269         * sysdeps/i386/i686/fpu/e_log.S: New file.
11270         * sysdeps/i386/i686/fpu/e_logf.S: New file.
11271         * sysdeps/i386/i686/fpu/e_logl.S: New file.
11272
11273         * ctype/ctype.h: Add support for inlined isXXX functions when
11274         compiling C++ code.
11275
11276 2011-10-14  Andreas Schwab  <schwab@redhat.com>
11277
11278         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11279
11280         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
11281
11282 2011-10-13  Roland McGrath  <roland@hack.frob.com>
11283
11284         [BZ #13291]
11285         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
11286
11287 2011-10-13  Andreas Schwab  <schwab@redhat.com>
11288
11289         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
11290         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
11291         feraiseexcept.
11292
11293         * sysdeps/x86_64/memrchr.S: Check for zero size.
11294
11295         * string/stratcliff.c: Add memrchr tests.
11296
11297 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11298
11299         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11300         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
11301         rawmemchr-sse2 rawmemchr-sse2-bsf.
11302         * sysdeps/i386/i686/multiarch/memchr.S: New file.
11303         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
11304         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
11305         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
11306         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
11307         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
11308         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
11309         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
11310         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
11311         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
11312         * string/memrchr.c (MEMRCHR): New macro.
11313
11314 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
11315
11316         Add integration with gcc's -ffinite-math-only and optimize wrapper
11317         functions in libm.
11318         * Versions.def: Define GLIBC_2.15 version for libm.
11319         * math/Makefile (headers): Add bits/math-finite.h.
11320         * math/bits/math-finite.h: New file.
11321         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
11322         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
11323         * math/e_acoshl.c: Add __*_finite alias.
11324         * math/e_acosl.c: Likewise.
11325         * math/e_asinl.c: Likewise.
11326         * math/e_atan2l.c: Likewise.
11327         * math/e_atanhl.c: Likewise.
11328         * math/e_coshl.c: Likewise.
11329         * math/e_exp10.c: Likewise.
11330         * math/e_exp10f.c: Likewise.
11331         * math/e_exp10l.c: Likewise.
11332         * math/e_exp2l.c: Likewise.
11333         * math/e_fmodl.c: Likewise.
11334         * math/e_gammal_r.c: Likewise.
11335         * math/e_hypotl.c: Likewise.
11336         * math/e_j0l.c: Likewise.
11337         * math/e_j1l.c: Likewise.
11338         * math/e_jnl.c: Likewise.
11339         * math/e_lgammal_r.c: Likewise.
11340         * math/e_log10l.c: Likewise.
11341         * math/e_log2l.c: Likewise.
11342         * math/e_logl.c: Likewise.
11343         * math/e_powl.c: Likewise.
11344         * math/e_sinhl.c: Likewise.
11345         * math/e_sqrtl.c: Likewise.
11346         * math/e_scalb.c: Completely rewritten and optimized.
11347         * math/e_scalbf.c: Likewise.
11348         * math/e_scalbl.c: Likewise.
11349         * math/w_acos.c: Likewise.
11350         * math/w_acosf.c: Likewise.
11351         * math/w_acosl.c: Likewise.
11352         * math/w_acosh.c: Likewise.
11353         * math/w_acoshf.c: Likewise.
11354         * math/w_acoshl.c: Likewise.
11355         * math/w_asin.c: Likewise.
11356         * math/w_asinf.c: Likewise.
11357         * math/w_asinl.c: Likewise.
11358         * math/w_atan2.c: Likewise.
11359         * math/w_atan2f.c: Likewise.
11360         * math/w_atan2l.c: Likewise.
11361         * math/w_atanh.c: Likewise.
11362         * math/w_atanhf.c: Likewise.
11363         * math/w_atanhl.c: Likewise.
11364         * math/w_exp10.c: Likewise.
11365         * math/w_exp10f.c: Likewise.
11366         * math/w_exp10l.c: Likewise.
11367         * math/w_fmod.c: Likewise.
11368         * math/w_fmodf.c: Likewise.
11369         * math/w_fmodl.c: Likewise.
11370         * math/w_j0.c: Likewise.
11371         * math/w_j0f.c: Likewise.
11372         * math/w_j0l.c: Likewise.
11373         * math/w_j1.c: Likewise.
11374         * math/w_j1f.c: Likewise.
11375         * math/w_j1l.c: Likewise.
11376         * math/w_jn.c: Likewise.
11377         * math/w_jnf.c: Likewise.
11378         * math/w_log.c: Likewise.
11379         * math/w_logf.c: Likewise.
11380         * math/w_logl.c: Likewise.
11381         * math/w_log10.c: Likewise.
11382         * math/w_log10f.c: Likewise.
11383         * math/w_log10l.c: Likewise.
11384         * math/w_log2.c: Likewise.
11385         * math/w_log2f.c: Likewise.
11386         * math/w_log2l.c: Likewise.
11387         * math/w_pow.c: Likewise.
11388         * math/w_powf.c: Likewise.
11389         * math/w_powl.c: Likewise.
11390         * math/w_remainder.c: Likewise.
11391         * math/w_remainderf.c: Likewise.
11392         * math/w_remainderl.c: Likewise.
11393         * math/w_scalb.c: Likewise.
11394         * math/w_scalbf.c: Likewise.
11395         * math/w_scalbl.c: Likewise.
11396         * math/w_sqrt.c: Likewise.
11397         * math/w_sqrtf.c: Likewise.
11398         * math/w_sqrtl.c: Likewise.
11399         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
11400         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
11401         used.
11402         * math/math_private.h: Declare __kernel_standard_f.
11403         * math/w_cosh.c: Remove cruft and optimize a bit.
11404         * math/w_coshf.c: Likewise.
11405         * math/w_coshl.c: Likewise.
11406         * math/w_exp2.c: Likewise.
11407         * math/w_exp2f.c: Likewise.
11408         * math/w_exp2l.c: Likewise.
11409         * math/w_hypot.c: Likewise.
11410         * math/w_hypotf.c: Likewise.
11411         * math/w_hypotl.c: Likewise.
11412         * math/w_lgamma.c: Likewise.
11413         * math/w_lgamma_r.c: Likewise.
11414         * math/w_lgammaf.c: Likewise.
11415         * math/w_lgammaf_r.c: Likewise.
11416         * math/w_lgammal.c: Likewise.
11417         * math/w_lgammal_r.c: Likewise.
11418         * math/w_sinh.c: Likewise.
11419         * math/w_sinhf.c: Likewise.
11420         * math/w_sinhl.c: Likewise.
11421         * math/w_tgamma.c: Likewise.
11422         * math/w_tgammaf.c: Likewise.
11423         * math/w_tgammal.c: Likewise.
11424         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11425         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11426         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
11427         Minor optimizations.  Pretty printing.  Remove cruft.
11428         * sysdeps/i386/fpu/e_acosf.S: Likewise.
11429         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11430         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11431         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11432         * sysdeps/i386/fpu/e_acosl.c: Likewise.
11433         * sysdeps/i386/fpu/e_asin.S: Likewise.
11434         * sysdeps/i386/fpu/e_asinf.S: Likewise.
11435         * sysdeps/i386/fpu/e_atan2.S: Likewise.
11436         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
11437         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
11438         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11439         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11440         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11441         * sysdeps/i386/fpu/e_exp10.S: Likewise.
11442         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
11443         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
11444         * sysdeps/i386/fpu/e_exp2.S: Likewise.
11445         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
11446         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
11447         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11448         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
11449         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11450         * sysdeps/i386/fpu/e_hypot.S: Likewise.
11451         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
11452         * sysdeps/i386/fpu/e_log.S: Likewise.
11453         * sysdeps/i386/fpu/e_log10.S: Likewise.
11454         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11455         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11456         * sysdeps/i386/fpu/e_log2.S: Likewise.
11457         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11458         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11459         * sysdeps/i386/fpu/e_logf.S: Likewise.
11460         * sysdeps/i386/fpu/e_logl.S: Likewise.
11461         * sysdeps/i386/fpu/e_pow.S: Likewise.
11462         * sysdeps/i386/fpu/e_powf.S: Likewise.
11463         * sysdeps/i386/fpu/e_powl.S: Likewise.
11464         * sysdeps/i386/fpu/e_remainder.S: Likewise.
11465         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
11466         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
11467         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11468         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11469         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11470         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
11471         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
11472         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
11473         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11474         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11475         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11476         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11477         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11478         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11479         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11480         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11481         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11482         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11483         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11484         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11485         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11486         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11487         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11488         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11489         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11490         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11491         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11492         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11493         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11494         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11495         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11496         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11497         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11498         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11499         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11500         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11501         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11502         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11503         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11504         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11505         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11506         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11507         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11508         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11509         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11510         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11511         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11512         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11513         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11514         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11515         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11553         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11556         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11558         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11559         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11561         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11564         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11565         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11566         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11567         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11568         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11569         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11570         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
11571         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
11572         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
11573         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
11574         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
11575         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
11576         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
11577         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11578         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11579         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11580         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11581         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
11582         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11583         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
11584         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
11585         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
11586         (__isnanf): Likewise.
11587         (__isinf_ns): Likewise.
11588         (__isinf_nsf): Likewise.
11589         (__finite): Likewise.
11590         (__finitef): Likewise.
11591         (__ieee754_sqrt): Define as macro.
11592         (__ieee754_sqrtf): Define as macro.
11593         (__ieee754_sqrtl): Define as macro.
11594         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
11595         inlined copy.
11596         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
11597         __FINITE_MATH_ONLY__ consistent.
11598         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
11599
11600 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
11601
11602         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
11603         of rawmemchr.
11604
11605         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
11606
11607 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
11608
11609         * po/ja.po: Update from translation team.
11610
11611 2011-10-08  Roland McGrath  <roland@hack.frob.com>
11612
11613         * locale/programs/locarchive.c (prepare_address_space): New function.
11614         (create_archive, enlarge_archive, open_archive): Use it.
11615
11616         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
11617         inside [SHARED], where it is used.
11618
11619         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
11620
11621         * nss/getent.c (netgroup_keys): Remove unused variable.
11622         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11623
11624 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
11625
11626         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
11627         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
11628         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
11629         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
11630         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
11631         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
11632         * math/Makefile (libm-calls): Add s_isinf_ns.
11633         * math/divtc3.c: Use __isinf_nsl instead of isinf.
11634         * math/multc3.c: Likewise.
11635         * math/s_casin.c: Likewise.
11636         * math/s_casinf.c: Likewise.
11637         * math/s_casinl.c: Likewise.
11638         * math/s_ccos.c: Likewise.
11639         * math/s_ccosf.c: Likewise.
11640         * math/s_ccosl.c: Likewise.
11641         * math/s_ctan.c: Likewise.
11642         * math/s_ctanf.c: Likewise.
11643         * math/s_ctanh.c: Likewise.
11644         * math/s_ctanhf.c: Likewise.
11645         * math/s_ctanhl.c: Likewise.
11646         * math/s_ctanl.c: Likewise.
11647         * math/w_fmod.c: Likewise.
11648         * math/w_fmodf.c: Likewise.
11649         * math/w_fmodl.c: Likewise.
11650         * math/w_remainder.c: Likewise.
11651         * math/w_remainderf.c: Likewise.
11652         * math/w_remainderl.c: Likewise.
11653         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
11654         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
11655         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
11656         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
11657         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
11658         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
11659         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
11660         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
11661
11662         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
11663         of the number.
11664         * stdio-common/printf_fphex.c: Likewise.
11665         * stdio-common/printf_size.c: Likewise.
11666
11667         * math/e_exp10.c: Include math_private.h using <...> not "...".
11668         * math/e_exp10f.c: Likewise.
11669         * math/e_exp10l.c: Likewise.
11670         * math/e_exp2l.c: Likewise.
11671         * math/e_j0l.c: Likewise.
11672         * math/e_j1l.c: Likewise.
11673         * math/e_jnl.c: Likewise.
11674         * math/e_lgammal_r.c: Likewise.
11675         * math/e_rem_pio2l.c: Likewise.
11676         * math/e_scalb.c: Likewise.
11677         * math/e_scalbf.c: Likewise.
11678         * math/e_scalbl.c: Likewise.
11679         * math/k_cosl.c: Likewise.
11680         * math/k_sinl.c: Likewise.
11681         * math/k_tanl.c: Likewise.
11682         * math/s_cacoshf.c: Likewise.
11683         * math/s_catan.c: Likewise.
11684         * math/s_catanf.c: Likewise.
11685         * math/s_catanh.c: Likewise.
11686         * math/s_catanhf.c: Likewise.
11687         * math/s_catanhl.c: Likewise.
11688         * math/s_catanl.c: Likewise.
11689         * math/s_ccosh.c: Likewise.
11690         * math/s_ccoshf.c: Likewise.
11691         * math/s_ccoshl.c: Likewise.
11692         * math/s_cexp.c: Likewise.
11693         * math/s_cexpf.c: Likewise.
11694         * math/s_cexpl.c: Likewise.
11695         * math/s_clog.c: Likewise.
11696         * math/s_clog10.c: Likewise.
11697         * math/s_clog10f.c: Likewise.
11698         * math/s_clog10l.c: Likewise.
11699         * math/s_clogf.c: Likewise.
11700         * math/s_clogl.c: Likewise.
11701         * math/s_csin.c: Likewise.
11702         * math/s_csinf.c: Likewise.
11703         * math/s_csinh.c: Likewise.
11704         * math/s_csinhf.c: Likewise.
11705         * math/s_csinhl.c: Likewise.
11706         * math/s_csinl.c: Likewise.
11707         * math/s_csqrt.c: Likewise.
11708         * math/s_csqrtf.c: Likewise.
11709         * math/s_csqrtl.c: Likewise.
11710         * math/s_ctan.c: Likewise.
11711         * math/s_ctanf.c: Likewise.
11712         * math/s_ctanh.c: Likewise.
11713         * math/s_ctanhf.c: Likewise.
11714         * math/s_ctanhl.c: Likewise.
11715         * math/s_ctanl.c: Likewise.
11716         * math/s_ldexp.c: Likewise.
11717         * math/s_ldexpf.c: Likewise.
11718         * math/s_ldexpl.c: Likewise.
11719         * math/s_significand.c: Likewise.
11720         * math/s_significandf.c: Likewise.
11721         * math/s_significandl.c: Likewise.
11722         * math/w_acos.c: Likewise.
11723         * math/w_acosf.c: Likewise.
11724         * math/w_acosh.c: Likewise.
11725         * math/w_acoshf.c: Likewise.
11726         * math/w_acoshl.c: Likewise.
11727         * math/w_acosl.c: Likewise.
11728         * math/w_asin.c: Likewise.
11729         * math/w_asinf.c: Likewise.
11730         * math/w_asinl.c: Likewise.
11731         * math/w_atan2.c: Likewise.
11732         * math/w_atan2f.c: Likewise.
11733         * math/w_atan2l.c: Likewise.
11734         * math/w_atanh.c: Likewise.
11735         * math/w_atanhf.c: Likewise.
11736         * math/w_atanhl.c: Likewise.
11737         * math/w_cosh.c: Likewise.
11738         * math/w_coshf.c: Likewise.
11739         * math/w_coshl.c: Likewise.
11740         * math/w_dremf.c: Likewise.
11741         * math/w_exp10.c: Likewise.
11742         * math/w_exp10f.c: Likewise.
11743         * math/w_exp10l.c: Likewise.
11744         * math/w_exp2.c: Likewise.
11745         * math/w_exp2f.c: Likewise.
11746         * math/w_fmod.c: Likewise.
11747         * math/w_fmodf.c: Likewise.
11748         * math/w_fmodl.c: Likewise.
11749         * math/w_hypot.c: Likewise.
11750         * math/w_hypotf.c: Likewise.
11751         * math/w_hypotl.c: Likewise.
11752         * math/w_j0.c: Likewise.
11753         * math/w_j0f.c: Likewise.
11754         * math/w_j0l.c: Likewise.
11755         * math/w_j1.c: Likewise.
11756         * math/w_j1f.c: Likewise.
11757         * math/w_j1l.c: Likewise.
11758         * math/w_jn.c: Likewise.
11759         * math/w_jnf.c: Likewise.
11760         * math/w_jnl.c: Likewise.
11761         * math/w_lgamma.c: Likewise.
11762         * math/w_lgamma_r.c: Likewise.
11763         * math/w_lgammaf.c: Likewise.
11764         * math/w_lgammaf_r.c: Likewise.
11765         * math/w_lgammal.c: Likewise.
11766         * math/w_lgammal_r.c: Likewise.
11767         * math/w_log.c: Likewise.
11768         * math/w_log10.c: Likewise.
11769         * math/w_log10f.c: Likewise.
11770         * math/w_log10l.c: Likewise.
11771         * math/w_log2.c: Likewise.
11772         * math/w_log2f.c: Likewise.
11773         * math/w_log2l.c: Likewise.
11774         * math/w_logf.c: Likewise.
11775         * math/w_logl.c: Likewise.
11776         * math/w_pow.c: Likewise.
11777         * math/w_powf.c: Likewise.
11778         * math/w_powl.c: Likewise.
11779         * math/w_remainder.c: Likewise.
11780         * math/w_remainderf.c: Likewise.
11781         * math/w_remainderl.c: Likewise.
11782         * math/w_scalb.c: Likewise.
11783         * math/w_scalbf.c: Likewise.
11784         * math/w_scalbl.c: Likewise.
11785         * math/w_sinh.c: Likewise.
11786         * math/w_sinhf.c: Likewise.
11787         * math/w_sinhl.c: Likewise.
11788         * math/w_sqrt.c: Likewise.
11789         * math/w_sqrtf.c: Likewise.
11790         * math/w_sqrtl.c: Likewise.
11791         * math/w_tgamma.c: Likewise.
11792         * math/w_tgammaf.c: Likewise.
11793         * math/w_tgammal.c: Likewise.
11794
11795         * po/ja.po: Update from translation team.
11796
11797 2011-09-29  Andreas Jaeger  <aj@suse.de>
11798
11799         [BZ #13179]
11800         * sunrpc/netname.c (netname2host): Fix logic.
11801
11802         [BZ #6779]
11803         [BZ #6783]
11804         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
11805         correctly.
11806         * math/w_remainder.c (__remainder): Likewise.
11807         * math/w_remainderf.c (__remainderf): Likewise.
11808         * math/libm-test.inc (remainder_test): Add test cases.
11809
11810 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11811
11812         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
11813         sdiv_qrnnd.
11814
11815 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11816
11817         * string/test-memcmp.c: Avoid unncessary #defines.
11818         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11819
11820 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11821
11822         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
11823         Use new sse2 version for core i3 - i7 as it's faster
11824         than sse42 version.
11825         (bit_Prefer_PMINUB_for_stringop): New.
11826         * sysdeps/x86_64/rawmemchr.S: Update.
11827         Replace with faster SSE2 version.
11828         * sysdeps/x86_64/memrchr.S: New file.
11829         * sysdeps/x86_64/memchr.S: Update.
11830         Replace with faster SSE2 version.
11831
11832 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
11833
11834         * elf/dl-load.c (lose): Add cast to avoid warning.
11835
11836 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11837
11838         * po/ca.po: Update from translation team.
11839
11840         * inet/getnetgrent_r.c: Hook up nscd.
11841         * nscd/Makefile (routines): Add nscd_netgroup.
11842         (nscd-modules): Add netgroupcache.
11843         (CFLAGS-netgroupcache.c): Define.
11844         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
11845         (cache_search): Add const to second parameter.
11846         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
11847         INNETGR.
11848         (dbs): Add netgrdb entry.
11849         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
11850         (verify_persistent_db): Handle netgrdb.
11851         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
11852         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
11853         GETFDNETGR.
11854         (netgroup_response_header): Define.
11855         (innetgroup_response_header): Define.
11856         (datahead): Add netgroup_response_header and innetgroup_response_header
11857         elements.
11858         * nscd/nscd.conf: Add entries for netgroup cache.
11859         * nscd/nscd.h (dbtype): Add netgrdb.
11860         (_PATH_NSCD_NETGROUP_DB): Define.
11861         (netgroup_iov_disabled): Declare.
11862         (xmalloc, xcalloc, xrealloc): Move declarations here.
11863         (cache_search): Adjust prototype.
11864         Add netgroup-related prototypes.
11865         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
11866         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
11867         (__nscd_innetgr): Declare.
11868         * nscd/selinux.c (perms): Use access_vector_t as element type and
11869         add netgroup-related initializers.
11870         * nscd/netgroupcache.c: New file.
11871         * nscd/nscd_netgroup.c: New file.
11872         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
11873         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
11874         For four parameters use innetgr.
11875         * nss/nss_files/files-init.c: Add definition and callback for netgr.
11876         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
11877         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
11878         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
11879
11880         * nscd/connections.c (register_traced_file): Don't register file
11881         for disabled databases.
11882
11883 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
11884
11885         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
11886
11887         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
11888         from tree and freeing node.
11889
11890 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
11891
11892         * nss/nsswitch.c (__nss_database_lookup): Handle
11893         nss_parse_service_list out of memory case.
11894
11895 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
11896
11897         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
11898         out of memory case.
11899
11900 2011-10-04  Andreas Schwab  <schwab@redhat.com>
11901
11902         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
11903         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
11904         pass it down.
11905         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
11906         elf_machine_rela, elf_machine_lazy_rel.
11907         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
11908         (ELF_DYNAMIC_DO_REL): Likewise.
11909         (ELF_DYNAMIC_DO_RELA): Likewise.
11910         (ELF_DYNAMIC_RELOCATE): Likewise.
11911         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
11912         to ELF_DYNAMIC_DO_REL.
11913         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
11914         (dl_main): In trace mode always set __RTLD_NOIFUNC.
11915         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
11916         elf_machine_rela.
11917         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
11918         skip_ifunc, don't call ifunc function if non-zero.
11919         (elf_machine_rela): Likewise.
11920         (elf_machine_lazy_rel): Likewise.
11921         (elf_machine_lazy_rela): Likewise.
11922         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
11923         (elf_machine_lazy_rel): Likewise.
11924         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
11925         Likewise.
11926         (elf_machine_lazy_rel): Likewise.
11927         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11928         Likewise.
11929         (elf_machine_lazy_rel): Likewise.
11930         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
11931         (elf_machine_lazy_rel): Likewise.
11932         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
11933         (elf_machine_lazy_rel): Likewise.
11934         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11935         (elf_machine_lazy_rel): Likewise.
11936         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
11937         (elf_machine_lazy_rel): Likewise.
11938         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
11939         (elf_machine_lazy_rel): Likewise.
11940         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
11941         (elf_machine_lazy_rel): Likewise.
11942
11943 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
11944
11945         * nss/nss_files/files-init.c (_nss_files_init): Use static
11946         initialization for all the *_traced_file variables.
11947
11948 2011-09-28  Andreas Schwab  <schwab@redhat.com>
11949
11950         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11951
11952 2011-09-27  Roland McGrath  <roland@hack.frob.com>
11953
11954         [BZ #13226]
11955         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
11956
11957 2011-09-27  Andreas Schwab  <schwab@redhat.com>
11958
11959         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11960         Reread the line before reparsing it.
11961
11962 2011-09-26  Andreas Schwab  <schwab@redhat.com>
11963
11964         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
11965
11966 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
11967             Maxim Kuvyrkov  <maxim@codesourcery.com>
11968             Joseph Myers  <joseph@codesourcery.com>
11969
11970         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
11971         if needed for __stack_chk_guard.
11972
11973 2011-09-19  Roland McGrath  <roland@hack.frob.com>
11974
11975         * sysdeps/posix/spawni.c (script_execute): Always define it.
11976         It will be optimized away if unused.
11977         (maybe_script_execute): New function.
11978         (__spawni): Call it.
11979
11980         * Makerules: Don't include tls.make.
11981         (config-tls): Always set to thread.
11982         * tls.make.c: File removed.
11983
11984 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
11985
11986         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
11987         * config.make.in (CPPFLAGS-config): New substituted variable.
11988
11989 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11990
11991         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
11992
11993         [BZ #13192]
11994         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
11995         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
11996
11997 2011-09-15  Roland McGrath  <roland@hack.frob.com>
11998
11999         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
12000         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
12001         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12002         (CALL_FAIL): Likewise.
12003         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
12004         (CALL_FAIL): Macro removed.
12005         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
12006
12007 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
12008
12009         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
12010         for __FINITE_MATH_ONLY__ == 1.
12011
12012 2011-09-15  Andreas Schwab  <schwab@redhat.com>
12013
12014         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
12015         __ieee754_sqrt instead of sqrt.
12016         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
12017         __ieee754_sqrtf instead of sqrtf.
12018         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
12019         __floorf instead of floorf.
12020         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
12021         __floorf, __truncf instead of floorf, truncf.
12022
12023 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
12024
12025         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
12026
12027         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
12028         __extern_always_inline.
12029         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
12030         32-bit.
12031
12032 2011-09-14  Andreas Schwab  <schwab@redhat.com>
12033
12034         * elf/rtld.c (dl_main): Also relocate in dependency order when
12035         doing symbol dependency testing.
12036
12037 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
12038
12039         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12040         Always define `refsym'.
12041
12042 2011-09-13  Andreas Schwab  <schwab@redhat.com>
12043
12044         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
12045         (__FD_ELT): Renamed from __FDELT.
12046         * misc/bits/select2.h (__FD_ELT): Likewise.
12047         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
12048         __FD_MASK instead of __FDELT, __FDMASK.
12049         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12050         Likewise.
12051         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12052         Likewise.
12053
12054         * elf/Makefile (gen-ldd): Fix pattern.
12055
12056         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
12057         (init_tls): Likewise.
12058
12059 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
12060
12061         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
12062
12063 2011-09-12  Andreas Schwab  <schwab@redhat.com>
12064
12065         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
12066         `struct cmsghdr *' instead of `void *'.
12067         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
12068         Likewise.
12069
12070 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
12071
12072         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
12073         if non-absolute.
12074         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
12075         ldd_rewrite_script.
12076
12077 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
12078
12079         * configure.in: Remove --with-tls option.
12080         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
12081         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
12082         out in case it is missing.
12083         * sysdeps/ia64/elf/configure.in: Likewise.
12084         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
12085         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
12086         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
12087         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
12088         * sysdeps/sh/elf/configure.in: Likewise.
12089         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
12090         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12091         * sysdeps/x86_64/elf/configure.in: Likewise.
12092         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
12093         * sysdeps/mach/hurd/tls.h: Likewise.
12094
12095         [BZ #13067]
12096         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
12097
12098         [BZ #13090]
12099         * configure.in: Fix use of AC_INIT.
12100
12101         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
12102
12103 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
12104
12105         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
12106         __set_errno.
12107         * malloc/hooks.c: Likewise.
12108
12109         [BZ #11929]
12110         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
12111         variables statically.
12112         (narenas): Initialize.
12113         (list_lock): Initialize.
12114         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
12115         initializtion of main_arena and list_lock.  Small cleanups.
12116         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
12117         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
12118         Add initializers to main_arena and mp_.
12119         (malloc_state): Remove pagesize member.  Change all users to use
12120         GLRO(dl_pagesize).
12121
12122         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
12123         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
12124         is always initialized.
12125
12126         * malloc/malloc.c: Removed unused configurations and dead code.
12127         * malloc/arena.c: Likewise.
12128         * malloc/hooks.c: Likewise.
12129         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
12130
12131         * include/tls.h: Removed.  USE___THREAD must always be defined.
12132         * bits/libc-tsd.h: Don't handle !USE___THREAD.
12133         * elf/dl-libc.c: Likewise.
12134         * elf/dl-tsd.c: Likewise.
12135         * include/errno.h: Likewise.
12136         * include/netdb.h: Likewise.
12137         * include/resolv.h: Likewise.
12138         * inet/herrno-loc.c: Likewise.
12139         * inet/herrno.c: Likewise.
12140         * malloc/arena.c: Likewise.
12141         * malloc/hooks.c: Likewise.
12142         * malloc/malloc.c: Likewise.
12143         * resolv/res-state.c: Likewise.
12144         * resolv/res_libc.c: Likewise.
12145         * sysdeps/i386/dl-machine.h: Likewise.
12146         * sysdeps/ia64/dl-machine.h: Likewise.
12147         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12148         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12149         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12150         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12151         * sysdeps/sh/dl-machine.h: Likewise.
12152         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12153         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12154         * sysdeps/unix/i386/sysdep.S: Likewise.
12155         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12156         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12157         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12158         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12159         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12160         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12161         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
12162         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12163         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12164         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12165         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12166         * sysdeps/x86_64/dl-machine.h: Likewise.
12167         * tls.make.c: Likewise.
12168
12169         * configure.in: Remove --with-__thread option.  Make tests for
12170         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
12171         tls_model attribute fail if no support is available.  Remove
12172         USE_IN_LIBIO.
12173         * Makeconfig: Adjust for dropped configure option.  All features are
12174         now mandatory.
12175         * Makerules: Likewise.
12176         * Versions.def: Likewise.
12177         * argp/argp-fmtstream.c: Likewise.
12178         * argp/argp-fmtstream.h: Likewise.
12179         * argp/argp-help.c: Likewise.
12180         * assert/assert.c: Likewise.
12181         * config.h.in: Likewise.
12182         * config.make.in: Likewise.
12183         * configure: Likewise.
12184         * configure.in: Likewise.
12185         * csu/Versions: Likewise.
12186         * csu/init.c: Likewise.
12187         * elf/tst-audit2.c: Likewise.
12188         * elf/tst-tls10.c: Likewise.
12189         * elf/tst-tls10.h: Likewise.
12190         * elf/tst-tls11.c: Likewise.
12191         * elf/tst-tls12.c: Likewise.
12192         * elf/tst-tls14.c: Likewise.
12193         * elf/tst-tlsmod11.c: Likewise.
12194         * elf/tst-tlsmod12.c: Likewise.
12195         * elf/tst-tlsmod13.c: Likewise.
12196         * elf/tst-tlsmod13a.c: Likewise.
12197         * elf/tst-tlsmod14a.c: Likewise.
12198         * elf/tst-tlsmod15b.c: Likewise.
12199         * elf/tst-tlsmod16a.c: Likewise.
12200         * elf/tst-tlsmod16b.c: Likewise.
12201         * elf/tst-tlsmod7.c: Likewise.
12202         * elf/tst-tlsmod8.c: Likewise.
12203         * elf/tst-tlsmod9.c: Likewise.
12204         * gmon/gmon.c: Likewise.
12205         * grp/fgetgrent_r.c: Likewise.
12206         * grp/putgrent.c: Likewise.
12207         * hurd/fopenport.c: Likewise.
12208         * include/libc-symbols.h: Likewise.
12209         * include/tls.h: Likewise.
12210         * intl/gettextP.h: Likewise.
12211         * intl/loadinfo.h: Likewise.
12212         * locale/global-locale.c: Likewise.
12213         * locale/localeinfo.h: Likewise.
12214         * mach/devstream.c: Likewise.
12215         * malloc/arena.c: Likewise.
12216         * malloc/set-freeres.c: Likewise.
12217         * misc/err.c: Likewise.
12218         * misc/getttyent.c: Likewise.
12219         * misc/mntent_r.c: Likewise.
12220         * posix/getopt.c: Likewise.
12221         * posix/wordexp.c: Likewise.
12222         * pwd/fgetpwent_r.c: Likewise.
12223         * resolv/Versions: Likewise.
12224         * resolv/res_hconf.c: Likewise.
12225         * shadow/fgetspent_r.c: Likewise.
12226         * shadow/putspent.c: Likewise.
12227         * stdio-common/printf_fphex.c: Likewise.
12228         * stdio-common/tmpfile.c: Likewise.
12229         * stdlib/abort.c: Likewise.
12230         * stdlib/fmtmsg.c: Likewise.
12231         * sunrpc/auth_unix.c: Likewise.
12232         * sunrpc/clnt_perr.c: Likewise.
12233         * sunrpc/clnt_tcp.c: Likewise.
12234         * sunrpc/clnt_udp.c: Likewise.
12235         * sunrpc/clnt_unix.c: Likewise.
12236         * sunrpc/openchild.c: Likewise.
12237         * sunrpc/svc_simple.c: Likewise.
12238         * sunrpc/svc_tcp.c: Likewise.
12239         * sunrpc/svc_udp.c: Likewise.
12240         * sunrpc/svc_unix.c: Likewise.
12241         * sunrpc/xdr.c: Likewise.
12242         * sunrpc/xdr_array.c: Likewise.
12243         * sunrpc/xdr_rec.c: Likewise.
12244         * sunrpc/xdr_ref.c: Likewise.
12245         * sunrpc/xdr_stdio.c: Likewise.
12246
12247 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12248
12249         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12250
12251 2011-07-03  Andreas Jaeger  <aj@suse.de>
12252
12253         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
12254         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
12255         regenerate with gen-libm-tests.pl.
12256
12257 2010-05-12  Petr Baudis  <pasky@suse.cz>
12258
12259         [BZ #11589]
12260         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
12261         around j0() zero points by switching to j1().
12262         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12263         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12266
12267 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12268
12269         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
12270         instead of 0.
12271         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
12272         instead of 0.                              .
12273         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12274         Patch in part by Pavel Roskin <proski@gnu.org>.
12275
12276         [BZ #13138]
12277         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
12278         realloc.
12279         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
12280         Free memory block if necessary.
12281
12282         [BZ #12847]
12283         * libio/genops.c (INTDEF): For string streams the _lock pointer can
12284         be NULL.  Don't lock in this case.
12285
12286 2011-09-09  Roland McGrath  <roland@hack.frob.com>
12287
12288         * elf/elf.h (ELFOSABI_GNU): New macro.
12289         (ELFOSABI_LINUX): Define to that.
12290
12291 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
12292
12293         * string/strncat.c (strncat): Undef the symbol in case it has been
12294         defined in bits/string.h.
12295
12296 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12297
12298         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
12299
12300         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
12301         link map.
12302
12303 2011-08-17  Andreas Jaeger  <aj@suse.de>
12304
12305         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
12306
12307 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12308             Ian Lance Taylor  <iant@google.com>
12309
12310         * math/libm-test.inc (lround_test): New testcase.
12311         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
12312
12313 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
12314
12315         * Makefile: Remove support for automatic cvs check-ins.
12316         * Makerules: Likewise.
12317         * config.make.in: Likewise.
12318         * configure.in: Likewise.
12319         * intl/Makefile: Likewise.
12320         * locale/Makefile: Likewise.
12321         * po/Makefile: Likewise.
12322         * posix/Makefile: Likewise.
12323         * sysdeps/gnu/Makefile: Likewise.
12324         * sysdeps/mach/hurd/Makefile: Likewise.
12325         * sysdeps/sparc/sparc32/Makefile: Likewise.
12326
12327         [BZ #13118]
12328         * posix/Makefile (bug-regex32-ENV): Define.
12329         Patch by John Stanley <jpsinthemix@verizon.net>.
12330
12331         * misc/Makefile (headers): Add bits/select2.h.
12332         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
12333         * misc/bits/select2.h: New file.
12334         * include/bits/select2.h: New file.
12335         * debug/Makefile (routines): Add fdelt_chk.
12336         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
12337         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
12338         FD_ISSET.
12339         * debug/fdelt_chk.c: New file.
12340
12341         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
12342         * wcsmbs/test-wmemcmp.c: Likewise.
12343         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
12344         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
12345
12346 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12347
12348         * string/Makefile (strop-tests): Add memcmp.
12349         * string/test-wmemcmp.c: New file.
12350         * string/test-memcmp.c: Add wmemcmp support.
12351
12352 2011-09-08  Roland McGrath  <roland@hack.frob.com>
12353
12354         [BZ #13153]
12355         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
12356         2011-07-19 change.
12357
12358         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
12359         garbage value in a __mach_port_mod_refs call in the cases of the
12360         task-self and thread-self ports.
12361
12362 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12363
12364         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
12365
12366 2011-09-08  Andreas Schwab  <schwab@redhat.com>
12367
12368         * elf/dl-load.c (lose): Check for non-null L.
12369
12370 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12371
12372         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
12373
12374         * elf/dl-libc.c (dlerror_run): Pass back error code from
12375         dl_catch_error.
12376
12377         [BZ #13123]
12378         * elf/dl-load.c (lose): Free l_origin if it is valid.
12379
12380         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
12381         names.
12382         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
12383         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12384         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12385         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12386         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
12387         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
12388
12389 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12390
12391         * sysdeps/powerpc/fpu/e_hypot.c: New file.
12392         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
12393         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
12394         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
12395         * sysdeps/powerpc/fpu/k_cosf.c: New file.
12396         * sysdeps/powerpc/fpu/k_sinf.c: New file.
12397         * sysdeps/powerpc/fpu/s_cosf.c: New file.
12398         * sysdeps/powerpc/fpu/s_sinf.c: New file.
12399         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
12400         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
12401
12402 2011-08-15  Alan Modra  <amodra@gmail.com>
12403
12404         [BZ #13092]
12405         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
12406         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
12407         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
12408         ppc_mcount to static-only-routines.
12409         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
12410         __mcount_internal.
12411         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
12412         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
12413
12414 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
12415
12416         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
12417         for finite and infinity parameters.
12418
12419 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12420
12421         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
12422         and add nop instructions for throughput optimization.
12423         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12424
12425 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
12426
12427         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
12428         aligned copy for power7 with vector-scalar instructions.
12429         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12430
12431 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12432
12433         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
12434         AVX check.
12435
12436 2011-09-07  Andreas Schwab  <schwab@redhat.com>
12437
12438         [BZ #13144]
12439         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
12440         last change.
12441
12442 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12443
12444         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12445         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
12446         syscall wrapper around clock_gettime in __vdso_clock_gettime.
12447         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
12448         clock_gettime.
12449
12450 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12451
12452         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
12453         Forgot to demangle the pointer.
12454
12455         * sysdeps/i386/sysdep.h: Define atom_text_section.
12456         * sysdeps/x86_64/sysdep.h: Likewise.
12457         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
12458         section with atom_text_section.
12459         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12460         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12461         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
12462         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12463         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
12464
12465         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
12466         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
12467         already be defined.  Change to take two parameters and don't assign
12468         result to variable.  Adjust all users.
12469         Define INTERNAL_GETTIME if not already defined.
12470         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
12471         call.
12472         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
12473         HAVE_CLOCK_GETTIME_VSYSCALL.
12474         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
12475
12476         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
12477         gettimeofday vsyscall, just use time.
12478
12479 2011-09-06  Andreas Schwab  <schwab@redhat.com>
12480
12481         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
12482         <errno.h>.
12483
12484 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12485
12486         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
12487         syscall on x86-64.
12488         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
12489         syscall.
12490         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
12491         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
12492         syscall if possible.
12493
12494 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12495
12496         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
12497         e_ident.  Don't pass to find_mapsXX.
12498         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
12499
12500 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12501
12502         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12503         strchr-sse2-no-bsf strrchr-sse2-no-bsf
12504         * sysdeps/x86_64/multiarch/strchr.S: Update.
12505         Check bit_slow_BSF bit.
12506         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12507         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
12508         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
12509
12510 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12511
12512         [BZ #13134]
12513         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
12514         before glibc 2.15.
12515         (tryshell): Define.
12516         (__spawni): Change last parameter to be flag.  Test
12517         SPAWN_XFLAGS_USE_PATH flag to use path or not.
12518         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
12519         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
12520         * posix/spawni.c: Likewise.
12521         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
12522         * posix/spawnp.c: Likewise.  Change normal version to use
12523         SPAWN_XFLAGS_USE_PATH.
12524         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
12525         SPAWN_XFLAGS_TRY_SHELL.
12526
12527         [BZ #13150]
12528         * posix/glob.h: Remove gcc 1.x support.
12529
12530         [BZ #13068]
12531         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
12532
12533 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12534
12535         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12536         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
12537         strrchr-sse2-bsf
12538         * sysdeps/i386/i686/multiarch/strchr.S: New file.
12539         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
12540         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
12541         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
12542         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
12543         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
12544
12545 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12546
12547         * sysdeps/x86_64/wcscmp.S: New file.
12548
12549         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
12550         wcscmp-c wcscmp-sse2
12551         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
12552         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
12553         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
12554         * wcsmbs/wcscmp.c: Allow renaming.
12555
12556 2011-09-05  David S. Miller  <davem@davemloft.net>
12557
12558         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
12559         stack slot, rather than the struct return pointer slot.
12560         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
12561         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
12562         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
12563         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
12564
12565 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12566
12567         * po/ja.po: Update from translation team.
12568
12569         [BZ #13144]
12570         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
12571         kernel in 64-bit binaries.
12572
12573 2011-09-01  David S. Miller  <davem@davemloft.net>
12574
12575         * elf/elf.h (HWCAP_SPARC_*): Move to..
12576         * sysdeps/sparc/sysdep.h: this new file and add new values.
12577         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
12578         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
12579         _DL_HWCAP_COUNT to 24.
12580         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
12581         entries.
12582         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
12583         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
12584         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
12585         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
12586         instead of magic constants.
12587         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12588
12589 2011-08-31  David S. Miller  <davem@davemloft.net>
12590
12591         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
12592         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
12593         Reimplement to do errno handling inline.
12594         (SYSCALL_ERROR_HANDLER): New macro.
12595         (__SYSCALL_STRING): Do not do errno handling in asm.
12596         (__CLONE_SYSCALL_STRING): Delete.
12597         (__INTERNAL_SYSCALL_STRING): Delete.
12598         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12599         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
12600         (PSEUDO): Reimplement to do errno handling inline.
12601         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
12602         (SYSCALL_ERROR_HANDLER): New macro.
12603         (__SYSCALL_STRING): Do not do errno handling in asm.
12604         (__CLONE_SYSCALL_STRING): Delete.
12605         (__INTERNAL_SYSCALL_STRING): Delete.
12606         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
12607         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
12608         i386.
12609         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
12610         (inline_syscall*): Add 'err' argument.
12611         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
12612         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
12613         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
12614         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
12615
12616         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
12617         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
12618
12619 2011-08-30  Andreas Schwab  <schwab@redhat.com>
12620
12621         * elf/rtld.c (dl_main): Relocate objects in dependency order.
12622
12623 2011-08-29  Jiri Olsa <jolsa@redhat.com>
12624
12625         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
12626         directive.
12627
12628 2011-08-24  David S. Miller  <davem@davemloft.net>
12629
12630         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
12631
12632 2011-08-24  Andreas Schwab  <schwab@redhat.com>
12633
12634         * elf/Makefile: Add rules to build and run unload8 test.
12635         * elf/unload8.c: New file.
12636         * elf/unload8mod1.c: New file.
12637         * elf/unload8mod1x.c: New file.
12638         * elf/unload8mod2.c: New file.
12639         * elf/unload8mod3.c: New file.
12640
12641         * elf/dl-close.c (_dl_close_worker): Reset private search list if
12642         it wasn't used.
12643
12644 2011-08-23  David S. Miller  <davem@davemloft.net>
12645
12646         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
12647         subtract stack bias.
12648         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
12649         %sp not %fp in calculations.
12650         (_JMPBUF_UNWINDS_ADJ): Likewise.
12651
12652         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
12653         (aio_suspend): Call it to force an exception region around the
12654         AIO_MISC_WAIT() invocation.
12655
12656 2011-08-23  Andreas Schwab  <schwab@redhat.com>
12657
12658         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
12659         backslash.
12660
12661 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
12662
12663         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
12664         protection macro.
12665         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
12666         and <dl-machine.h>.
12667         (Elf64_FuncDesc): Remove.
12668
12669 2011-08-22  David S. Miller  <davem@davemloft.net>
12670
12671         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
12672         sigaltstack check, add missing cfi directives.
12673         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
12674         missing cfi directives, and sigaltstack handling.
12675
12676 2011-08-16  Andreas Schwab  <schwab@redhat.com>
12677
12678         [BZ #11724]
12679         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
12680         object is seen twice.
12681         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12682
12683         * elf/Makefile (distribute): Add tst-initorder2.c.
12684         (tests): Add tst-initorder2.
12685         (modules-names): Add tst-initorder2a tst-initorder2b
12686         tst-initorder2c tst-initorder2d.  Add rules to build them.
12687         ($(objpfx)tst-initorder2.out): New rule.
12688         * elf/tst-initorder2.c: New file.
12689         * elf/tst-initorder2.exp: New file.
12690
12691 2011-08-22  Andreas Schwab  <schwab@redhat.com>
12692
12693         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
12694
12695         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
12696         dependencies back to end of function.
12697
12698         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12699         $(elfobjdir)/ld.so.
12700
12701 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
12702
12703         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
12704         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
12705         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12706         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12707         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
12708         of __vdso_gettimeofday.
12709         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
12710         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
12711         attribute_hidden.
12712         (_libc_vdso_platform_setup): Remove initialization of
12713         __vdso_gettimeofday and __vdso_time.
12714
12715 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12716
12717         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
12718         and fgetc_unlocked.
12719         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
12720         getc_unlocked.
12721
12722         * elf/dl-open.c (add_to_global): Report additions to the global scope
12723         for LD_DEBUG=scopes.
12724         (dl_open_worker): Also print scope of newly loaded dependencies.
12725         (_dl_show_scope): Indicate if there is no scope.
12726
12727         [BZ #13114]
12728         * stdio-common/Makefile (tests): Add bug24.
12729         * stdio-common/bug24.c: New file.
12730
12731 2011-08-19  Andreas Jaeger  <aj@suse.de>
12732
12733         [BZ #13114]
12734         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
12735         non-existant file when using close-on-exec mode.
12736
12737 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12738
12739         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
12740         the very first instruction.
12741
12742         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
12743         the CFI state in the end.
12744         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
12745         inclusion of dl-trampoline.h.
12746         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
12747
12748 2011-08-19  Andreas Schwab  <schwab@redhat.com>
12749
12750         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
12751         expectations for long double.
12752
12753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
12754         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
12755
12756 2011-08-14  David S. Miller  <davem@davemloft.net>
12757
12758         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
12759         artificual limit depends upon the system page size.
12760
12761 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12762
12763         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
12764         * resolv/Makefile: Define CFLAGS-libresolv.
12765
12766 2011-08-17  Andreas Schwab  <schwab@redhat.com>
12767
12768         * nss/makedb.c (compute_tables): Make variables used in nested
12769         function static.
12770
12771 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12772
12773         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
12774         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
12775         if buffer was too small.
12776
12777         * elf/pldd.c (main): Attach to all threads in the process.
12778         Rewrite /proc handling to use *at functions.
12779
12780 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
12781
12782         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
12783         specifies first scope to show.
12784         (dl_open_worker): Update callers.  Move printing scope of new
12785         object to before the relocation.
12786         * elf/rtld.c (dl_main): Update _dl_show_scope call.
12787         * sysdeps/generic/ldsodefs.h: Update declaration.
12788
12789         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
12790         string for the scope number.
12791
12792 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
12793
12794         * nscd/servicescache.c (cache_addserv): Make sure written is always
12795         initialized.
12796
12797 2011-08-14  Roland McGrath  <roland@hack.frob.com>
12798
12799         * sysdeps/i386/i486/bits/atomic.h
12800         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
12801         statement expression, so as to suppress "set but not used" warning.
12802         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
12803
12804         * string/strncat.c (STRNCAT): Use prototype definition.
12805
12806         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
12807         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
12808         -Iprograms here.
12809         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
12810         (localedef-modules): Add localedef.
12811         (locale-modules): Add locale.
12812
12813         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
12814         * elf/rtld.c (dl_main): Invert order of assignment in last change,
12815         to avoid a warning.
12816
12817 2011-08-14  David S. Miller  <davem@davemloft.net>
12818
12819         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
12820         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
12821
12822 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
12823
12824         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
12825         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
12826         * elf/rtld.c (dl_main): Set l_name of vDSO.
12827         Call _dl_show_scope when DL_DEBUG_SCOPES.
12828         (process_dl_debug): Recognize scopes flag and also set it for all.
12829         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
12830         Declare _dl_show_scope.
12831
12832         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
12833         (do_dlopen): Pass caller_dlopen to dl_open.
12834         (__libc_dlopen_mode): Initialize caller_dlopen.
12835
12836         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
12837         of libc.  Make tolower call locale-independent.  Optimize a bit by
12838         using isdigit instead of isalnum.
12839         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
12840
12841 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
12842
12843         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
12844         was a dependency or dynamically loaded.
12845
12846 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
12847
12848         * intl/l10nflist.c: Allow architecture-specific pop function.
12849         * sysdeps/x86_64/l10nflist.c: New file.
12850
12851         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
12852         classification.
12853
12854 2011-08-10  Andreas Schwab  <schwab@redhat.com>
12855
12856         * include/dirent.h: Add libc_hidden_proto for scandirat and
12857         scandirat64.  Don't declare __scandirat64.
12858         * dirent/scandirat.c: Add libc_hidden_def.
12859         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
12860         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
12861
12862 2011-08-10  David S. Miller  <davem@davemloft.net>
12863
12864         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
12865         enum.
12866         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12867         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12868         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12869
12870 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
12871
12872         * Versions.def [libc]: Add GLIBC_2.15.
12873         * dirent/Makefile (routines): Add scandirat and scandirat64.
12874         * dirent/Versions [libc]: Export scandirat and scandirat64 for
12875         GLIBC_2.15.
12876         * dirent/dirent.h: Declare scandirat and scandirat64.
12877         * dirent/scandirat.c: New file.
12878         * dirent/scandirat64.c: New file.
12879         * sysdeps/wordsize-64/scandirat.c: New file.
12880         * sysdeps/wordsize-64/scandirat64.c: New file.
12881         * dirent/opendir.c: Define opendirat.
12882         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
12883         using scandirat.
12884         * dirent/scandir64.c: Adjust for scandir.c change.
12885         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
12886         __scandirat64, and __scandir_cancel_handler.
12887         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
12888         additional parameter and use openat instead of open (outside of ld.so).
12889         Add new __opendir as wrapper around __opendirat.
12890         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
12891         here without requiring old scandirat implementation.
12892
12893 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
12894
12895         * dirent/scandir.c (cancel_handler): Renamed to
12896         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
12897         defined.  Adjust users.
12898         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
12899         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12900
12901 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
12902
12903         * string/test-string.h (IMPL): Use __STRING to expand name and then
12904         stringify it.
12905
12906         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
12907         of cleanups.
12908
12909 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12910
12911         * string/Makefile: Update.
12912         (strop-tests): Append strncat.
12913         * string/test-wcscmp.c: New file.
12914         New comprehensive test for wcscmp.
12915         * string/test-strcmp.c: Update.
12916         (WIDE): New define.
12917
12918 2011-07-22  Andreas Schwab  <schwab@redhat.com>
12919
12920         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
12921         line.
12922
12923 2011-07-26  Andreas Schwab  <schwab@redhat.com>
12924
12925         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
12926         encoding to ACE if AI_IDN.
12927
12928 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
12929
12930         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
12931         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
12932
12933 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12934
12935         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
12936         Fix overflow bug in strncat.
12937         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
12938
12939         * string/test-strncat.c: Update.
12940         Add new tests for checking overflow bugs.
12941
12942 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12943
12944         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12945         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
12946         * sysdeps/i386/i686/multiarch/strcat.S: New file.
12947         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
12948         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
12949         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
12950         * sysdeps/i386/i686/multiarch/strncat.S: New file.
12951         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
12952         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
12953
12954         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
12955         (USE_AS_STRCAT): Define.
12956         Add strcat and strncat support.
12957         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12958
12959 2011-07-25  Andreas Schwab  <schwab@redhat.com>
12960
12961         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
12962         __n bigger than INT_MAX+1.
12963         (__strncmp_g): Likewise.
12964
12965 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
12966
12967         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
12968         * libio/stido.h: Likewise.
12969
12970         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
12971         (AF_NFC): Define.
12972         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
12973         (AF_NFC): Define.
12974
12975         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
12976         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12977         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12978         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12979         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12980
12981         [BZ #13021]
12982         * scripts/test-installation.pl: Don't expect libnss_test1 to be
12983         installed.
12984
12985         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
12986         typo.
12987         (_dl_x86_64_save_sse): Likewise.
12988
12989 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
12990
12991         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
12992         OSXSAVE.
12993         (_dl_x86_64_save_sse): Likewise.
12994
12995         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
12996
12997         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
12998
12999 2011-07-21  Andreas Schwab  <schwab@redhat.com>
13000
13001         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
13002         change.
13003         (_dl_x86_64_save_sse): Use correct AVX check.
13004
13005 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13006
13007         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
13008         bug in strncpy/strncat.
13009         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
13010
13011 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
13012
13013         * string/tester.c (test_strcat): Add tests for different alignments
13014         of source and destination.
13015         (test_strncat): Likewise.
13016
13017 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13018
13019         [BZ #12852]
13020         * posix/glob.c (glob): Check passed in values before using them in
13021         expressions to avoid some overflows.
13022         (glob_in_dir): Likewise.
13023
13024         [BZ #13007]
13025         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
13026         check for AVX enablement so that we don't crash with old kernels and
13027         new hardware.
13028         * elf/tst-audit4.c: Add same checks here.
13029         * elf/tst-audit6.c: Likewise.
13030
13031         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
13032
13033 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
13034
13035         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
13036
13037 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13038
13039         * po/cs.po: Update from translation team.
13040         * po/bg.po: Likewise.
13041
13042 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
13043
13044         * misc/sys/cdefs.h: Add support for const attribute.
13045         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
13046         to gnu_dev_{major,minor,makedev} functions.
13047
13048 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
13049
13050         * intl/dcigettext.c (get_output_charset): Add missing bracket.
13051
13052 2011-07-20  Andreas Schwab  <schwab@redhat.com>
13053
13054         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
13055         strlen results.
13056
13057 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13058
13059         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
13060         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
13061         register in order to avoid conflicts with the soft frame pointer
13062         being held in r11 when necessary.
13063         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
13064         (INTERNAL_VSYSCALL_NCS): Likewise.
13065
13066 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
13067
13068         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
13069         * elf/dl-fini.c (_dl_fini): Adjust caller.
13070         * elf/dl-close.c (_dl_close_worker): Likewise.
13071         * sysdeps/generic/ldsodefs.h: Adjust declaration.
13072
13073 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13074
13075         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
13076         "aux_cache->nlibs < 0".
13077
13078         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
13079         in the reload-count case.
13080
13081 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13082
13083         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13084         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
13085         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
13086         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
13087         * sysdeps/x86_64/multiarch/strcat.S: New file.
13088         * sysdeps/x86_64/multiarch/strncat.S: New file.
13089         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
13090         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
13091         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
13092         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
13093         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
13094         (USE_AS_STRCAT): Define.
13095         Add strcat and strncat support.
13096         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13097         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
13098         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
13099         * string/strncat.c: Update.
13100         (USE_AS_STRNCAT): Define.
13101         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13102         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
13103         and i7.
13104         * sysdeps/x86_64/multiarch/init-arch.h
13105         (bit_Prefer_PMINUB_for_stringop): New.
13106         (index_Prefer_PMINUB_for_stringop): Likewise.
13107         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
13108         bit_Prefer_PMINUB_for_stringop.
13109
13110 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13111
13112         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
13113         buffer64.
13114         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
13115         of casting of buffer.
13116         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
13117         buffer32 and buffer64.
13118         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
13119         writes instead of casting of buffer.
13120         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
13121         buffer32.
13122         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
13123         casting of buffer.
13124
13125 2011-07-19  Andreas Schwab  <schwab@redhat.com>
13126
13127         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
13128
13129 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13130
13131         * nscd/nscd.c (termination_handler): Don't do anything for a database
13132         if it has not yet been initialized.
13133
13134 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13135
13136         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13137
13138 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13139
13140         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13141
13142 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13143
13144         * po/nl.po: Update from translation team.
13145         * po/sv.po: Likewise.
13146
13147 2011-07-16  Roland McGrath  <roland@hack.frob.com>
13148
13149         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
13150         now disallowed by GCC.
13151
13152         * configure.in (use-default-link): Default to yes if a test -shared
13153         link meets our qualifications.
13154         * configure: Regenerated.
13155
13156         * config.make.in (output-format): New variable.
13157         * configure.in: Check for ld --print-output-format support.
13158         * configure: Regenerated.
13159         * Makerules ($(common-objpfx)format.lds)
13160         [$(output-format) != unknown]: Just use $(output-format),
13161         instead of the linker-script munging.
13162
13163 2011-07-14  Roland McGrath  <roland@hack.frob.com>
13164
13165         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
13166         of $(common-objpfx)shlib.lds.
13167         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
13168
13169         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
13170         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
13171
13172         * configure.in (-z relro check): Adjust test code to add a large
13173         writable data section after it.
13174         * configure: Regenerated.
13175
13176 2011-07-11  Roland McGrath  <roland@hack.frob.com>
13177
13178         * configure.in (-z relro check): Fix test code to make the variable
13179         truly const.
13180         * configure: Regenerated.
13181
13182 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
13183
13184         * nscd/nscd.h (struct traced_file): Define.
13185         (struct database_dyn): Remove inotify_descr, reset_res, and filename
13186         elements.  Add traced_files.
13187         (inotify_fd): Declare.
13188         (register_traced_file): Declare.
13189         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
13190         (inotify_fd): Export.
13191         (resolv_conf_descr): Remove.
13192         (nscd_init): Move inotify descriptor creation to main.
13193         Don't register files for notification here.
13194         (register_traced_file): New function.
13195         (invalidate_cache): Don't use reset_res to determine whether to call
13196         res_init, go through the list of registered files.
13197         (main_loop_poll): The inotify descriptors are now stored in the
13198         structures for the traced files.
13199         (main_loop_epoll): Likewise
13200         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
13201         to __nss_disable_nscd.
13202         * nscd/cache.c (prune_cache): There is no single inotify descriptor
13203         for a database anymore.  Check the records for all the registered
13204         files instead.
13205         * nss/Makefile (libnss_files-routines): Add files-init.
13206         (libnss_db-routines): Add db-init.
13207         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
13208         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
13209         * nss/nss_db/db-init.c: New file.
13210         * nss/nss_files/files-init.c: New file.
13211         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
13212         __nss_lookup_function.
13213         (__nss_lookup_function): Call nss_load_library.
13214         (nss_load_all_libraries): New function.
13215         (__nss_disable_nscd): Take parameter with callback function for files
13216         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
13217         used for the cached services.
13218         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
13219         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
13220         options for features to all the files in nscd.
13221
13222         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
13223
13224 2011-07-10  Roland McGrath  <roland@hack.frob.com>
13225
13226         * csu/elf-init.c (__libc_csu_init): Comment typo.
13227
13228 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
13229
13230         * po/pl.po: Update from translation team.
13231         * po/ja.po: Likewise.
13232         * po/ru.po: Likewise.
13233         * po/ko.po: Likewise.
13234         * po/fr.po: Likewise.
13235
13236 2011-07-09  Roland McGrath  <roland@hack.frob.com>
13237
13238         * configure.in (.ctors/.dtors header and trailer check):
13239         Use an empirical test on a built program.
13240         * configure: Regenerated.
13241
13242         * configure.in (-z relro check): Use an empirical test on a built DSO.
13243         Detect, but do not require, on ia64.
13244         * configure: Regenerated.
13245
13246         * configure.in (READELF): Find it with AC_CHECK_TOOL.
13247         Update tests that use readelf to use $READELF instead.
13248         * configure: Regenerated.
13249
13250 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
13251
13252         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
13253         if the result is not used.
13254
13255 2011-07-05  Andreas Jaeger  <aj@suse.de>
13256
13257         [BZ#9696]
13258         * stdlib/tst-strtod.c: Add testcase.
13259
13260 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13261
13262         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
13263         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
13264         The latter has a higher limit.  Take additional parameter to pass to
13265         the new function.
13266         (__pathconf): Pass file to __statfs_link_max.
13267         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
13268         __statfs_link_max.
13269         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
13270         __statfs_link_max.
13271
13272         [BZ #12868]
13273         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
13274         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13275         Handle Lustre.
13276         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
13277         (__statfs_filesize_max): Likewise.
13278         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
13279
13280 2011-07-05  Andreas Jaeger  <aj@suse.de>
13281
13282         * resolv/res_comp.c (dn_skipname): Remove unused variable.
13283
13284 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
13285
13286         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
13287         `status' variable.
13288         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
13289         Likewise.
13290
13291 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
13292
13293         * Makefile (strop-tests): Add strncat.
13294         * string/test-strncat.c: New file.
13295
13296 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
13297
13298         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
13299
13300 2011-06-21  Andreas Jaeger  <aj@suse.de>
13301
13302         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
13303         Copy rule from iconvdata/Makefile.
13304
13305 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13306
13307         [BZ #12922]
13308         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
13309         but no long options are defined, just return 'W'.
13310
13311 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
13312
13313         [BZ #9696]
13314         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
13315
13316 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13317
13318         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
13319         netgroups to read.
13320         (innetgr): Likewise.
13321
13322 2011-07-05  Roland McGrath  <roland@hack.frob.com>
13323
13324         * config.make.in (install_root): Default to $(DESTDIR).
13325
13326 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
13327
13328         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
13329
13330 2011-07-02  Roland McGrath  <roland@hack.frob.com>
13331
13332         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
13333
13334         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
13335         containing directory rather than embedding absolute directory names.
13336
13337         * scripts/check-local-headers.sh: Rewritten using awk.
13338         Match by word, not by line.  Print error messages for matches.
13339         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
13340
13341         * Makerules [shlib-lds-flags empty]:
13342         ($(common-objpfx)libc_pic.opts): New target.
13343         ($(common-objpfx)libc_pic.os.clean): New target.
13344         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
13345
13346         * config.make.in (OBJCOPY): New variable.
13347         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
13348         * configure: Regenerated.
13349
13350         * config.make.in (use-default-link): New variable.
13351         * configure.in (use_default_link): Grok --with-default-link to set it.
13352         * configure: Regenerated.
13353         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
13354         (shlib-lds, shlib-lds-flags): Define to empty.
13355
13356         * Makerules (shlib-lds): New variable.
13357         (shlib-lds-flags): New variable.
13358         (build-shlib, build-moduile, build-module-asneeded): Use it.
13359         ($(common-objpfx)libc.so): Use $(shlib-lds).
13360         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
13361         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
13362
13363         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
13364         DT_FLAGS/DT_FLAGS_1 with zero flags.
13365
13366         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
13367         linker script munging.
13368
13369 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
13370
13371         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
13372         as 128-bit value.
13373         * crypt/sha512.c (sha512_process_block): Perform total addition using
13374         128-bit if possible.
13375         (__sha512_finish_ctx): Likewise.
13376         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
13377         as 64-bit value.
13378         * crypt/sha256.c (SWAP64): Define.
13379         (sha256_process_block): Perform total addition using 64-bit if
13380         possible.
13381         (__sha256_finish_ctx): Likewise.
13382
13383 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
13384
13385         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
13386         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13387         * nscd/hstcache.c (cache_addhst): Likewise.
13388         * nscd/grpcache.c (cache_addgr): Likewise.
13389         * nscd/aicache.c (addhstaiX): Likewise
13390         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
13391
13392 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
13393
13394         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
13395         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13396         * nscd/hstcache.c (cache_addhst): Likewise.
13397         * nscd/grpcache.c (cache_addgr): Likewise.
13398         * nscd/aicache.c (addhstaiX): Likewise
13399
13400 2011-07-01  Andreas Schwab  <schwab@redhat.com>
13401
13402         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
13403         domain only when needed.
13404
13405 2011-06-30  Andreas Schwab  <schwab@redhat.com>
13406
13407         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
13408         is always restored.
13409
13410 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
13411
13412         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
13413         are re-adding the entry.
13414         * nscd/servicescache.c (cache_addserv): Likewise.
13415
13416 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13417
13418         * sysdeps/generic/dl-irel.h: fix protection against multiple
13419         inclusions.
13420         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
13421
13422 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
13423
13424         [BZ #12935]
13425         * malloc/memusage.sh: Fix quoting in message.
13426         * debug/xtrace.sh: Likewise.
13427
13428         * configure.in: Remove support for --experimental-malloc option, make
13429         it the default.
13430         * config.make.in: Likewise.
13431         * malloc/Makefile: Likewise.
13432
13433 2011-06-27  Andreas Schwab  <schwab@redhat.com>
13434
13435         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
13436         two-byte characters.
13437
13438 2011-06-27  Roland McGrath  <roland@hack.frob.com>
13439
13440         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
13441         AC_CACHE_CHECK invocation.
13442         * configure: Regenerated.
13443
13444         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
13445
13446 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
13447
13448         [BZ #12350]
13449         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
13450         bit from old_res_options.
13451
13452         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
13453
13454         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
13455         value type for setfct.
13456
13457 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13458
13459         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13460         __gettimeofday instead of gettimeofday.
13461
13462 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
13463
13464         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
13465
13466 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13467
13468         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
13469
13470         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
13471         info.
13472
13473 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13474
13475         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13476         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13477         strcpy-sse2-unaligned strncpy-sse2-unaligned
13478         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
13479         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
13480         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
13481         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
13482         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
13483         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
13484         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
13485         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
13486         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
13487         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
13488         (STRCPY): Support SSE2 and SSSE3 versions.
13489
13490 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
13491
13492         [BZ #12874]
13493         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
13494         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
13495         kernels which artificially limit size of requests.
13496
13497 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13498
13499         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13500         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13501         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
13502         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
13503         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
13504         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
13505         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
13506         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
13507         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
13508         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
13509         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
13510         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
13511         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
13512         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
13513         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
13514         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13515         Enable unaligned load optimization for Intel Core i3, i5 and i7
13516         processors.
13517         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
13518         Define.
13519         (index_Fast_Unaligned_Load): Define.
13520         (HAS_FAST_UNALIGNED_LOAD): Define.
13521
13522 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
13523
13524         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
13525
13526 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13527
13528         [BZ #12907]
13529         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
13530         until it is clear that the information is realy needed.
13531         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
13532
13533 2011-06-22  Andreas Schwab  <schwab@redhat.com>
13534
13535         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
13536
13537 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13538
13539         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13540         /sys/devices/system/cpu/online if it is usable.
13541
13542         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
13543         reading the information from the /proc filesystem to once a second.
13544
13545 2011-06-21  Andreas Jaeger  <aj@suse.de>
13546
13547         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
13548         NULL after inclusion of kernel headers.
13549
13550 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
13551
13552         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
13553         calls to internal_setent.
13554
13555         [BZ #12885]
13556         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
13557         addresses using gethostbyname4_r ignore IPv4 addresses.
13558
13559         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
13560         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
13561
13562         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
13563
13564 2011-06-20  David S. Miller  <davem@davemloft.net>
13565
13566         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
13567         inclusions.
13568         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
13569
13570         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
13571         (elf_irel): Use it.
13572         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
13573         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
13574         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
13575         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
13576         * sysdeps/x86_64/dl-irel.h: Likewise.
13577
13578         * elf/dl-runtime.c: Use elf_ifunc_invoke.
13579         * elf/dl-sym.c: Likewise.
13580
13581 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13582
13583         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
13584         need to dereference resplen2.
13585
13586 2011-06-14  Andreas Schwab  <schwab@redhat.com>
13587
13588         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
13589
13590 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13591
13592         * Makeconfig: Define vardbdir and inst_vardbdir.
13593         * nss/Makefile: Add rules to install db-Makefile.
13594
13595         * nss/nss_db/db-XXX.c: Cleanup.
13596
13597         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
13598         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
13599         GLIBC_PRIVATE.
13600         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
13601         * nss/makedb.c: Implement -g option to specify that value strings
13602         are generated and should not be added to table iterated over for
13603         get*ent calls.
13604         * nss/nss_db/db-initgroups.c: New file.
13605
13606         * nss/getent.c: Add support for initgroups lookups through getgrouplist
13607         interface.
13608
13609         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
13610         (internal_getgrouplist): Adjust to name change.
13611         Update use_initgroups_entry if this is not the first call.
13612         * nss/databases.def: Add initgroups entry.
13613
13614         * nss/makedb.c (compute_tables): Check result of multiple hash table
13615         sizes to minimize maximum chain length.
13616
13617 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
13618
13619         * Versions.def: Add entry for libnss_db.
13620         * shlib-versions: Likewise.
13621         * nss/Makefile: Add rules to build libnss_db.
13622         * nss/Versions: Add libnss_db information.  Organize libnss_files
13623         entries better.
13624         * nss/db-Makefile: Add gshadow support.  Change rules for the new
13625         makedb progra.  Some minor improvements to generate smaller files.
13626         * nss/nss_db/nss_db.h: Move NSS database header data structures to
13627         here from...
13628         * nss/makedb.c: ...here.
13629         Improve database format to be smaller and require less memory at
13630         runtime.
13631         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
13632         db anymore.
13633         * nss/nss_db/db-netgrp.c: Likewise.
13634         * nss/nss_db/db-open.c: Likewise.
13635         * nss/nss_files/flies-XXX.x: Adjust comments.
13636         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
13637         * nss/nss_files/files-grp.c: Likewise.
13638         * nss/nss_files/files-hosts.c: Likewise.
13639         * nss/nss_files/files-network.c: Likewise.
13640         * nss/nss_files/files-proto.c: Likewise.
13641         * nss/nss_files/files-pwd.c: Likewise.
13642         * nss/nss_files/files-rpc.c: Likewise.
13643         * nss/nss_files/files-service.c: Likewise.
13644         * nss/nss_files/files-sgrp.c: Likewise.
13645         * nss/nss_files/files-spwd.c: Likewise.
13646         * nss/nss_db/db-alias.c: Removed.
13647         * nss/nss_db/dummy-db.h: Removed.
13648
13649 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
13650
13651         * nss/makedb.c: Rewritten to not use database library.
13652         * nss/Makefile: Update to build new makedb program.
13653
13654 2011-06-14  Andreas Jaeger  <aj@suse.de>
13655
13656         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
13657         memset declaration.
13658
13659 2011-06-10  Andreas Schwab  <schwab@redhat.com>
13660
13661         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
13662         tmpbuf.
13663
13664 2011-06-10  Roland McGrath  <roland@hack.frob.com>
13665
13666         * Makerules (shlib.lds): Fail if the linker script comes out empty.
13667         * elf/Makefile ($(objpfx)ld.so): Likewise.
13668
13669         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
13670         Don't list ld.so twice in dependencies.
13671
13672         * posix/bug-regex31.c: Include <stdlib.h>.
13673
13674         * nscd/hstcache.c (cache_addhst): Remove unused variable.
13675
13676         * nis/nss_compat/compat-spwd.c
13677         (getspent_next_nss_netgr): Remove unused variable.
13678         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
13679
13680         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
13681         nonmembers" output to use the right array.
13682
13683         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
13684
13685         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
13686
13687         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
13688         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
13689         * catgets/gencat.c (read_input_file): Likewise.
13690         * locale/programs/locarchive.c (enlarge_archive): Likewise.
13691
13692         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
13693         variable definition inside #if's controlling its use.
13694
13695         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
13696
13697         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
13698
13699         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
13700
13701         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
13702         unreachable code.
13703
13704         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
13705
13706         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
13707         * configure: Regenerated.
13708
13709         * Makerules: Revert last change.
13710         * elf/Makefile: Likewise.
13711
13712 2011-06-09  Roland McGrath  <roland@hack.frob.com>
13713
13714         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
13715         * elf/Makefile ($(objpfx)librtld.os): Likewise.
13716         (reloc-link): Likewise.
13717
13718 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
13719
13720         * elf/Makefile: Add rules to build pldd.
13721         * elf/pldd.c: New file.
13722         * elf/pldd-xx.c: New file.
13723
13724 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
13725
13726         * version.h: Update for 2.15 development version.
13727
13728 2011-06-07  David S. Miller  <davem@davemloft.net>
13729
13730         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
13731         ifuncs.
13732         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
13733         elf_machine_lazy_rel): Likewise.
13734         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
13735         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
13736         elf_machine_lazy_rel): Likewise.
13737         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
13738         dl_hwcap via passed in argument.
13739         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
13740         Likewise.
13741
13742 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13743
13744         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
13745
13746 2011-06-06  Roland McGrath  <roland@hack.frob.com>
13747
13748         [BZ #12849]
13749         * manual/fdl-1.1.texi: New file, verbatim from:
13750         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
13751         * manual/lgpl-2.1.texi: New file, verbatim from:
13752         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
13753         * manual/Makefile (licenses): New variable, list those new file names.
13754         (texis): Use it.
13755         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
13756
13757         * manual/fdl.texi: File removed.
13758         * manual/lesser.texi: File removed.
13759         * manual/libc.texinfo (Copying, Documentation License):
13760         Use new @include file names, put @appendix directive before @include.
13761
13762 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13763
13764         [BZ #12841]
13765         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
13766         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
13767         (mq_open): Add __NTH.
13768
13769 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
13770
13771         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13772         Assume Intel Core i3/i5/i7 processor if AVX is available.
13773
13774 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13775
13776         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
13777         typo.
13778
13779 2011-05-31  Andreas Schwab  <schwab@redhat.com>
13780
13781         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
13782         memory.  Use alloca_account.  Fix memory leak when retrying.
13783
13784 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13785
13786         * version.h (RELEASE): Bump for 2.14 release.
13787         * include/features.h (__GLIBC_MINOR__): Bump to 14.
13788
13789         * config.make.in (RANLIB): Remove entry.
13790
13791 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
13792
13793         * po/Makefile (po-sed-cmd): Add ksh to extensions.
13794         (libc.pot): Work around missing support for .ksh extension in xgettext.
13795
13796         [BZ #12684]
13797         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
13798         if both request failed.
13799         (send_dg): In case of server errors clear resplen or *resplen2.
13800
13801         [BZ #12454]
13802         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
13803         when there are multiple maps.
13804         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
13805         (_dl_fini): Remove test here.
13806
13807         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
13808
13809 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
13810
13811         [BZ #12350]
13812         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
13813         bit from old_res_options.
13814         (gaih_inet): Likewise.
13815
13816         [BZ #11099]
13817         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
13818         as signed.
13819
13820         * resolv/res_init.c (res_setoptions): Make the code more compact.
13821
13822         [BZ #11558]
13823         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
13824         set RES_USEVC.
13825
13826         [BZ #11634]
13827         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
13828
13829         * malloc/malloc.h: Mark malloc hook variables as deprecated.
13830
13831         [BZ #11781]
13832         * malloc/malloc.h: Declare malloc hook variables as volatile.
13833
13834         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
13835         in last patch.
13836
13837         [BZ #11799]
13838         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
13839         raise in the comment.
13840         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13841         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13842         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
13843
13844 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
13845
13846         [BZ #12811]
13847         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
13848         grow the buffers more if it already has to be sufficient.
13849         (build_wcs_upper_buffer): Likewise.
13850         * posix/regexec.c (check_matching): Likewise.
13851         (clean_state_log_if_needed): Likewise.
13852         (extend_buffers): Don't enlarge buffers beyond size of the input
13853         buffer.
13854         Patches mostly by Emil Wojak <emil@wojak.eu>.
13855         * posix/bug-regex32.c: New file.
13856         * posix/Makefile (tests): Add bug-regex32.
13857
13858         * locale/findlocale.c (_nl_find_locale): Return right away if
13859         _nl_explode_name failed.
13860         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13861
13862         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
13863
13864         * debug/xtrace.sh: Unify messages.
13865         * malloc/memusage.sh: Likewise.
13866
13867         [BZ #12813]
13868         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
13869         time symbol from vDSO.  Substitute with vsyscall if not available.
13870         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
13871         __vdso_time.
13872
13873         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
13874         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
13875         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
13876         Add sendmmsg and internal_sendmmsg.
13877         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
13878         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
13879         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
13880
13881         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
13882         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
13883         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
13884
13885 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
13886
13887         [BZ #12813]
13888         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
13889         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
13890         available.
13891         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
13892         __vdso_getcpu.
13893
13894         [BZ #12814]
13895         * iconvdata/Makefile (tests): Add bug-iconv9.
13896         * iconvdata/bug-iconv9.c: New file.
13897
13898 2011-05-27  Andreas Schwab  <schwab@redhat.com>
13899
13900         [BZ #12814]
13901         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
13902
13903 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13904
13905         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13906         (struct user_regs_struct): Change intcs field back to cs.
13907
13908 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
13909
13910         * po/ja.po: Update from translation team.
13911
13912 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
13913
13914         [BZ #12795]
13915         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
13916         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
13917
13918 2011-05-20  Andreas Schwab  <schwab@redhat.com>
13919
13920         * stdlib/longlong.h: Update from GCC.
13921
13922 2011-05-23  Andreas Schwab  <schwab@redhat.com>
13923
13924         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
13925         parameter name.
13926         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
13927         Add parameter name.
13928         (__sysconf): Pass it down.
13929
13930 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
13931
13932         [BZ #12671]
13933         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
13934         some situations.
13935         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
13936         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
13937         add in in __libc_use_alloca calls.  Adjust callers.
13938         (glob): Use malloc in some situations.
13939
13940         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
13941         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
13942         pltexit.
13943
13944 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
13945
13946         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
13947         and CLOCK_BOOTTIME_ALARM.
13948
13949         [BZ #12782]
13950         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
13951         is returned.
13952
13953         * string/_strerror.c (__strerror_r): Print negative errors as signed
13954         numbers.
13955
13956         [BZ #12777]
13957         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
13958         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
13959         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
13960
13961         * configure.in: Fix typo in redirection and correct removal of test
13962         files in two cases.
13963
13964         [BZ #12788]
13965         * locale/setlocale.c (new_composite_name): Fix test to check for
13966         identical name of all categories.
13967
13968         [BZ #12792]
13969         * libio/filedoalloc.c (local_isatty): New function.
13970         (_IO_file_doallocate): Use local_isatty.
13971         * stdio-common/perror.c (perror): In case a new stream is used
13972         forward the stream error.
13973         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
13974         error flag.
13975
13976 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
13977
13978         [BZ #11869]
13979         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
13980         alloca.
13981         * include/alloca.h (extend_alloca_account): Define.
13982
13983         [BZ #11857]
13984         * posix/regex.h: Fix comments with documentation of user-accessible
13985         fields after compilation and describe correct free'ing of pattern
13986         after re_compile_pattern.
13987         Patch by Reuben Thomas <rrt@sc3d.org>.
13988
13989 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
13990
13991         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
13992         and -mno-altivec to prevent the compiler from using Altivec and/or
13993         VSX instructions when the corresponding registers are not available.
13994
13995 2011-05-19  Andreas Schwab  <schwab@redhat.com>
13996
13997         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
13998
13999 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
14000
14001         * libio/freopen.c (freopen): Use __dup2, not dup2.
14002         * libio/freopen64.c (freopen64): Likewise.
14003
14004 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14005
14006         [BZ #12775]
14007         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
14008         * math/Makefile (tests): Add test-powl.
14009         (CFLAGS-test-powl.c): Define.
14010         * math/test-powl.c: New file.
14011
14012 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14013
14014         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
14015
14016 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
14017
14018         [BZ #11837]
14019         * iconvdata/gb18030.c: Update to GB18020-2005.
14020
14021 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
14022
14023         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
14024         RE_SYNTAX_POSIX_AWK): Update to match recent development.
14025         Patch by Aharon Robbins <arnold@skeeve.com>.
14026
14027         [BZ #11892]
14028         * stdlib/putenv.c (putenv): Don't always create copy of the variable
14029         on the stack.
14030
14031         [BZ #11895]
14032         * misc/pselect.c (__pselect): Handle timeout value errors hidden
14033         through underflows.
14034
14035         [BZ #12766]
14036         * misc/error.c (error_at_line): Ensure file_name and old_file_name
14037         point to strings before performing equality test for error_one_per_line
14038         mode.
14039
14040         [BZ #11697]
14041         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
14042
14043         [BZ #11820]
14044         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
14045         (struct user_fpregs_struct): Avoid __uint*_t types.
14046
14047         [BZ #6420]
14048         * malloc/mtrace.c (tr_where): Add additional parameter to point to
14049         symbol info.  Use it instead of calling _dl_addr locally.
14050         (lock_and_info): New function.
14051         (tr_freehook): Call lock_and_info and pass symbol info as additional
14052         parameter to tr_where.
14053         (tr_mallochook): Likewise.
14054         (tr_reallochook): Likewise.
14055         (tr_memalignhook): Likewise.
14056
14057         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
14058         used and couldn't be at all thread-safe.
14059
14060 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
14061
14062         * libio/freopen.c (freopen): Don't close old file descriptor
14063         before the new one is opened.  Instead dup the new file descriptor
14064         to the old one after the new stream is created.
14065         * libio/freopen64.c (freopen64): Likewise.
14066         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
14067         * libio/fileops.c (_IO_new_file_close_it): Handle new
14068         _IO_FLAGS2_NOCLOSE flag.
14069         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
14070         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
14071         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
14072         _IO_FLAGS2_NOCLOSE flag.
14073         * include/unistd.h: Add hidden_proto for dup3.
14074         Define __have_dup3.
14075         * io/dup3.c: Define hidden symbol.
14076         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
14077
14078         [BZ #7101]
14079         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
14080         when an incomplete long option is used.
14081         * posix/tst-getopt_long1.c: New file.
14082         * posix/Makefile (tests): Add tst-getopt_long1.
14083
14084         [BZ #10138]
14085         * scripts/config.guess: Update from autoconf-2.68.
14086         * scripts/config.sub: Likewise.
14087
14088         [BZ #10157]
14089         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
14090         tests into ...
14091         (has_cpuclock): ...this.  New function.
14092         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
14093         macro here based on has_cpuclock code.
14094
14095         [BZ #10149]
14096         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14097         First byte (not low byte) is now always NUL.
14098         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
14099
14100         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14101         Use non-cancelable interfaces.
14102
14103         [BZ #9809]
14104         * locale/iso-639.def: Add entry for Sorani.
14105
14106         [BZ #11901]
14107         * include/stdlib.h: Move include protection to the right place.
14108         Define abort_msg_s.  Declare __abort_msg with it.
14109         * stdlib/abort.c (__abort_msg): Adjust type.
14110         * assert/assert.c (__assert_fail_base): New function.  Majority
14111         of code from __assert_fail.  Allocate memory for __abort_msg with
14112         mmap.
14113         (__assert_fail): Now call __assert_fail_base.
14114         * assert/assert-perr.c: Remove bulk of implementation.  Use
14115         __assert_fail_base.
14116         * include/assert.hL Declare __assert_fail_base.
14117         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
14118         mmap.
14119         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
14120
14121 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
14122
14123         [BZ #11952]
14124         [BZ #12453]
14125         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
14126         until all modules are registered in the DTV.
14127         * elf/Makefile: Add rules to build and run tst-tls19.
14128         * elf/tst-tls19.c: New file.
14129         * elf/tst-tls19mod1.c: New file.
14130         * elf/tst-tls19mod2.c: New file.
14131         * elf/tst-tls19mod3.c: New file.
14132         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
14133
14134         [BZ #12083]
14135         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
14136         correctly.
14137
14138         [BZ #12601]
14139         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
14140         two-byte sequence errors.
14141         * iconvdata/Makefile (tests): Add bug-iconv8.
14142         * iconvdata/bug-iconv8.c: New file.
14143
14144         [BZ #12626]
14145         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
14146         buf2 definition.
14147
14148         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
14149
14150         [BZ #12432]
14151         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
14152         (dummy_getcfa): New function.
14153         (init): Get _Unwind_GetCFA address, use dummy if not found.
14154         (backtrace_helper): In recursion check, also check whether CFA changes.
14155         (__backtrace): Completely initialize arg.
14156
14157         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
14158         storing incomplete byte sequence in state object.  Avoid testing for
14159         guaranteed too small input if we know there is enough data available.
14160
14161 2011-05-11  Andreas Schwab  <schwab@redhat.com>
14162
14163         * Makeconfig (+link-pie): Indent.
14164         * Rules (binaries-pie): Define if $(have-fpie) and
14165         $(build-shared).
14166         (binaries-shared): Also filter out $(binaries-pie).
14167         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
14168         * nscd/Makefile (others-pie): Add nscd.
14169         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
14170         ($(objpfx)nscd): Remove command override.
14171         * login/Makefile (others-pie): Add pt_chown.
14172         ($(objpfx)pt_chown): Remove command override.
14173         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
14174         remove command overrides.
14175
14176 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
14177
14178         * libio/tst_putwc.c: Fix error messages.
14179
14180         [BZ #12724]
14181         * libio/fileops.c (_IO_new_file_close_it): Always flush when
14182         currently writing and seek to current position when not.
14183         * libio/Makefile (tests): Add bug-fclose1.
14184         * libio/bug-fclose1.c: New file.
14185
14186 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
14187
14188         [BZ #12511]
14189         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
14190         don't set DF_1_NODELETE here.
14191         (do_lookup_x): When entering new entry test for copy relocation
14192         and if necessary set DF_1_NODELETE flag.
14193         * elf/tst-unique4.cc: New file.
14194         * elf/tst-unique4.h: New file.
14195         * elf/tst-unique4lib.cc: New file.
14196         * elf/Makefile: Add rules to build and run tst-unique4.
14197         Patch by Piotr Bury <pbury@goahead.com>.
14198
14199 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14200
14201         [BZ #12052]
14202         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
14203
14204         [BZ #12625]
14205         * misc/mntent_r.c (addmntent): Flush the stream after the output
14206
14207         [BZ #12393]
14208         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
14209         (is_trusted_path_normalize): Skip initial colon.  Append slash
14210         to empty buffer.  Duplicate is_trusted_path code but allow
14211         constructed patch to be prefix.
14212         (is_dst): Allow $ORIGIN followed by /.
14213         (_dl_dst_substitute): Correct clearing of check_for_trusted.
14214         Correct testing of result of is_trusted_path_normalize
14215         (decompose_rpath): Fix warning.
14216
14217 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
14218
14219         [BZ #11257]
14220         * grp/initgroups.c (internal_getgrouplist): When we found the service
14221         list through the initgroups entry in nsswitch.conf do not always
14222         continue on a successful lookup.  Don't always use the
14223         __nss_group_database value if it is set.
14224         * nss/nsswitch.conf (initgroups): Change action for successful db
14225         lookup to continue for compatibility.
14226
14227 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
14228
14229         [BZ #11532]
14230         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
14231         and CP774 modules.
14232         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
14233         and CP774 modules.
14234         * iconvdata/tst-tables.sh: Likewise.
14235         * iconvdata/cp770.c: New file.
14236         * iconvdata/cp771.c: New file.
14237         * iconvdata/cp772.c: New file.
14238         * iconvdata/cp773.c: New file.
14239         * iconvdata/cp774.c: New file.
14240         * iconvdata/testdata/CP770: New file.
14241         * iconvdata/testdata/CP770..UTF8: New file.
14242         * iconvdata/testdata/CP771: New file.
14243         * iconvdata/testdata/CP771..UTF8: New file.
14244         * iconvdata/testdata/CP772: New file.
14245         * iconvdata/testdata/CP772..UTF8: New file.
14246         * iconvdata/testdata/CP773: New file.
14247         * iconvdata/testdata/CP773..UTF8: New file.
14248         * iconvdata/testdata/CP774: New file.
14249         * iconvdata/testdata/CP774..UTF8: New file.
14250
14251         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
14252         END CHARMAP line.
14253         * iconvdata/gen-8bit-gap.sh: Likewise.
14254         * iconvdata/gen-8bit.sh: Likewise.
14255
14256         * locale/iso-639.def: Add ary entry.
14257
14258         [BZ #11258]
14259         * locale/C-translit.h.in: Add U20A1 transliteration.
14260
14261         [BZ #12178]
14262         * locale/iso-639.def: Add wae entry.
14263         Patch by Kevin Bortis <bortis@translate-wae.ch>.
14264
14265         [BZ #12545]
14266         * locale/programs/localedef.c (construct_output_path): Use ssize_t
14267         for n.
14268
14269         [BZ #12711]
14270         * locale/C-translit.h.in: Add entry for U20B9.
14271         Patch by pravin.d.s@gmail.com.
14272
14273 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
14274
14275         [BZ #12713]
14276         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
14277         ENAMETOOLONG use generic getcwd.
14278         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
14279         in rtld.  Use *stat64.
14280         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
14281         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
14282         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
14283         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
14284         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
14285         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
14286         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
14287         __fstatat64 macros.
14288         * include/dirent.h: Add libc_hidden_proto for rewinddir.
14289         * dirent/rewinddir.c: Add libc_hidden_def.
14290         * sysdeps/mach/hurd/rewinddir.c: Likewise.
14291         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
14292
14293         * include/dirent.h (__alloc_dir): Add flags parameter.
14294         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
14295         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
14296         __alloc_dir.
14297         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
14298         from fdopendir if O_CLOEXEC is already set.
14299
14300 2011-03-15  Alan Modra  <amodra@gmail.com>
14301
14302         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
14303         l_tls_firstbyte_offset non-zero.  Save padding offset in
14304         l_tls_firstbyte_offset for later use.
14305         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
14306         freeing static tls block.
14307
14308 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
14309
14310         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
14311         where #ifdef was intended.  The intent is to prevent ARG_MAX from
14312         being defined by the kernel headers.
14313
14314 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
14315
14316         [BZ #12734]
14317         * resolv/resolv.h: Define RES_NOTLDQUERY.
14318         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
14319         no-tld-query and set RES_NOTLDQUERY.
14320         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
14321         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
14322         modern BIND to search name as TLD unless forbidden.
14323
14324 2011-05-07  Petr Baudis  <pasky@suse.cz>
14325             Ulrich Drepper  <drepper@gmail.com>
14326
14327         [BZ #12393]
14328         * elf/dl-load.c (fillin_rpath): Move trusted path check...
14329         (is_trusted_path): ...to here.
14330         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
14331         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
14332         using is_trusted_path_normalize() in setuid scripts.
14333
14334 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14335
14336         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
14337         __BEGIN/__END_DECLS.
14338
14339 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
14340
14341         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
14342         NSS_STATUS_NOTFOUND if no record was found.
14343
14344 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14345
14346         * sunrpc/Makefile (headers): Add rpc/netdb.h.
14347         (headers-not-in-tirpc): Remove rpc/netdb.h
14348         * resolv/netdb.h: Revert last change.
14349
14350 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14351
14352         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
14353         circular dependency between libgcc.a and libc.a.
14354
14355 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14356
14357         * resolv/netdb.h: Don't include <rpc/netdb.h>.
14358         * nis/Makefile: Don't install rpcsvc/*.
14359         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
14360         instead of <rpc/types.h>.
14361         (MAXHOSTNAMELEN): Define.
14362
14363 2011-05-03  Andreas Schwab  <schwab@redhat.com>
14364
14365         * elf/ldconfig.c (add_dir): Don't crash on empty path.
14366
14367 2011-04-28  Maciej Babinski  <mbabinski@google.com>
14368
14369         [BZ #12714]
14370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
14371         gethostbyname4_r when IPv6 results are possible.
14372
14373 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
14374
14375         [BZ #12723]
14376         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
14377         _PC_PIPE_BUF handling.
14378
14379 2011-04-30  Bruno Haible  <bruno@clisp.org>
14380
14381         [BZ #12717]
14382         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
14383         * resolv/netdb.h (getnameinfo): Change type of flags parameter
14384         to 'int'.
14385         * inet/getnameinfo.c (getnameinfo): Likewise.
14386
14387 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
14388
14389         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
14390         to groups setting in database lookup.
14391         * nss/nsswitch.conf: Add initgroups entry.
14392
14393 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
14394
14395         [BZ #12685]
14396         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
14397         mode string.
14398         Patch by Eric Blake <eblake@redhat.com>.
14399
14400 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14401
14402         * sunrpc/Makefile (need-export-routines): Add svc_run.
14403         (routines): Remove svc_run.
14404         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
14405         * sunrpc/clnt_perr.c (clnt_perrno): Export.
14406         * sunrpc/svc_run.c (svc_run): Likewise.
14407         * sunrpc/svc_udp.c (svcudp_create): Likewise.
14408
14409 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
14410
14411         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
14412         problem in reallocation in last patch.
14413
14414 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
14415
14416         * sunrpc/Makefile: Move inclusion of Rules.
14417
14418 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14419
14420         * nss/nss_files/files-initgroups.c: New file.
14421         * nss/Makefile (libnss_files-routines): Add files-initgroups.
14422         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
14423         _nss_files_initgroups_dyn.
14424
14425 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
14426
14427         * elf/elf.h (R_ARM_IRELATIVE): Define.
14428
14429 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14430
14431         * po/ru.po: Update from translation team.
14432
14433 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14434
14435         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
14436         dependencies.
14437
14438 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
14439
14440         [BZ #12653]
14441         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
14442         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
14443         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14444         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14445         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14446
14447 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
14448
14449         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
14450         differing bytes.
14451         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14452         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14453         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14454
14455 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14456
14457         [BZ #12420]
14458         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
14459         storing it.
14460         * stdlib/bug-getcontext.c: New file.
14461         * stdlib/Makefile: Add rules to build and run bug-getcontext.
14462
14463 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14464
14465         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
14466         instructions into .machine "z9-109".
14467         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14468         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14469
14470 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14471
14472         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
14473         between environment variables and auxiliary vector.
14474
14475 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
14476
14477         * Makefile: Add rules to build linkobj/libc.so.
14478         * include/libc-symbols.h: Define libc_hidden_nolink.
14479         * include/rpc/auth.h: Mark functions which are to be hidden.
14480         * include/rpc/auth_des.h: Likewise.
14481         * include/rpc/auth_unix.h: Likewise.
14482         * include/rpc/clnt.h: Likewise.
14483         * include/rpc/des_crypt.h: Likewise.
14484         * include/rpc/key_prot.h: Likewise.
14485         * include/rpc/pmap_clnt.h: Likewise.
14486         * include/rpc/pmap_prot.h: Likewise.
14487         * include/rpc/pmap_rmt.h: Likewise.
14488         * include/rpc/rpc_msg.h: Likewise.
14489         * include/rpc/svc.h: Likewise.
14490         * include/rpc/svc_auth.h: Likewise.
14491         * include/rpc/xdr.h: Likewise.
14492         * nis/Makefile: Link all DSOs against linkobj/libc.so.
14493         * nss/Makefile: Likewise.
14494         * sunrpc/Makefile: Don't install headers.  Build library with normal
14495         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
14496         * sunrpc/auth_des.c: Hide exported symbols by default, export some
14497         for the compat linking library.  Remove use of INTDEF/INTUSE.
14498         * sunrpc/auth_none.c: Likewise.
14499         * sunrpc/auth_unix.c: Likewise.
14500         * sunrpc/authdes_prot.c: Likewise.
14501         * sunrpc/authuxprot.c: Likewise.
14502         * sunrpc/clnt_gen.c: Likewise.
14503         * sunrpc/clnt_perr.c: Likewise.
14504         * sunrpc/clnt_raw.c: Likewise.
14505         * sunrpc/clnt_simp.c: Likewise.
14506         * sunrpc/clnt_tcp.c: Likewise.
14507         * sunrpc/clnt_udp.c: Likewise.
14508         * sunrpc/clnt_unix.c: Likewise.
14509         * sunrpc/des_crypt.c: Likewise.
14510         * sunrpc/des_soft.c: Likewise.
14511         * sunrpc/get_myaddr.c: Likewise.
14512         * sunrpc/key_call.c: Likewise.
14513         * sunrpc/key_prot.c: Likewise.
14514         * sunrpc/netname.c: Likewise.
14515         * sunrpc/pm_getmaps.c: Likewise.
14516         * sunrpc/pm_getport.c: Likewise.
14517         * sunrpc/pmap_clnt.c: Likewise.
14518         * sunrpc/pmap_prot.c: Likewise.
14519         * sunrpc/pmap_prot2.c: Likewise.
14520         * sunrpc/pmap_rmt.c: Likewise.
14521         * sunrpc/publickey.c: Likewise.
14522         * sunrpc/rpc_cmsg.c: Likewise.
14523         * sunrpc/rpc_common.c: Likewise.
14524         * sunrpc/rpc_dtable.c: Likewise.
14525         * sunrpc/rpc_prot.c: Likewise.
14526         * sunrpc/rpc_thread.c: Likewise.
14527         * sunrpc/rtime.c: Likewise.
14528         * sunrpc/svc.c: Likewise.
14529         * sunrpc/svc_auth.c: Likewise.
14530         * sunrpc/svc_authux.c: Likewise.
14531         * sunrpc/svc_raw.c: Likewise.
14532         * sunrpc/svc_run.c: Likewise.
14533         * sunrpc/svc_simple.c: Likewise.
14534         * sunrpc/svc_tcp.c: Likewise.
14535         * sunrpc/svc_udp.c: Likewise.
14536         * sunrpc/svc_unix.c: Likewise.
14537         * sunrpc/svcauth_des.c: Likewise.
14538         * sunrpc/xcrypt.c: Likewise.
14539         * sunrpc/xdr.c: Likewise.
14540         * sunrpc/xdr_array.c: Likewise.
14541         * sunrpc/xdr_float.c: Likewise.
14542         * sunrpc/xdr_intXX_t.c: Likewise.
14543         * sunrpc/xdr_mem.c: Likewise.
14544         * sunrpc/xdr_rec.c: Likewise.
14545         * sunrpc/xdr_ref.c: Likewise.
14546         * sunrpc/xdr_sizeof.c: Likewise.
14547         * sunrpc/xdr_stdio.c: Likewise.
14548
14549 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
14550
14551         [BZ #12650]
14552         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
14553         * sysdeps/ia64/dl-tls.h: Likewise.
14554         * sysdeps/powerpc/dl-tls.h: Likewise.
14555         * sysdeps/s390/dl-tls.h: Likewise.
14556         * sysdeps/sh/dl-tls.h: Likewise.
14557         * sysdeps/sparc/dl-tls.h: Likewise.
14558         * sysdeps/x86_64/dl-tls.h: Likewise.
14559         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
14560
14561 2011-03-14  Andreas Schwab  <schwab@redhat.com>
14562
14563         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
14564         rpath element also skip the following colon.
14565         (expand_dynamic_string_token): Add is_path parameter and pass
14566         down to DL_DST_REQUIRED and _dl_dst_substitute.
14567         (decompose_rpath): Call expand_dynamic_string_token with
14568         non-zero is_path.  Ignore empty rpaths.
14569         (_dl_map_object_from_fd): Call expand_dynamic_string_token
14570         with zero is_path.
14571
14572 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
14573
14574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14575         Make cancelable.
14576
14577 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
14578
14579         [BZ #12655]
14580         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
14581         Patch by Filipe David Manana <fdmanana@apache.org>.
14582
14583 2011-04-07  Andreas Schwab  <schwab@redhat.com>
14584
14585         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
14586         Maintain aligned stack.
14587         (CHECK_RSP): Remove unused macro.
14588
14589 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
14590
14591         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
14592         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
14593
14594 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
14595
14596         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
14597
14598         * include/features.h: Mention __USE_XOPEN2K8 in comment.
14599
14600 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
14601
14602         [BZ #12518]
14603         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
14604         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
14605         * sysdeps/x86_64/memmove.c: New file.
14606         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
14607         (memcpy): Renamed to ...
14608         (__new_memcpy): This.
14609         (memcpy): Provide GLIBC_2_14 memcpy.
14610         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
14611         (memcpy): Provide GLIBC_2_2_5 memcpy.
14612
14613 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14614
14615         [BZ #12631]
14616         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
14617
14618 2011-03-30  Andreas Schwab  <schwab@redhat.com>
14619
14620         * misc/syncfs.c: New file.
14621         * misc/Makefile (routines): Add syncfs.
14622         * posix/unistd.h: Declare syncfs.
14623         * sysdeps/unix/syscalls.list: Add syncfs.
14624
14625 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14626
14627         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
14628         open_by_handle_at.
14629         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14630         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14631         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14632         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14633         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14634         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
14635         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14636
14637 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14638
14639         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
14640         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14641         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14642         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14643         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14644         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14645         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14646
14647         * io/Makefile: Compile fallocate.c, fallocate64.c, and
14648         sync_file_range.c with -fexceptions.
14649         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
14650         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
14651         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
14652         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
14653         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
14654         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
14655         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
14656         sync_file_range as cancellation point
14657         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
14658         now a wrapper around __call_sync_file_range with cancellation handling.
14659         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
14660         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
14661         function name to __call_sync_file_range.
14662         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
14663         Add call_sync_file_range.
14664
14665 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14666
14667         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14668         bits/timex.h.
14669
14670 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14671
14672         * iconv/iconv.h: Fix typo in comment.
14673         * io/fcntl.h: Likewise.
14674         * libio/stdio.h: Likewise.
14675         * posix/spawn.h: Likewise.
14676         * posix/unistd.h: Likewise.
14677         * stdlib/stdlib.h: Likewise.
14678         * time/time.h: Likewise.
14679         * wcsmbs/wchar.h: Likewise.
14680
14681         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
14682         open_by_handle): Add.
14683         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
14684         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
14685         Augment a few comments.
14686         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14687         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14688         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14689         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14690         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14691         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
14692         open_by_handle.
14693
14694         * io/fcntl.h (AT_EMPTY_PATH): Define.
14695
14696 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
14697
14698         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
14699         * sysdeps/unix/sysv/linux/bits/time.h: New file.
14700         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
14701         to...
14702         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
14703         * Versions.def: Add GLIBC_2.14.
14704         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
14705         Export.
14706
14707 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
14708
14709         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
14710         round counter.
14711         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14712
14713 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14714
14715         [BZ #12597]
14716         * string/test-strncmp.c (do_page_test): New function.
14717         (check2): Likewise.
14718         (test_main): Call check2.
14719         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
14720
14721 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
14722
14723         [BZ #12587]
14724         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
14725         Handle cache information in CPU leaf 4.
14726         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14727
14728 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
14729
14730         [BZ #12583]
14731         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
14732         character representation.
14733         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
14734
14735 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
14736
14737         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
14738         END(__isnan) to END(__isnanf) to match function entry point/label
14739         EALIGN(__isnanf,...).
14740
14741 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
14742
14743         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
14744
14745 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
14746
14747         [BZ #12510]
14748         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
14749         copy from the symbol referenced in the relocation to initialize the
14750         used variable.
14751         Patch by Piotr Bury <pbury@goahead.com>.
14752         * elf/Makefile: Add rules to build and tst-unique3.
14753         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
14754         * elf/tst-unique3.cc: New file.
14755         * elf/tst-unique3.h: New file.
14756         * elf/tst-unique3lib.cc: New file.
14757         * elf/tst-unique3lib2.cc: New file.
14758
14759         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
14760
14761 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
14762
14763         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
14764         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
14765         to _start.
14766
14767 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
14768
14769         * elf/dl-load.c (_dl_map_object): If we are looking for the first
14770         to-be-loaded object along a path to loader is ld.so.
14771
14772 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14773             Ulrich Drepper  <drepper@gmail.com>
14774
14775         * sysdeps/x86_64/memset.S: After aligning destination, code
14776         branches to different locations depending on the value of
14777         misalignment, when multiarch is enabled. Fix this.
14778
14779 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14780
14781         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
14782         Set _x86_64_preferred_memory_instruction for AMD processsors.
14783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14784         Set bit_Prefer_SSE_for_memop for AMD processors.
14785
14786 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
14787
14788         * libio/fmemopen.c (fmemopen): Optimize a bit.
14789
14790 2011-03-03  Andreas Schwab  <schwab@redhat.com>
14791
14792         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
14793
14794 2011-03-03  Roland McGrath  <roland@redhat.com>
14795
14796         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
14797
14798 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
14799
14800         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
14801         __bzero_ultra1 instead of __memset_ultra1.
14802
14803 2011-02-23  Andreas Schwab  <schwab@redhat.com>
14804             Ulrich Drepper  <drepper@gmail.com>
14805
14806         [BZ #12509]
14807         * include/link.h (struct link_map): Add l_orig_initfini.
14808         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
14809         returning unsuccessfully.
14810         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
14811         close of a file loaded at startup, restore the original l_initfini
14812         list.
14813         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
14814         list, store the pointer.
14815         * elf/Makefile ($(objpfx)noload-mem): New rule.
14816         (noload-ENV): Define.
14817         (tests): Add $(objpfx)noload-mem.
14818         * elf/noload.c: Include <memcheck.h>.
14819         (main): Call mtrace.  Close all opened handles.
14820
14821 2011-02-17  Andreas Schwab  <schwab@redhat.com>
14822
14823         [BZ #12454]
14824         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
14825         dependencies are missing.
14826
14827 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14828
14829         Fix __if_freereq crash: Unlike the generic version which uses free,
14830         Hurd needs munmap.
14831         * sysdeps/mach/hurd/ifreq.h: New file.
14832
14833 2011-01-27  Petr Baudis  <pasky@suse.cz>
14834             Ulrich Drepper  <drepper@gmail.com>
14835
14836         [BZ 12445]#
14837         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
14838         to extend_alloca().
14839         * stdio-common/bug23.c: New file.
14840         * stdio-common/Makefile (tests): Add bug23.
14841
14842 2010-09-28  Andreas Schwab  <schwab@redhat.com>
14843             Ulrich Drepper  <drepper@gmail.com>
14844
14845         [BZ #12489]
14846         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
14847         before performing relro protection.  At old place add assertion
14848         to make sure nothing changed.
14849
14850 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
14851             Glauber de Oliveira Costa  <glommer@gmail.com>
14852
14853         * elf/elf.h: Add new ARM TLS relocs.
14854
14855 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
14856
14857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
14858         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
14859         cast from r3.
14860         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
14861         'tests' variable.
14862         * sysdeps/wordsize-64/tst-writev.c: New file.
14863
14864 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
14865
14866         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
14867         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
14868         insns in _dl_start to prevent a TOC reference before relocs are
14869         resolved.
14870
14871 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
14872
14873         [BZ #12469]
14874         * Makeconfig: Remove RANLIB definition.
14875         * Makerules: Don't use RANLIB.
14876         * aclocal.m4: Remove ranlib test.
14877         * configure.in: No need to check for ranlib.
14878         * elf/rtld-Rules: Don't use RANLIB.
14879
14880 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14881
14882         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
14883         protection macro.
14884         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
14885         inclusion protection macro.
14886
14887         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
14888         SIGRTMIN and SIGRTMAX and print information in that case only when
14889         SIGRTMIN is defined.
14890
14891 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
14892
14893         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
14894         arginfo fn returning -1.
14895
14896         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
14897         and thousands string is zero terminated.
14898
14899 2011-02-03  Andreas Schwab  <schwab@redhat.com>
14900
14901         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
14902         sysdeps/unix/sysv/linux/bits/socket.h.
14903
14904 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14905
14906         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
14907         (__CPU_COUNT): Remove old macros.
14908         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
14909         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
14910         (__CPU_ALLOC, __CPU_FREE): Add macros.
14911         (__sched_cpualloc, __sched_cpufree): Add declarations.
14912
14913 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
14914
14915         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
14916         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
14917         * nscd/aicache.c (addhstaiX): Return timeout of added value.
14918         (readdhstai): Return value of addhstaiX call.
14919         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
14920         (addgrbyX): Return value returned by cache_addgr.
14921         (readdgrbyname): Return value returned by addgrbyX.
14922         (readdgrbygid): Likewise.
14923         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
14924         (addpwbyX): Return value returned by cache_addpw.
14925         (readdpwbyname): Return value returned by addhstbyX.
14926         (readdpwbyuid): Likewise.
14927         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
14928         (addservbyX): Return value returned by cache_addserv.
14929         (readdservbyname): Return value returned by addservbyX:
14930         (readdservbyport): Likewise.
14931         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
14932         (addhstbyX): Return value returned by cache_addhst.
14933         (readdhstbyname): Return value returned by addhstbyX.
14934         (readdhstbyaddr): Likewise.
14935         (readdhstbynamev6): Likewise.
14936         (readdhstbyaddrv6): Likewise.
14937         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
14938         (readdinitgroups): Return value returned by addinitgroupsX.
14939         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
14940         (prune_cache): Keep track of timeout value of re-added entries.
14941         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
14942         * nscd/nscd.h: Adjust prototypes of readd* functions.
14943
14944 2011-02-04  Roland McGrath  <roland@redhat.com>
14945
14946         * nis/nis_server.c (nis_servstate): Use the right name for 0.
14947         (nis_stats): Likewise.
14948         * nis/nis_modify.c (nis_modify): Likewise.
14949         * nis/nis_remove.c (nis_remove): Likewise.
14950         * nis/nis_add.c (nis_add): Likewise.
14951
14952         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
14953
14954         * posix/fnmatch_loop.c: Add some consts.
14955
14956         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
14957
14958 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
14959
14960         [BZ #12460]
14961         * config.make.in (config-cflags-novzeroupper): Define.
14962         * configure.in: Substitute libc_cv_cc_novzeroupper.
14963         * elf/Makefile (AVX-CFLAGS): Define.
14964         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
14965         (CFLAGS-tst-auditmod4a.c): Likewise.
14966         (CFLAGS-tst-auditmod4b.c): Likewise.
14967         (CFLAGS-tst-auditmod6b.c): Likewise.
14968         (CFLAGS-tst-auditmod6c.c): Likewise.
14969         (CFLAGS-tst-auditmod7b.c): Likewise.
14970         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
14971
14972 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
14973
14974         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
14975         function to the callback.
14976         Patch partly by Jiri Olsa <jolsa@redhat.com>.
14977
14978 2011-02-02  Andreas Schwab  <schwab@redhat.com>
14979
14980         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
14981         of errno.
14982
14983 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
14984
14985         [BZ #11724]
14986         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
14987         of constructors.
14988         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
14989         of destructors.
14990         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
14991
14992         [BZ #11724]
14993         * elf/Makefile: Add rules to build and run new test.
14994         * elf/tst-initorder.c: New file.
14995         * elf/tst-initorder.exp: New file.
14996         * elf/tst-initordera1.c: New file.
14997         * elf/tst-initordera2.c: New file.
14998         * elf/tst-initordera3.c: New file.
14999         * elf/tst-initordera4.c: New file.
15000         * elf/tst-initorderb1.c: New file.
15001         * elf/tst-initorderb2.c: New file.
15002         * elf/tst-order-a1.c: New file.
15003         * elf/tst-order-a2.c: New file.
15004         * elf/tst-order-a3.c: New file.
15005         * elf/tst-order-a4.c: New file.
15006         * elf/tst-order-b1.c: New file.
15007         * elf/tst-order-b2.c: New file.
15008         * elf/tst-order-main.c: New file.
15009         New test case by George Gensure <werkt0@gmail.com>.
15010
15011 2010-10-01  Andreas Schwab  <schwab@redhat.com>
15012
15013         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15014         decoding ACE if AI_CANONIDN.
15015
15016 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
15017
15018         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
15019
15020 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
15021
15022         * version.h (RELEASE): Bump for 2.13 release.
15023         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
15024
15025         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
15026
15027         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
15028         MADV_NOHUGEPAGE.
15029         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
15030         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
15031         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15032         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15033         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15034         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15035
15036         * posix/getconf.c: Update copyright year.
15037         * catgets/gencat.c: Likewise.
15038         * csu/version.c: Likewise.
15039         * debug/catchsegv.sh: Likewise.
15040         * debug/xtrace.sh: Likewise.
15041         * elf/ldconfig.c: Likewise.
15042         * elf/ldd.bash.in: Likewise.
15043         * elf/sprof.c (print_version): Likewise.
15044         * iconv/iconv_prog.c: Likewise.
15045         * iconv/iconvconfig.c: Likewise.
15046         * locale/programs/locale.c: Likewise.
15047         * locale/programs/localedef.c: Likewise.
15048         * malloc/memusage.sh: Likewise.
15049         * malloc/mtrace.pl: Likewise.
15050         * nscd/nscd.c (print_version): Likewise.
15051         * nss/getent.c: Likewise.
15052
15053         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
15054         PF_CAIF, and PF_ALG.
15055         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15056
15057 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
15058
15059         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
15060         (modules-names): Use them.
15061         (ifunc-test-modules, ifunc-pie-tests): Define.
15062         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
15063         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
15064         (test-extras): Likewise.
15065         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
15066         $(compile-command.c).
15067         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
15068         (all-built-dso): Define.
15069         (check-textrel.out, check-execstack.out): Depend on it.
15070
15071         * configure.in: Don't override --enable-multi-arch.
15072
15073 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
15074
15075         [BZ #6812]
15076         * nscd/hstcache.c (tryagain): Define.
15077         (cache_addhst): Return tryagain not notfound for temporary errors.
15078         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
15079         failed.
15080
15081 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
15082
15083         [BZ #10563]
15084         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
15085         to make the syscall.
15086         * sysdeps/unix/sysv/linux/setgroups.c: New file.
15087
15088         [BZ #12378]
15089         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
15090         and fall back to matching as normal character if the string ends before
15091         the matching ']' is found.  This is what POSIX requires.
15092         * posix/testfnm.c: Adjust test result.
15093         * posix/globtest.sh: Adjust test result.  Add new test.
15094         * posix/tst-fnmatch.input: Likewise.
15095         * posix/tst-fnmatch2.c: Add new test.
15096
15097 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
15098
15099         * elf/Makefile (check-execstack): Revert last change.  Depend on
15100         check-execstack.h.
15101         (check-execstack.h): New target.
15102         (generated): Add check-execstack.h.
15103         * elf/check-execstack.c: Include "check-execstack.h".
15104         (main): Revert last change.
15105         (handle_file): Return zero if GNU_STACK is absent and
15106         DEFAULT_STACK_PERMS doesn't include PF_X.
15107
15108 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
15109
15110         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
15111         in child fails because the descriptor is already closed.
15112         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
15113         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
15114         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
15115
15116         [BZ #12397]
15117         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
15118         syscall.
15119
15120         [BZ #10484]
15121         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
15122         temporary buffer used to handle multi lookups locally.
15123         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
15124
15125 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15126
15127         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
15128         loader is ld.so.
15129
15130 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
15131
15132         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
15133         alignment for SSE2.
15134
15135 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15136
15137         [BZ #12394]
15138         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
15139         characters.  When rounding increased number of integer digits recompute
15140         number of groups.
15141         * stdio-common/tst-grouping.c: New file.
15142         * stdio-common/Makefile: Add rules to build and run tst-grouping.
15143
15144 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
15145
15146         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
15147         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
15148
15149         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
15150         void.
15151         * bits/select.h: Likewise.
15152
15153 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
15154
15155         * po/ja.po: Update from translation team.
15156
15157 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
15158
15159         [BZ #11155]
15160         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
15161         implementation just like for lxstat, fxstatat, et al.
15162
15163 2010-12-27  Jim Meyering  <meyering@redhat.com>
15164
15165         [BZ #12348]
15166         * posix/regexec.c (build_trtable): Return failure indication upon
15167         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15168
15169 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
15170
15171         [BZ #12201]
15172         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
15173         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
15174         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
15175         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
15176
15177         [BZ #12207]
15178         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
15179
15180         [BZ #12204]
15181         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
15182         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
15183
15184 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
15185
15186         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
15187         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
15188         script has SORT_BY_INIT_PRIORITY.
15189         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
15190         NO_CTORS_DTORS_SECTIONS is defined.
15191         * elf/soinit.c: Likewise.
15192         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
15193         NO_CTORS_DTORS_SECTIONS is defined.
15194         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
15195         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
15196         * sysdeps/sh/init-first.c: Likewise.
15197         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
15198
15199 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
15200
15201         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
15202         always use the slow path.
15203
15204 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
15205
15206         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
15207         similar rule which adds the sysdep directories to the header search in
15208         order to pick up the correct platform stackinfo.h.
15209         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
15210         perform test if it is, otherwise return successfully without testing.
15211         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
15212         DEFAULT_STACK_PERMS define in stackinfo.h.
15213         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
15214         defined in stackinfo.h.
15215         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
15216         DEFAULT_STACK_PERMS defined in stackinfo.h.
15217         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
15218         * sysdeps/ia64/stackinfo.h: Likewise.
15219         * sysdeps/s390/stackinfo.h: Likewise.
15220         * sysdeps/sh/stackinfo.h: Likewise.
15221         * sysdeps/sparc/stackinfo.h: Likewise.
15222         * sysdeps/x86_64/stackinfo.h: Likewise.
15223         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
15224         PF_X for powerpc64.  Retain PF_X for powerpc32.
15225
15226 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
15227
15228         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
15229         accurately.
15230         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
15231         GETDENTS_64BIT_ALIGNED.
15232
15233 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
15234
15235         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
15236
15237 2010-12-10  Andreas Schwab  <schwab@redhat.com>
15238
15239         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
15240         _GNU_SOURCE.
15241
15242         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
15243         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
15244         Remove __restrict.
15245         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
15246         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
15247
15248 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
15249
15250         [BZ #11655]
15251         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
15252         are initialized.
15253
15254 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
15255
15256         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
15257
15258 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
15259
15260         * po/it.po: Update from translation team.
15261
15262 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
15263
15264         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
15265         unused codes.
15266
15267 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
15268
15269         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
15270
15271 2010-11-24  Andreas Schwab  <schwab@redhat.com>
15272
15273         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
15274         specially.
15275         (gaih_getanswer_slice): Likewise.
15276
15277 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
15278
15279         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
15280
15281 2010-05-31  Petr Baudis  <pasky@suse.cz>
15282
15283         [BZ #11149]
15284         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
15285         silently even in the chroot mode.
15286
15287 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
15288
15289         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
15290         last patch a bit.  Pretty printing
15291
15292 2010-05-31  Petr Baudis <pasky@suse.cz>
15293
15294         [BZ #10085]
15295         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
15296         initialization of skip_initgroups_dyn.
15297
15298 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
15299
15300         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
15301         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15302
15303 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
15304
15305         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
15306
15307 2010-11-11  Andreas Schwab  <schwab@redhat.com>
15308
15309         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
15310         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
15311         (tst-fnmatch-ENV): Set MALLOC_TRACE.
15312         ($(objpfx)tst-fnmatch-mem): New rule.
15313         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
15314         * posix/tst-fnmatch.c (main): Call mtrace.
15315
15316 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
15317
15318         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15319         Support Intel processor model 6 and model 0x2c.
15320
15321 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
15322
15323         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
15324           signed comparison.
15325
15326 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
15327
15328         [BZ #12205]
15329         * string/test-strncasecmp.c (check_result): New function.
15330         (do_one_test): Use it.
15331         (check1): New function.
15332         (test_main): Use it.
15333         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
15334         Support strcasecmp and strncasecmp.
15335
15336 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
15337
15338         [BZ #12194]
15339         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
15340         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15341
15342 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15343
15344         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
15345         IFUNC support.
15346         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15347         memset-x86-64.
15348         * sysdeps/x86_64/multiarch/bzero.S: New file.
15349         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
15350         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
15351         * sysdeps/x86_64/multiarch/memset.S: New file.
15352         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
15353         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15354         Set bit_Prefer_SSE_for_memop for Intel processors.
15355         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
15356         Define.
15357         (index_Prefer_SSE_for_memop): Define.
15358         (HAS_PREFER_SSE_FOR_MEMOP): Define.
15359
15360 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
15361
15362         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
15363         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
15364
15365 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
15366
15367         [BZ #12191]
15368         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15369         (__x86_64_raw_data_cache_size_half): Likewise.
15370         (__x86_64_raw_shared_cache_size): Likewise.
15371         (__x86_64_raw_shared_cache_size_half): Likewise.
15372
15373         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15374         (__x86_64_raw_data_cache_size_half): Likewise.
15375         (__x86_64_raw_shared_cache_size): Likewise.
15376         (__x86_64_raw_shared_cache_size_half): Likewise.
15377         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
15378         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
15379         and __x86_64_raw_shared_cache_size_half.  Round
15380         __x86_64_data_cache_size_half, __x86_64_data_cache_size
15381         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
15382         to multiple of 256 bytes.
15383
15384 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
15385
15386         [BZ #12167]
15387         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
15388         of inacessible symlinks.  Verify result of symlink before returning it.
15389         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15390         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
15391
15392 2010-10-28  Erich Ritz  <erichritz@gmail.com>
15393
15394         * math/math.h (isinf): Fix typo in comment.
15395
15396 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
15397
15398         * po/da.po: Update from translation team.
15399
15400 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
15401
15402         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
15403         is added to the list.
15404
15405 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15406             Ulrich Drepper  <drepper@gmail.com>
15407
15408         * elf/dl-object.c (_dl_new_object): Don't append the new object to
15409         the global list here.  Move code to...
15410         (_dl_add_to_namespace_list): ...here.  New function.
15411         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
15412         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
15413         * elf/dl-load.c (lose): Don't remove the element from the list.
15414         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
15415         (_dl_map_object): Likewise.
15416
15417 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
15418
15419         [BZ #12159]
15420         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
15421         into all bytes of SSE register.
15422         Patch by Richard Li <richardpku@gmail.com>.
15423
15424 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
15425
15426         [BZ #12140]
15427         * malloc/malloc.c (_int_free): Fill correct number of bytes when
15428         perturbing.
15429
15430 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
15431
15432         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
15433         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
15434         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
15435         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
15437         submachine.
15438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15439
15440 2010-10-22  Andreas Schwab  <schwab@redhat.com>
15441
15442         * include/dlfcn.h (__RTLD_SECURE): Define.
15443         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
15444         mode & __RTLD_SECURE instead.
15445         (open_path): Rename preloaded parameter to secure.
15446         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
15447         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
15448         * elf/dl-deps.c (openaux): Likewise.
15449         * elf/rtld.c (struct map_args): Remove is_preloaded.
15450         (map_doit): Don't use it.
15451         (dl_main): Likewise.
15452         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
15453         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
15454
15455 2010-09-09  Andreas Schwab  <schwab@redhat.com>
15456
15457         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
15458         (sysd-rules-targets): Remove duplicates.
15459         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
15460         rtld-%.$o dependency.
15461
15462 2010-10-18  Andreas Schwab  <schwab@redhat.com>
15463
15464         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
15465         _dl_map_object do it.
15466
15467 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
15468
15469         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
15470         fast fma builtins, define the macros in the C99 standard.
15471         (FP_FAST_FMAF): Likewise.
15472         (FP_FAST_FMAL): Likewise.
15473         * sysdeps/x86_64/bits/mathdef.h: Likewise.
15474
15475         * bits/mathdef.h: Update copyright year.
15476         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15477
15478 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15479
15480         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
15481         builtins, define the macros in the C99 standard.
15482         (FP_FAST_FMAF): Likewise.
15483         (FP_FAST_FMAL): Likewise.
15484         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
15485         multiply/add.
15486         (FP_FAST_FMAF): Likewise.
15487
15488 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
15489
15490         [BZ #3268]
15491         * math/libm-test.inc (fma_test): Some new testcases.
15492         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
15493         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
15494         y and infinite z.  Do multiplication by C already in long double.
15495         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
15496         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
15497         y and infinite z.  Do bitwise or of inexact bit into u.d.
15498         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
15499         * sysdeps/i386/fpu/s_fmaf.S: Removed.
15500         * sysdeps/i386/fpu/s_fma.S: Removed.
15501         * sysdeps/i386/fpu/s_fmal.S: Removed.
15502
15503 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
15504
15505         [BZ #3268]
15506         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
15507         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
15508         computation is not scheduled after fetestexcept.  Fix value
15509         of minimum denormal long double.
15510
15511 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
15512
15513         [BZ #3268]
15514         * math/libm-test.inc (fma_test): Add some more tests.
15515         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
15516         correctly.
15517
15518 2010-10-15  Andreas Schwab  <schwab@redhat.com>
15519
15520         * scripts/data/localplt-s390-linux-gnu.data: New file.
15521         * scripts/data/localplt-s390x-linux-gnu.data: New file.
15522
15523 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
15524
15525         [BZ #3268]
15526         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
15527         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
15528         instead of dbl-64.
15529         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
15530         inlines.
15531         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
15532         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
15533         if one of x and y is very large and the other is subnormal.
15534         * sysdeps/s390/fpu/s_fmaf.c: New file.
15535         * sysdeps/s390/fpu/s_fma.c: New file.
15536         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
15537         * sysdeps/powerpc/fpu/s_fma.S: New file.
15538         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
15539         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
15540         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
15541
15542 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
15543
15544         [BZ #3268]
15545         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
15546         fma tests.
15547         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
15548         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
15549         * sysdeps/i386/i686/multiarch/s_fma.c: Include
15550         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
15551         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
15552         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
15553         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
15554
15555 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
15556
15557         [BZ #12078]
15558         * posix/regcomp.c (parse_branch): One more memory leak plugged.
15559         * posix/bug-regex31.input: Add test case.
15560
15561 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15562
15563         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
15564         * posix/bug-regex31.input: New file.
15565
15566         [BZ #12078]
15567         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
15568         (parse_sub_exp): Fix last change, use postorder.
15569
15570         * posix/bug-regex31.c: New file.
15571         * posix/Makefile: Add rules to build and run bug-regex31.
15572
15573         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
15574
15575         [BZ #12078]
15576         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
15577
15578         [BZ #12108]
15579         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
15580         to have entries in sys_siglist.
15581
15582         [BZ #12093]
15583         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
15584         be NULL.
15585
15586 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
15587
15588         [BZ #3268]
15589         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
15590         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
15591         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
15592         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
15593         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15594         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
15595         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
15596         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
15597         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
15598         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
15599         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
15600         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
15601         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
15602         * math/ftestexcept.c (fetestexcept): Likewise.
15603         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
15604         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
15605         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
15606         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
15607         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
15608         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
15609         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
15610
15611 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15612
15613         [BZ #12107]
15614         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
15615         newline.
15616
15617 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
15618
15619         * string/bug-strstr1.c: New file.
15620         * string/Makefile: Add rules to build and run bug-strstr1.
15621
15622 2010-10-05  Eric Blake  <eblake@redhat.com>
15623
15624         [BZ #12092]
15625         * string/str-two-way.h (two_way_long_needle): Always clear memory
15626         when skipping input due to the shift table.
15627
15628 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
15629
15630         [BZ #12005]
15631         * malloc/mcheck.c: Handle large requests.
15632
15633         [BZ #12077]
15634         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
15635         for strncmp and strncasecmp.
15636         * string/stratcliff.c: Add tests for strcmp and strncmp.
15637         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
15638
15639 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15640
15641         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
15642         __set_fpscr.
15643
15644 2010-09-30  Andreas Jaeger  <aj@suse.de>
15645
15646         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
15647         (CGROUP_SUPER_MAGIC): Define.
15648         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15649         Handle btrfs and cgroup file systems.
15650         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
15651         Likewise.
15652
15653 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
15654
15655         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
15656         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
15657
15658 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15659
15660         [BZ #12067]
15661         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
15662         trying to locate the ELF header.
15663
15664 2010-09-27  Andreas Schwab  <schwab@redhat.com>
15665
15666         [BZ #11611]
15667         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
15668         Mask out sign-bit copies when constructing f_fsid.
15669
15670 2010-09-24  Petr Baudis <pasky@suse.cz>
15671
15672         * debug/stack_chk_fail_local.c: Add missing licence exception.
15673         * debug/warning-nop.c: Likewise.
15674
15675 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
15676
15677         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
15678         implementing getdents64 using getdents syscall, set d_type if
15679         __ASSUME_GETDENTS32_D_TYPE.
15680
15681 2010-09-16  Andreas Schwab  <schwab@redhat.com>
15682
15683         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
15684         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
15685
15686 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
15687
15688         [BZ #12037]
15689         * posix/unistd.h: Undo change of feature selection for ftruncate from
15690         2010-01-11.
15691
15692 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
15693
15694         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
15695         detection.
15696
15697 2010-09-20  Andreas Schwab  <schwab@redhat.com>
15698
15699         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
15700         fanotify_mark.
15701         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
15702
15703 2010-09-14  Andreas Schwab  <schwab@redhat.com>
15704
15705         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
15706         variables after CHECK_SP call.
15707         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
15708
15709 2010-09-13  Andreas Schwab  <schwab@redhat.com>
15710             Ulrich Drepper  <drepper@redhat.com>
15711
15712         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
15713         re-relocationg ld.so.
15714         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
15715         _dl_init_paths call.
15716         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
15717         here anymore.
15718
15719 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
15720
15721         * resolv/res_init.c (__res_vinit): Count the default server we added.
15722
15723 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
15724             Ulrich Drepper  <drepper@redhat.com>
15725
15726         [BZ #11968]
15727         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15728         (____longjmp_chk): Use %ebx for saving value across system call.
15729         Add unwind info.
15730
15731 2010-09-06  Andreas Schwab  <schwab@redhat.com>
15732
15733         * manual/Makefile: Don't mix pattern rules with normal rules.
15734
15735 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15736
15737         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
15738         operation.
15739         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15740         * libio/iofopncook.c (_IO_cookie_init): Likewise.
15741         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15742         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15743         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15744         Likewise.
15745
15746 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
15747
15748         [BZ #11979]
15749         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
15750         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
15751
15752 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
15753
15754         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
15755         * sysdeps/x86_64/addmul_1.S: Likewise.
15756         * sysdeps/x86_64/lshift.S: Likewise.
15757         * sysdeps/x86_64/mul_1.S: Likewise.
15758         * sysdeps/x86_64/rshift.S: Likewise.
15759         * sysdeps/x86_64/sub_n.S: Likewise.
15760         * sysdeps/x86_64/submul_1.S: Likewise.
15761
15762 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15763
15764         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
15765         Define __sched_param instead of SCHED_* and sched_param when
15766         <bits/sched.h> is included with __need_schedparam defined.
15767         * bits/sched.h [__need_schedparam]
15768         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
15769         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
15770         (__defined_schedparam): Define to 1.
15771         (__sched_param): New structure, identical to sched_param.
15772         (__need_schedparam): Undefine.
15773
15774 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
15775
15776         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
15777         (epoll_create1): Declare.
15778
15779         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
15780
15781 2010-08-31  Andreas Schwab  <schwab@redhat.com>
15782
15783         [BZ #7066]
15784         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
15785         shifting retval into place.
15786
15787 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
15788
15789         * nis/rpcsvc/nis.h: Update copyright notice.
15790         * nis/rpcsvc/nis.x: Likewise.
15791         * nis/rpcsvc/nis_callback.h: Likewise.
15792         * nis/rpcsvc/nis_callback.x: Likewise.
15793         * nis/rpcsvc/nis_object.x: Likewise.
15794         * nis/rpcsvc/nis_tags.h: Likewise.
15795         * nis/rpcsvc/yp.h: Likewise.
15796         * nis/rpcsvc/yp.x: Likewise.
15797         * nis/rpcsvc/ypupd.h: Likewise.
15798         * nis/yp_xdr.c: Likewise.
15799         * nis/ypupdate_xdr.c: Likewise.
15800
15801         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
15802         mainly the body of pmap_getport.  Add parameters to specify timeouts.
15803         (pmap_getport): Use __libc_rpc_getport.
15804         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
15805         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
15806         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
15807
15808 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
15809
15810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
15811         fanotify_mark.
15812
15813 2010-08-27  Roland McGrath  <roland@redhat.com>
15814
15815         * sysdeps/i386/i686/multiarch/Makefile
15816         (CFLAGS-varshift.c): New variable.
15817
15818 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
15819
15820         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
15821         * sysdeps/i386/i686/multiarch/varshift.c: New file.
15822
15823         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
15824
15825         * sysdeps/x86_64/strlen.S: Minimal code improvement.
15826
15827 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
15828
15829         * sysdeps/x86_64/strlen.S: Unroll the loop.
15830         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15831         strlen-sse2 strlen-sse2-bsf.
15832         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
15833         __strlen_no_bsf if bit_Slow_BSF is set.
15834         (__strlen_sse42): Removed.
15835         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
15836         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
15837
15838 2010-08-25  Roland McGrath  <roland@redhat.com>
15839
15840         * sysdeps/x86_64/multiarch/varshift.S: File removed.
15841         * sysdeps/x86_64/multiarch/varshift.c: New file.
15842         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
15843         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
15844         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
15845         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
15846
15847 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
15848
15849         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15850         strlen-sse2 strlen-sse2-bsf.
15851         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
15852         __strlen_sse2_bsf if bit_Slow_BSF is unset.
15853         (__strlen_sse2): Removed.
15854         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
15855         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
15856         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15857         bit_Slow_BSF for Atom.
15858         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
15859         (index_Slow_BSF): Define.
15860         (HAS_SLOW_BSF): Define.
15861
15862 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
15863
15864         [BZ #10851]
15865         * resolv/res_init.c (__res_vinit): When no server address at all
15866         is given default to loopback.
15867
15868 2010-08-24  Roland McGrath  <roland@redhat.com>
15869
15870         * configure.in: Remove config-name.h generation.
15871         * configure: Regenerated.
15872         * config-name.in: File removed.
15873         * scripts/config-uname.sh: New file.
15874         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
15875         ($(objdir)config-name.h): New target.
15876
15877         * sunrpc/rpc_parse.h: Avoid nested comment.
15878
15879 2010-08-24  Richard Henderson  <rth@redhat.com>
15880             Ulrich Drepper  <drepper@redhat.com>
15881             H.J. Lu  <hongjiu.lu@intel.com>
15882
15883         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
15884         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
15885         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
15886         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
15887         _mm_alignr_epi8 with _mm_loadu_si128.
15888         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
15889         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
15890         (__m128i_shift_right): Removed.
15891         * sysdeps/i386/i686/multiarch/varshift.h: New file.
15892         * sysdeps/i386/i686/multiarch/varshift.S: New file.
15893         * sysdeps/x86_64/multiarch/varshift.h: New file.
15894         * sysdeps/x86_64/multiarch/varshift.S: New file.
15895
15896 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
15897
15898         * configure.in: Move assembler checks to before sysdep dir checking.
15899
15900 2010-08-20  Petr Baudis  <pasky@suse.cz>
15901
15902         * LICENSES: Sync the sunrpc license.
15903
15904 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
15905
15906         * sunrpc/auth_des.c: Update copyright notice once again.
15907         * sunrpc/auth_none.c: Likewise.
15908         * sunrpc/auth_unix.c: Likewise.
15909         * sunrpc/authdes_prot.c: Likewise.
15910         * sunrpc/authuxprot.c: Likewise.
15911         * sunrpc/bindrsvprt.c: Likewise.
15912         * sunrpc/clnt_gen.c: Likewise.
15913         * sunrpc/clnt_perr.c: Likewise.
15914         * sunrpc/clnt_raw.c: Likewise.
15915         * sunrpc/clnt_simp.c: Likewise.
15916         * sunrpc/clnt_tcp.c: Likewise.
15917         * sunrpc/clnt_udp.c: Likewise.
15918         * sunrpc/clnt_unix.c: Likewise.
15919         * sunrpc/des_crypt.c: Likewise.
15920         * sunrpc/des_soft.c: Likewise.
15921         * sunrpc/get_myaddr.c: Likewise.
15922         * sunrpc/getrpcport.c: Likewise.
15923         * sunrpc/key_call.c: Likewise.
15924         * sunrpc/key_prot.c: Likewise.
15925         * sunrpc/openchild.c: Likewise.
15926         * sunrpc/pm_getmaps.c: Likewise.
15927         * sunrpc/pm_getport.c: Likewise.
15928         * sunrpc/pmap_clnt.c: Likewise.
15929         * sunrpc/pmap_prot.c: Likewise.
15930         * sunrpc/pmap_prot2.c: Likewise.
15931         * sunrpc/pmap_rmt.c: Likewise.
15932         * sunrpc/rpc/auth.h: Likewise.
15933         * sunrpc/rpc/auth_unix.h: Likewise.
15934         * sunrpc/rpc/clnt.h: Likewise.
15935         * sunrpc/rpc/des_crypt.h: Likewise.
15936         * sunrpc/rpc/key_prot.h: Likewise.
15937         * sunrpc/rpc/netdb.h: Likewise.
15938         * sunrpc/rpc/pmap_clnt.h: Likewise.
15939         * sunrpc/rpc/pmap_prot.h: Likewise.
15940         * sunrpc/rpc/pmap_rmt.h: Likewise.
15941         * sunrpc/rpc/rpc.h: Likewise.
15942         * sunrpc/rpc/rpc_des.h: Likewise.
15943         * sunrpc/rpc/rpc_msg.h: Likewise.
15944         * sunrpc/rpc/svc.h: Likewise.
15945         * sunrpc/rpc/svc_auth.h: Likewise.
15946         * sunrpc/rpc/types.h: Likewise.
15947         * sunrpc/rpc/xdr.h: Likewise.
15948         * sunrpc/rpc_clntout.c: Likewise.
15949         * sunrpc/rpc_cmsg.c: Likewise.
15950         * sunrpc/rpc_common.c: Likewise.
15951         * sunrpc/rpc_cout.c: Likewise.
15952         * sunrpc/rpc_dtable.c: Likewise.
15953         * sunrpc/rpc_hout.c: Likewise.
15954         * sunrpc/rpc_main.c: Likewise.
15955         * sunrpc/rpc_parse.c: Likewise.
15956         * sunrpc/rpc_parse.h: Likewise.
15957         * sunrpc/rpc_prot.c: Likewise.
15958         * sunrpc/rpc_sample.c: Likewise.
15959         * sunrpc/rpc_scan.c: Likewise.
15960         * sunrpc/rpc_scan.h: Likewise.
15961         * sunrpc/rpc_svcout.c: Likewise.
15962         * sunrpc/rpc_tblout.c: Likewise.
15963         * sunrpc/rpc_util.c: Likewise.
15964         * sunrpc/rpc_util.h: Likewise.
15965         * sunrpc/rpcinfo.c: Likewise.
15966         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
15967         * sunrpc/rpcsvc/key_prot.x: Likewise.
15968         * sunrpc/rpcsvc/klm_prot.x: Likewise.
15969         * sunrpc/rpcsvc/mount.x: Likewise.
15970         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
15971         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
15972         * sunrpc/rpcsvc/rex.x: Likewise.
15973         * sunrpc/rpcsvc/rstat.x: Likewise.
15974         * sunrpc/rpcsvc/rusers.x: Likewise.
15975         * sunrpc/rpcsvc/sm_inter.x: Likewise.
15976         * sunrpc/rpcsvc/spray.x: Likewise.
15977         * sunrpc/rpcsvc/yppasswd.x: Likewise.
15978         * sunrpc/rtime.c: Likewise.
15979         * sunrpc/svc.c: Likewise.
15980         * sunrpc/svc_auth.c: Likewise.
15981         * sunrpc/svc_authux.c: Likewise.
15982         * sunrpc/svc_raw.c: Likewise.
15983         * sunrpc/svc_run.c: Likewise.
15984         * sunrpc/svc_simple.c: Likewise.
15985         * sunrpc/svc_tcp.c: Likewise.
15986         * sunrpc/svc_udp.c: Likewise.
15987         * sunrpc/svc_unix.c: Likewise.
15988         * sunrpc/svcauth_des.c: Likewise.
15989         * sunrpc/xcrypt.c: Likewise.
15990         * sunrpc/xdr.c: Likewise.
15991         * sunrpc/xdr_array.c: Likewise.
15992         * sunrpc/xdr_float.c: Likewise.
15993         * sunrpc/xdr_mem.c: Likewise.
15994         * sunrpc/xdr_rec.c: Likewise.
15995         * sunrpc/xdr_ref.c: Likewise.
15996         * sunrpc/xdr_sizeof.c: Likewise.
15997         * sunrpc/xdr_stdio.c: Likewise.
15998
15999         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
16000         handling.
16001
16002 2010-08-19  Andreas Schwab  <schwab@redhat.com>
16003
16004         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
16005
16006 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
16007
16008         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
16009         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
16010         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
16011         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
16012         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
16013         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
16014         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
16015         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
16016         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
16017         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
16018         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
16019         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
16020         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
16021         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
16022
16023 2010-07-26  Anton Blanchard  <anton@samba.org>
16024
16025         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
16026         * malloc/arena.c (heap_trim): Likewise.
16027
16028 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
16029
16030         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
16031         here.  Not...
16032         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
16033         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
16034
16035 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
16036
16037         * sysdeps/i386/elf/Makefile: New file.
16038
16039 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16040
16041         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
16042         from fanotify_init.
16043         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
16044         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16045
16046 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
16047
16048         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
16049         of strncasecmp_l.
16050         * sysdeps/multiarch/strcmp.S: Likewise.
16051
16052 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
16053
16054         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16055         strncase_l-nonascii.
16056         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16057         Add strncase_l-ssse3.
16058         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
16059         * sysdeps/x86_64/strcmp.S: Likewise.
16060         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
16061         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
16062         * sysdeps/x86_64/strncase.S: New file.
16063         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
16064         * sysdeps/x86_64/strncase_l.S: New file.
16065         * string/Makefile (strop-tests): Add strncasecmp.
16066         * string/test-strncasecmp.c: New file.
16067
16068         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
16069         warning.
16070
16071         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
16072         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
16073
16074 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16075
16076         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
16077
16078 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
16079
16080         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
16081         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
16082         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
16083
16084 2010-05-01  Alan Modra  <amodra@gmail.com>
16085
16086         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
16087         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
16088         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
16089         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
16090         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
16091         tidying.  Don't tail-call __sigjmp_save for static lib.
16092         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
16093         save location.
16094         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
16095         (CALL_MCOUNT): Add eh info, and nop after bl.
16096         (TAIL_CALL_SYSCALL_ERROR): New macro.
16097         (PSEUDO_RET): Use it.
16098         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
16099         Correct save location of integer regs and cr.
16100         (_dl_profile_resolve): Correct cr save location.  Delete nops
16101         after bl when SHARED.  Reduce cfi size a little by better
16102         placement of cfi directives.
16103         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
16104         make a stack frame.  Instead use parm save area as a temp.
16105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
16106         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
16107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16108         Don't make a stack frame for parent, use parm save area.
16109         Increase child stack frame to 112 bytes.  Don't save unused reg,
16110         and adjust reg usage.  Set up cfi on error recovery and
16111         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
16112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16113         (__makecontext): Add dummy nop after jump to exit.
16114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
16115         Use correct parm save area and cr save, reduce stack frame.
16116         Correct cfi for possible PSEUDO_RET frame setup.
16117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
16118         Branch to local label emitted by PSEUDO_RET rather than
16119         __syscall_error.
16120
16121 2010-08-12  Andreas Schwab  <schwab@redhat.com>
16122
16123         [BZ #11904]
16124         * locale/programs/locale.c (print_assignment): New function.
16125         (show_locale_vars): Use it.
16126
16127 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
16128
16129         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
16130         field.
16131         (struct statfs64): Likewise.
16132         (_STATFS_F_FLAGS): Define.
16133         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
16134         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16135         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
16136         (ST_VALID): Define locally.
16137         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
16138         __statvfs_getflags, use the provided value.
16139         * sysdeps/unix/sysv/linux/kernel-features.h: Define
16140         __ASSUME_STATFS_F_FLAGS.
16141
16142         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
16143
16144         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
16145         Add sys/fanotify.h.
16146         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
16147         fanotify_mask for GLIBC_2.13.
16148         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
16149         fanotify_init and fanotify_mark.
16150         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16151         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
16152
16153         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
16154         Add prlimit.
16155         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
16156         prlimit64 for GLIBC_2.13.
16157         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
16158         prlimit64.
16159         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
16160         syscall.
16161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16162         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16163         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
16164         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
16165         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
16166         add prlimit alias.
16167         * sysdeps/unix/sysv/linux/prlimit.c: New file.
16168
16169         [BZ #11903]
16170         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
16171         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
16172
16173         * nss/Makefile: Add rules to build and run tst-nss-test1.
16174         * shlib-versions: Add entry for libnss_test1.
16175         * nss/nss_test1.c: New file.
16176         * nss/tst-nss-test1.c: New file.
16177
16178         * nss/nsswitch.c (__nss_database_custom): Define new variable.
16179         (__nss_configure_lookup): Set appropriate entry in
16180         __nss_configure_lookup to true.
16181         * nss/nsswitch.h: Define enum with indeces of databases in
16182         databases and __nss_database_custom arrays.  Declare
16183         __nss_database_custom.
16184         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
16185         to avoid using nscd when custom rules are installed.
16186         * nss/getXXbyYY_r.c: Likewise.
16187         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
16188
16189         * nss/nss_files/files-parse.c: Whitespace fixes.
16190
16191 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
16192
16193         [BZ #11883]
16194         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
16195         * posix/fnmatch_loop.c: Likewise.
16196
16197 2010-07-17  Andi Kleen  <ak@linux.intel.com>
16198
16199         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
16200         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
16201         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
16202         * Versions.def [GLIBC_2.13]: Add.
16203
16204 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
16205
16206         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16207         Also fail if tpwd after pwuid call is NULL.
16208
16209 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16210
16211         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
16212         when converting to ms.
16213
16214 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16215
16216         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
16217         EOPNOTSUPP errors with ENOTTY.
16218         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
16219         EOPNOTSUPP errors with ENOTTY.
16220
16221 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
16222
16223         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16224         Add strcasecmp_l-ssse3.
16225         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
16226         strcasecmp.
16227         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
16228         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
16229         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
16230
16231 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
16232
16233         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
16234
16235         * string/Makefile (strop-tests): Add strcasecmp.
16236         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16237         strcasecmp_l-nonascii.
16238         (gen-as-const-headers): Add locale-defines.sym.
16239         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
16240         * sysdeps/x86_64/strcasecmp.S: New file.
16241         * sysdeps/x86_64/strcasecmp_l.S: New file.
16242         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
16243         * sysdeps/x86_64/locale-defines.sym: New file.
16244         * string/test-strcasecmp.c: New file.
16245
16246         * string/test-strcasestr.c: Test both ends of the range of characters.
16247         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
16248
16249 2010-07-29  Roland McGrath  <roland@redhat.com>
16250
16251         [BZ #11856]
16252         * manual/locale.texi (Yes-or-No Questions): Fix example code.
16253
16254 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
16255
16256         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
16257         for ld.so.
16258
16259 2010-07-27  Andreas Schwab  <schwab@redhat.com>
16260
16261         * manual/memory.texi (Malloc Tunable Parameters): Document
16262         M_PERTURB.
16263
16264 2010-07-26  Roland McGrath  <roland@redhat.com>
16265
16266         [BZ #11840]
16267         * configure.in (-fgnu89-inline check): Set and substitute
16268         gnu89_inline, not libc_cv_gnu89_inline.
16269         * configure: Regenerated.
16270         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
16271
16272 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
16273
16274         * string/test-strnlen.c: New file.
16275         * string/Makefile (strop-tests): Add strnlen.
16276         * string/tester.c (test_strnlen): Add a few more test cases.
16277         * string/tst-strlen.c: Better error reporting.
16278
16279         * sysdeps/x86_64/strnlen.S: New file.
16280
16281 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
16282
16283         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
16284         lower-latency instructions.
16285
16286 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
16287
16288         * string/test-strcasestr.c: New file.
16289         * string/test-strstr.c: New file.
16290         * string/Makefile (strop-tests): Add strstr and strcasestr.
16291         * string/str-two-way.h: Don't undefine MAX.
16292         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
16293
16294 2010-07-21  Andreas Schwab  <schwab@redhat.com>
16295
16296         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16297         strcasestr-nonascii.
16298         (CFLAGS-strcasestr-nonascii.c): Define.
16299         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
16300         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
16301         Remove unused attribute.
16302
16303 2010-07-20  Roland McGrath  <roland@redhat.com>
16304
16305         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
16306         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
16307         ld.so.cache was broken.  With it, there is no way to disable dsocaps
16308         like LD_HWCAP_MASK can disable hwcaps.
16309
16310 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16311
16312         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
16313
16314 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
16315
16316         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
16317         call in strcasestr.
16318         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
16319         __strcasestr_sse42_nonascii.
16320         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
16321         strcasestr-nonascii.c.
16322         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
16323
16324 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
16325
16326         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
16327         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
16328         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
16329         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
16330
16331 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
16332
16333         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
16334         fcntl.
16335
16336 2010-07-06  Andreas Schwab  <schwab@redhat.com>
16337
16338         [BZ #11577]
16339         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
16340         dl_signal_cerror.
16341
16342 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
16343
16344         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
16345         _PC_PIPE_BUF using F_GETPIPE_SZ.
16346
16347 2010-07-05  Roland McGrath  <roland@redhat.com>
16348
16349         * manual/arith.texi (Rounding Functions): Fix rint description
16350         implicit in round description.
16351
16352 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
16353
16354         * elf/Makefile: Fix linking for a few tests to make recent linker
16355         happy.
16356
16357 2010-06-30  Andreas Schwab  <schwab@redhat.com>
16358
16359         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16360         $(common-objpfx)libc_nonshared.a.
16361
16362 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
16363
16364         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
16365         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
16366         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16367         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16368         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
16369         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
16370         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16371         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
16373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
16374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
16375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
16377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
16379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
16380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
16381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
16382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
16384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
16386         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
16387         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
16388         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
16389         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
16390         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
16391         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
16392         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
16393         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
16394         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
16395         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
16396         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
16397         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
16398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
16399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
16400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
16401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
16402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
16403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
16404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
16405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
16406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
16407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
16408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
16409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
16410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
16411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
16412
16413 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
16414
16415         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
16416         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
16417         * string/memmove.c (memmove): Renamed to ...
16418         (MEMMOVE): ...this.  Default to memmove.
16419         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
16420         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
16421         (END_CHK): Define.
16422         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16423         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
16424         mempcpy-ssse3-back memmove-ssse3-back.
16425         * sysdeps/x86_64/multiarch/bcopy.S: New file .
16426         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
16427         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
16428         * sysdeps/x86_64/multiarch/memcpy.S: New file.
16429         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
16430         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
16431         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
16432         * sysdeps/x86_64/multiarch/memmove.c: New file.
16433         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
16434         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
16435         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
16436         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
16437         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
16438         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
16439         Define.
16440         (index_Fast_Copy_Backward): Define.
16441         (HAS_ARCH_FEATURE): Define.
16442         (HAS_FAST_REP_STRING): Define.
16443         (HAS_FAST_COPY_BACKWARD): Define.
16444
16445 2010-06-21  Andreas Schwab  <schwab@redhat.com>
16446
16447         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16448         Restore proper fallback handling.
16449
16450 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
16451
16452         [BZ #11701]
16453         * posix/group_member.c (__group_member): Correct checking loop.
16454
16455         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
16456         OOM in getpwuid_r correctly.  Return error number when the caller
16457         should return, otherwise -1.
16458         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
16459         call returning > 0 value.
16460         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
16461
16462 2010-06-07  Andreas Schwab  <schwab@redhat.com>
16463
16464         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
16465         libc_nonshared.a from targets in modules-names.
16466
16467 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
16468
16469         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
16470         requires it.
16471
16472 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
16473
16474         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
16475         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
16476         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
16477         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
16478
16479 2010-06-02  Andreas Schwab  <schwab@redhat.com>
16480
16481         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
16482
16483 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
16484
16485         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
16486         and F_GETPIPE_SZ.
16487         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16488         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16489         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16490         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16491         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16492         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
16493
16494 2010-06-14  Roland McGrath  <roland@redhat.com>
16495
16496         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
16497
16498 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
16499
16500         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
16501         __REDIRECT followed by __THROW.
16502         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
16503         * posix/getopt.h (getopt): Likewise.
16504
16505 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16506
16507         * hurd/lookup-at.c (__file_name_lookup_at): Accept
16508         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
16509         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
16510         in AT_FLAGS.
16511         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
16512         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
16513
16514 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
16515
16516         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
16517
16518 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
16519
16520         [BZ #11640]
16521         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16522         Properly check family and model.
16523
16524 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
16525
16526         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
16527
16528 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
16529
16530         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
16531
16532 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
16533
16534         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
16535         symbol reference.
16536
16537 2010-05-19  Andreas Schwab  <schwab@redhat.com>
16538
16539         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
16540         symbol reference.
16541
16542 2010-05-21  Andreas Schwab  <schwab@redhat.com>
16543
16544         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
16545         and internal_recvmmsg.
16546         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
16547         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
16548         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
16549         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
16550
16551         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
16552         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16553         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16554
16555 2010-05-20  Andreas Schwab  <schwab@redhat.com>
16556
16557         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
16558
16559 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
16560
16561         POWER7 optimizations.
16562         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
16563         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
16564
16565 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
16566
16567         * version.h: Update for 2.13 development version.
16568
16569 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
16570
16571         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
16572         exceptions.  Return 0.
16573
16574 2010-05-07  Roland McGrath  <roland@redhat.com>
16575
16576         * elf/ldconfig.c (main): Add a const.
16577
16578 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
16579
16580         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
16581         (args_options): Add no-idn option.
16582         (ahosts_keys_int): Add idn_flags to ai_flags.
16583         (parse_option): Handle 'i' option to clear idn_flags.
16584
16585         * malloc/malloc.c (_int_free): Possible race in the most recently
16586         added check.  Only act on the data if no current modification
16587         happened.
16588
16589 See ChangeLog.17 for earlier changes.