Remove more overridden entries from sysdeps/unix/sysv/syscalls.list.
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
4         (ulimit): Likewise.
5
6         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7         (settimeofday): Likewise.
8
9 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
10
11         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
12         a struct th_u2 inside the union, and move tu_block/tu_code into
13         a new th_u3 union of tu_block/tu_code inside of that.  Move
14         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
16         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
17         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
18         (th_stuff): Change to th_u1.tu_stuff.
19         (th_data): Define.
20         (th_msg): Change to th_u1.th_u2.tu_data.
21
22 2012-05-07  David S. Miller  <davem@davemloft.net>
23
24         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25
26         [BZ #14074]
27         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
28         (SETUP_PIC_REG): Use it.
29         (SETUP_PIC_REG_LEAF): Use it.
30
31 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
32
33         [BZ #13885]
34         [BZ #13923]
35         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
36         USE_AS_EXPM1L.
37         (EXPL_FINITE): Likewise.
38         (FLDLOG): Likewise.
39         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
40         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
41         e_expl.S.
42         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
43         USE_AS_EXPM1L.
44         (EXPL_FINITE): Likewise.
45         (FLDLOG): Likewise.
46         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
47         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
48         e_expl.S.
49         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
50         test of -max_value argument for long double.
51         * sysdeps/i386/fpu/libm-test-ulps: Update.
52         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53
54 2012-05-06  David S. Miller  <davem@davemloft.net>
55
56         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
57         quad soft-float symbols whose references which are compiler
58         generated.
59         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
60
61 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
62
63         [BZ #13884]
64         [BZ #13914]
65         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
66         USE_AS_EXP10L.
67         (EXPL_FINITE): Likewise.
68         (FLDLOG): Likewise.
69         (c0): Likewise.
70         (c1): Likewise.
71         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
72         Adjust comments for base varying.
73         (__expl_finite): Change alias to EXPL_FINITE.
74         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
75         e_expl.S.
76         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
77         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
78         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
79         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
80         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
81         USE_AS_EXP10L.
82         (EXPL_FINITE): Likewise.
83         (FLDLOG): Likewise.
84         (c0): Likewise.
85         (c1): Likewise.
86         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
87         Adjust comments for base varying.
88         (__expl_finite): Change alias to EXPL_FINITE.
89         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
90         tests for bugs.
91         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
92
93         [BZ #14064]
94         * math/libm-test.inc (check_float_internal): Correct ulp
95         calculation for subnormal expected results.
96
97 2012-05-06  Andreas Jaeger  <aj@suse.de>
98
99         * Makeconfig (+math-flags): New, set to -frounding-math.
100         (+cflags): Add +math-flags so that all of glibc gets compiled with
101         it.
102
103         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
104
105 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
106
107         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
108         Disable one test.
109
110         [BZ #13787]
111         [BZ #13922]
112         [BZ #14036]
113         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
114         (__ieee754_expl): Allow for and saturate large arguments.
115         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
116         (u_threshold): Likewise.
117         (__exp): Call __ieee754_exp before checking for overflow and
118         underflow.
119         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
120         (u_threshold): Likewise.
121         (__expf): Call __ieee754_expf before checking for overflow and
122         underflow.
123         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
124         (u_threshold): Likewise.
125         (__expl): Call __ieee754_expl before checking for overflow and
126         underflow.
127         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
128         (__ieee754_expl): Allow for and saturate large arguments.
129         * math/libm-test.inc (exp_test): Add another test.  Do not allow
130         missing overflow exception on overflow.
131         (expm1_test): Do not allow missing overflow exception on overflow.
132
133         * sysdeps/i386/fpu/e_expl.c: Move to ...
134         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
135         rather than using inline asm.
136         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
137         * sysdeps/x86_64/fpu/e_expl.S: Copy from
138         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
139
140         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
141         (nice): Likewise.
142         (poll): Likewise.
143         (signal): Likewise.
144         (time): Likewise.
145         (times): Likewise.
146
147 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
148
149         * sysdeps/unix/syscalls.list (adjtime): Add entry from
150         sysdeps/unix/common/syscalls.list.
151         (fchmod): Likewise.
152         (fchown): Likewise.
153         (ftruncate): Likewise.
154         (getrusage): Likewise.
155         (gettimeofday): Likewise.
156         (setpgid): Likewise.
157         (setregid): Likewise.
158         (setreuid): Likewise.
159         (sigaction): Likewise.
160         (truncate): Likewise.
161         (vhangup): Likewise.
162         * sysdeps/unix/common/syscalls.list: Remove file.
163         * sysdeps/unix/bsd/Implies: Don't include unix/common.
164         * sysdeps/unix/sysv/linux/Implies: Likewise.
165
166 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
167
168         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
169         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
170         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
171         Moved to ...
172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
173         Here.
174         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
175         to ...
176         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
177         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
178         to ...
179         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
180         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
181         to ...
182         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
183         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
184         to ...
185         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
186         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
187         to ...
188         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
189         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
190         to ...
191         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
192         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
193         to ...
194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
195         Here.
196         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
197         to ...
198         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
199         Here.
200         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
201         to ...
202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
203         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
204         Moved to ...
205         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
206         Here.
207         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
208         to ...
209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
210
211 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
212
213         * sysdeps/unix/common/bits/dirent.h: Remove file.
214         * sysdeps/unix/common/bits/fcntl.h: Likewise.
215
216         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
217         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
218         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
219         * sysdeps/unix/bsd/isatty.c: Likewise.
220         * sysdeps/unix/bsd/tcdrain.c: Likewise.
221         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
222         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
223
224 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
225
226         [BZ #13563]
227         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
228         long double comparison inaccuracies.
229         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
230         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
231
232 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
233
234         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
235         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
236
237 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
238
239         [BZ #14049]
240         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
241         nonzero digits before rounding a hex value.
242         * stdlib/tst-strtod.c (tests): Add another test.
243
244 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
245
246         * sysdeps/s390/fpu/libm-test-ulps: Update.
247
248 2012-05-03  Andreas Jaeger  <aj@suse.de>
249
250         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
251         does not get optimized out.
252         (malloc_opt_barrier): New.
253
254 2012-05-03  Andreas Jaeger  <aj@suse.de>
255             Roland McGrath  <roland@hack.frob.com>
256
257         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
258         intermediate file deletion.
259         (generated): Add .symlist files.
260
261 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
262
263         [BZ #13775]
264         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
265         Redirect under this condition.
266         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
267         [__USE_GNU] (__dprintf_chk): Not under this condition.
268         [__USE_GNU] (__vdprintf_chk): Likewise.
269         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
270         under this condition.
271         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
272         [__USE_XOPEN2K8] (dprintf): Define under this condition.
273         [__USE_XOPEN2K8] (vdprintf): Likewise.
274         [__USE_GNU] (__dprintf_chk): Not under this condition.
275         [__USE_GNU] (__vdprintf_chk): Likewise.
276         [__USE_GNU] (dprintf): Likewise.
277         [__USE_GNU] (vdprintf): Likewise.
278
279 2012-05-03  Roland McGrath  <roland@hack.frob.com>
280
281         * elf/Makefile (common-generated): Set this instead of generated for
282         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
283         $(all-built-dso)-derived lists.
284
285 2012-05-03  Andreas Jaeger  <aj@suse.de>
286
287         * sysdeps/i386/fpu/libm-test-ulps: Update.
288
289         * FAQ: Removed.
290         * FAQ.in: Likewise.
291         * scripts/gen-FAQ.pl: Likewise.
292         * manual/install.texi (Installation): Point to online location of
293         FAQ.
294         * Makefile (files-for-dist): Remove FAQ.
295         (FAQ): Remove.
296
297 2012-05-02  Allan McRae  <allan@archlinux.org>
298
299         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
300         (LDFLAGS-reldepmod5.so): Likewise.
301         (LDFLAGS-reldep6mod1.so): Likewise.
302         (LDFLAGS-reldep6mod4.so): Likewise.
303         (LDFLAGS-reldep8mod3.so): Likewise.
304         (LDFLAGS-unload4mod1.so): Likewise.
305         (LDFLAGS-unload4mod2.so): Likewise.
306         (LDFLAGS-tst-initorder): Likewise.
307         (LDFLAGS-tst-initordera2.so): Likewise.
308         (LDFLAGS-tst-initordera3.so): Likewise.
309         (LDFLAGS-tst-initordera4.so): Likewise.
310         (LDFLAGS-tst-initorderb2.so): Likewise.
311         (LDFLAGS-noload): Likewise.
312         (LDFLAGS-next): Likewise.
313         (LDFLAGS-order2mod1.so): Likewise.
314         (LDFLAGS-order2mod2.so): Likewise.
315         (LDFLAGS-tst-initorder2): Likewise.
316         (LDFLAGS-tst-initorder2a.so): Likewise.
317         (LDFLAGS-tst-initorder2b.so): Likewise.
318         (LDFLAGS-tst-initorder2c.so): Likewise.
319         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
320
321 2012-05-02  David S. Miller  <davem@davemloft.net>
322
323         * sysdeps/sparc/fpu/libm-test-ulps: Update.
324
325 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
326
327         [BZ #14055]
328         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
329
330 2012-05-02  Andreas Jaeger  <aj@suse.de>
331
332         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
333         since we manipulate rounding mode.
334         (CPPFLAGS-test-idouble.c): Likewise.
335         (CPPFLAGS-test-ifloat.c): Likewise.
336         (CFLAGS-test-ldouble.c): Likewise.
337         (CFLAGS-test-double.c): Likewise.
338         (CFLAGS-test-float.c): Likewise.
339         (CFLAGS-test-misc.c): Likewise.
340         (CFLAGS-test-test-fenv.c): Likewise.
341
342 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
343
344         [BZ #2550]
345         [BZ #2570]
346         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
347         comparisons to determine direction to adjust input.
348
349 2012-05-01  Roland McGrath  <roland@hack.frob.com>
350
351         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
352         output to the target.
353
354         * scripts/localplt.awk: New file.
355         * elf/Makefile ($(objpfx)check-localplt): Target removed.
356         (check-localplt-CFLAGS): Variable removed.
357         ($(all-built-dso:=.jmprel)): New static pattern rule.
358         (generated): Add those targets.
359         (localplt-built-dso): New variable.
360         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
361
362         * elf/check-localplt.c: File removed.
363
364         * scripts/check-execstack.awk: New file.
365         * elf/Makefile ($(objpfx)check-execstack): Target removed.
366         (check-execstack-CFLAGS): Variable removed.
367         ($(objpfx)check-execstack.h): Target removed.
368         ($(objpfx)execstack-default): New target.
369         (generated): Add that instead of check-execstack.h.
370         ($(all-built-dso:=.phdr)): New static pattern rule.
371         (generated): Add those targets.
372         * elf/check-execstack.c: File removed.
373
374         * scripts/check-textrel.awk: New file.
375         * elf/Makefile ($(objpfx)check-textrel): Target removed.
376         (check-textrel-CFLAGS): Variable removed.
377         (all-built-dso): Use := to define.o
378         ($(all-built-dso:=.dyn)): New static pattern rule.
379         (generated): Add those targets.
380         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
381         * config.make.in (READELF): New substituted variable.
382         * elf/check-textrel.c: File removed.
383
384 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
385
386         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
387         allow.
388         * conform/data/ctype.h-data [C99-based standards] (isblank):
389         Expect function.
390         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
391         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
392         [ISO || ISO99 || ISO11] (*_t): Do not allow.
393         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
394         Specify type.  Require positive value.
395         (EILSEQ): Likewise.
396         (ERANGE): Likewise.
397         [ISO || POSIX] (EILSEQ): Do not expect.
398         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
399         Specify type.  Require positive value.
400         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
401         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
402         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
403         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
404         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
405         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
406         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
407         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
408         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
409         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
410         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
411         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
412         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
413         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
414         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
415         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
416         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
417         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
418         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
419         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
420         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
421         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
422         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
423         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
424         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
425         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
426         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
427         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
428         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
429         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
430         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
431         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
432         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
433         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
434         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
435         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
436         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
437         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
438         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
439         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
440         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
441         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
442         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
443         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
444         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
445         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
446         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
447         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
448         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
449         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
450         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
451         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
452         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
453         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
454         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
455         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
456         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
457         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
458         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
459         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
460         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
461         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
462         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
463         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
464         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
465         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
466         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
467         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
468         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
469         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
470         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
471         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
472         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
473         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
474         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
475         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
476         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
477         Require >= 2.
478         (FLT_ROUNDS): Expect as macro, not constant.
479         (FLT_MANT_DIG): Use macro-int-constant.
480         (DBL_MANT_DIG): Likewise.
481         (LDBL_MANT_DIG): Likewise.
482         (FLT_DIG): Likewise.
483         (DBL_DIG): Likewise.
484         (LDBL_DIG): Likewise.
485         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
486         (DBL_MIN_EXP): Likewise.
487         (LDBL_MIN_EXP): Likewise.
488         (FLT_MAX_EXP): Use macro-int-constant.
489         (DBL_MAX_EXP): Likewise.
490         (LDBL_MAX_EXP): Likewise.
491         (FLT_MAX_10_EXP): Likewise.
492         (DBL_MAX_10_EXP): Likewise.
493         (LDBL_MAX_10_EXP): Likewise.
494         (FLT_MAX): Use macro-constant.
495         (DBL_MAX): Likewise.
496         (LDBL_MAX): Likewise.
497         (FLT_EPSILON): Use macro-constant.  Give upper bound.
498         (DBL_EPSILON): Likewise.
499         (LDBL_EPSILON): Likewise.
500         (FLT_MIN): Likewise.
501         (DBL_MIN): Likewise.
502         (LDBL_MIN): Likewise.
503         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
504         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
505         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
506         [ISO11] (FLT_HAS_SUBNORM): Likewise.
507         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
508         [ISO11] (DBL_DECIMAL_DIG): Likewise.
509         [ISO11] (FLT_DECIMAL_DIG): Likewise.
510         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
511         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
512         [ISO11] (FLT_TRUE_MIN): Likewise.
513         [ISO11] (LDBL_TRUE_MIN): Likewise.
514         [ISO || ISO99 || ISO11] (*_t): Do not allow.
515         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
516         (SCHAR_MIN): Use macro-int-constant.  Specify type.
517         (SCHAR_MAX): Likewise.
518         (UCHAR_MAX): Likewise.
519         (CHAR_MIN): Likewise.
520         (CHAR_MAX): Likewise.
521         (MB_LEN_MAX): Use macro-int-constant.
522         (SHRT_MIN): Use macro-int-constant.  Specify type.
523         (SHRT_MAX): Likewise.
524         (USHRT_MAX): Likewise.
525         (INT_MAX): Likewise.
526         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
527         bound negative.
528         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
529         bound with "U".
530         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
531         bound with "L".
532         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
533         bound negative.  Suffix upper bound with "L".
534         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
535         bound with "UL".
536         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
537         Specify type.
538         [C99-based standards] (LLONG_MAX): Likewise.
539         [C99-based standards] (ULLONG_MAX): Likewise.
540         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
541         == 0.
542         [ISO11] (max_align_t): Require type.
543         [ISO || ISO99 || ISO11] (*_t): Do not allow.
544
545         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
546         from $CFLAGS, without defining away __attribute__ calls.
547         (checknamespace): Use $CFLAGS_namespace.
548
549         * conform/conformtest.pl (@keywords): Only include C99 keywords
550         for standards based on C99 or C11.
551
552         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
553         Disable tests.
554         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
555         UNIX98]: Likewise.
556
557         * conform/conformtest.pl: Handle "macro-int-constant" and test for
558         usability of symbols in #if.
559
560         * conform/conformtest.pl: If macro or constant types start
561         "promoted:", expect the symbol to be of the following type
562         promoted by the integer promotions.
563
564         * conform/conformtest.pl: Parse all "constant" and "macro" lines
565         in one place.  Also handle "macro-constant".
566
567         * conform/conformtest.pl: Only accept expected macro values with
568         "==".  Parse all "macro" lines in one place.
569         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
570
571         * conform/conformtest.pl: Handle braced types on "constant" lines
572         instead of handling "typed-constant".
573         * conform/data/signal.h-data: Use "constant" instead of
574         "typed-constant".
575
576         * conform/conformtest.pl: Handle "optional-" at start of lines in
577         one place rather than duplicating several cases.  Handle each
578         format of "macro" line with initial "optional-".
579
580         * conform/conformtest.pl: Only accept expected constant or
581         optional-constant values with "==".  Parse all "constant" lines in
582         one place.  Parse all "optional-constant" lines in one place.
583         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
584         * conform/data/fmtmsg.h-data: Likewise.
585         * conform/data/netinet/in.h-data: Likewise.
586         * conform/data/tar.h-data: Likewise.
587         * conform/data/limits.h-data: Use "==" form on "constant" and
588         "optional-constant" lines.
589
590         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
591         Use -std=c99 for XOPEN2K.
592         (@knownproblems): Remove.
593         (newtoken): Don't check %isknown.
594
595         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
596         Do not expect macro.
597         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
598         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
599         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
600         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
601         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
602         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
603         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
604         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
605         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
606         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
607         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
608         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
609         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
610         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
611         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
612         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
613         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
614         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
615         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
616         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
617         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
618         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
619         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
620         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
621         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
622         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
623         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
624         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
625         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
626         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
627         [XPG3] (acosh): Likewise.
628         [XPG3] (asinh): Likewise.
629         [XPG3] (atanh): Likewise.
630         [XPG3] (cbrt): Likewise.
631         [XPG3] (expm1): Likewise.
632         [XPG3] (ilogb): Likewise.
633         [XPG3] (log1p): Likewise.
634         [XPG3] (logb): Likewise.
635         [XPG3] (nextafter): Likewise.
636         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
637         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
638         [XPG3] (remainder): Likewise.
639         [XPG3] (rint): Likewise.
640         [XPG3 || XPG4 || UNIX98] (round): Likewise.
641         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
642         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
643         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
644         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
645         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
646         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
647         [UNIX98 || XOPEN2K] (scalb): Expect.
648         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
649         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
650         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
651         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
652         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
653         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
654         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
655         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
656         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
657         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
658         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
659         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
660         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
661         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
662         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
663         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
664         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
665         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
666         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
667         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
668         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
669         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
670         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
671         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
672         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
673         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
674         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
675         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
676         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
677         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
678         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
679         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
680         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
681         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
682         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
683         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
684         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
685         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
686         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
687         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
688         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
689         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
690         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
691         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
692         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
693         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
694         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
695         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
696         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
697         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
698         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
699         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
700         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
701         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
702         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
703         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
704         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
705         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
706         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
707         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
708         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
709         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
710         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
711         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
712         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
713         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
714         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
715         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
716         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
717         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
718         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
719         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
720         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
721         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
722         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
723         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
724         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
725         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
726         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
727         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
728         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
729         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
730         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
731         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
732         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
733         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
734         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
735         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
736         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
737         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
738         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
739         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
740         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
741         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
742         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
743         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
744         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
745         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
746         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
747         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
748         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
749         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
750         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
751         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
752         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
753         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
754         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
755         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
756         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
757         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
758         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
759         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
760         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
761         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
762         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
763         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
764         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
765         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
766         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
767         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
768         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
769         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
770         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
771         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
772         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
773         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
774         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
775         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
776         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
777         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
778         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
779         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
780         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
781         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
782         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
783         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
784         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
785
786         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
787         _XOPEN_SOURCE_EXTENDED for XPG4.
788
789         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
790
791         * Makeconfig (localtime): Remove variable.
792         (inst_localtime-file): Likewise.
793
794 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
795
796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
797         Update.
798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
799         Update.
800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
801         Update.
802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
803         Update.
804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
805         Update.
806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
807         Update.
808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
809         Update.
810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
811         Update.
812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
813         Update.
814
815 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
816
817         [BZ #2550]
818         [BZ #2570]
819         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
820         comparisons to determine direction to adjust input.
821         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
822         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
823         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
824         Likewise.
825         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
826         Likewise.
827         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
828         Likewise.
829         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
830         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
831         Likewise.
832         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
833         Likewise.
834         * math/libm-test.inc (nexttoward_test): Add more tests.
835
836 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
837
838         [BZ #14040]
839         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
840         in version GLIBC_2.1, not GLIBC_2.0.
841         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
842         Likewise.
843
844 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
845
846         [BZ #13942]
847         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
848         (1 - x) * (1 + x).
849         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
850         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
851         * math/libm-test.inc (acos_test): Add more tests.
852         (asin_test): Likewise.
853         * sysdeps/i386/fpu/libm-test-ulps: Update.
854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
855
856         [BZ #14034]
857         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
858         of square root.
859         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
860         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
861         * math/libm-test.inc (acos_test_tonearest): New function.
862         (acos_test_towardzero): Likewise.
863         (acos_test_downward): Likewise.
864         (acos_test_upward): Likewise.
865         (asin_test_tonearest): Likewise.
866         (asin_test_towardzero): Likewise.
867         (asin_test_downward): Likewise.
868         (asin_test_upward): Likewise.
869         (main): Call the new functions.
870         * sysdeps/i386/fpu/libm-test-ulps: Update.
871         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
872
873         [BZ #13884]
874         [BZ #13924]
875         * math/e_exp10.c: Include <float.h>.
876         (__ieee754_exp10): Handle underflow here rather than multiplying
877         large negative argument by M_LN10.
878         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
879         of __ieee754_expf.
880         * math/e_exp10l.c: Include <float.h>.
881         (__ieee754_exp10l): Handle underflow here rather than multiplying
882         large negative argument by M_LN10l.
883         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
884         spurious overflow exception on underflow.
885
886 2012-04-29  Marek Polacek  <polacek@redhat.com>
887
888         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
889         (__fortify_function): New macro.
890         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
891         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
892         __extern_always_inline.
893         * libio/bits/stdio2.h: Likewise.
894         * libio/bits/stdio.h: Likewise.
895         * string/string.h: Likewise.
896         * string/bits/string3.h: Likewise.
897         * include/stdio.h: Likewise.
898         * stdlib/bits/stdlib.h: Likewise.
899         * stdlib/stdlib.h: Likewise.
900         * rt/bits/mqueue2.h: Likewise.
901         * rt/mqueue.h: Likewise.
902         * posix/bits/unistd.h: Likewise.
903         * posix/unistd.h: Likewise.
904         * io/bits/poll2.h: Likewise.
905         * io/bits/fcntl2.h: Likewise.
906         * io/fcntl.h: Likewise.
907         * io/sys/poll.h: Likewise.
908         * misc/bits/syslog.h: Likewise.
909         * misc/bits/syslog-ldbl.h: Likewise.
910         * misc/sys/syslog.h: Likewise.
911         * socket/bits/socket2.h: Likewise.
912         * socket/sys/socket.h: Likewise.
913         * debug/tst-chk1.c: Likewise.
914         * wcsmbs/bits/wchar2.h: Likewise.
915         * wcsmbs/bits/wchar-ldbl.h: Likewise.
916         * wcsmbs/wchar.h: Likewise.
917
918 2012-04-29  Andreas Jaeger  <aj@suse.de>
919
920         * Makerules (tests): Remove enable-check-abi protection.
921         (check-abi-warn): Remove.
922         (check-abi-%): Remove check-abi-warn usage.
923
924         * configure.in: Remove check-abi configure option.
925         * configure: Regenerated.
926         * config.make.in (enable-check-abi): Remove.
927
928 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
929
930         [BZ #14033]
931         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
932         double functions to double *_finite functions.
933
934         [BZ #13941]
935         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
936         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
937         LDBL_MIN_EXP.
938         * stdio-common/Makefile (tests): Add tst-sprintf3.
939         * stdio-common/tst-sprintf3.c: New file.
940
941         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
942         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
943
944 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
945
946         * conform/conformtest.pl: Remove duplicate typed-constant
947         handling.
948
949 2012-04-28  David S. Miller  <davem@davemloft.net>
950
951         * Makerules (%.abilist): Add vpath on sysdep_dirs.
952         (check-abi-%): Remove AWK script prerequisite and explicit
953         abilist directory.
954         (check-abi): Rewrite to just diff the symlist with the abilist.
955         (config-tls, config-abi-config): Delete, no longer used.
956         (update-abi-%): Remove AWK script and explicit abilist directory.
957         (update-abi): Rewrite to simply compare and conditionally copy the
958         symlist and the sysdep abilist file.  Remove update-abi-config
959         checks.
960         * abilist/ld.abilist: Remove.
961         * abilist/libBrokenLocale.abilist: Remove.
962         * abilist/libanl.abilist: Remove.
963         * abilist/libcrypt.abilist: Remove.
964         * abilist/libdl.abilist: Remove.
965         * abilist/librt.abilist: Remove.
966         * abilist/libthread_db.abilist: Remove.
967         * abilist/libutil.abilist: Remove.
968         * scripts/extract-abilist.awk: Remove.
969         * scripts/merge-abilist.awk: Remove.
970         * sysdeps/generic/libcidn.abilist: New file.
971         * sysdeps/generic/libnss_compat.abilist: New file.
972         * sysdeps/generic/libnss_db.abilist: New file.
973         * sysdeps/generic/libnss_dns.abilist: New file.
974         * sysdeps/generic/libnss_files.abilist: New file.
975         * sysdeps/generic/libnss_hesiod.abilist: New file.
976         * sysdeps/generic/libnss_nis.abilist: New file.
977         * sysdeps/generic/libnss_nisplus.abilist: New file.
978         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
979         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
980         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
981         file.
982         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
983         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
984         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
985         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
986         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
987         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
988         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
989         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
990         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
991         file.
992         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
993         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
994         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
995         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
996         file.
997         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
998         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
999         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
1000         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
1001         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
1002         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
1003         file.
1004         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
1005         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
1006         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
1007         file.
1008         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
1009         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
1010         New file.
1011         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
1012         New file.
1013         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
1014         New file.
1015         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
1016         New file.
1017         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
1018         New file.
1019         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
1020         New file.
1021         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
1022         New file.
1023         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
1024         New file.
1025         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
1026         New file.
1027         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
1028         New file.
1029         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
1030         New file.
1031         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
1032         New file.
1033         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
1034         New file.
1035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
1036         file.
1037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
1038         New file.
1039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
1040         New file.
1041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
1042         file.
1043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
1044         New file.
1045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
1046         New file.
1047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
1048         file.
1049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
1050         New file.
1051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1052         New file.
1053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
1054         New file.
1055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
1056         New file.
1057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
1058         New file.
1059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
1060         New file.
1061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
1062         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
1063         file.
1064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
1065         New file.
1066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
1067         file.
1068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
1069         file.
1070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
1071         file.
1072         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
1073         file.
1074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
1075         file.
1076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1077         New file.
1078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
1079         file.
1080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
1081         file.
1082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
1083         New file.
1084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
1085         file.
1086         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
1087         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
1088         file.
1089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
1090         New file.
1091         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
1092         file.
1093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
1094         file.
1095         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
1096         file.
1097         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
1098         file.
1099         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
1100         file.
1101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1102         New file.
1103         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
1104         file.
1105         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
1106         file.
1107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
1108         New file.
1109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
1110         file.
1111         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1112         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
1113         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
1114         file.
1115         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
1116         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
1117         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
1118         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
1119         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
1120         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
1121         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
1122         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
1123         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
1124         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
1125         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
1126         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
1127         file.
1128         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
1129         New file.
1130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
1131         file.
1132         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
1133         file.
1134         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
1135         file.
1136         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
1137         file.
1138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
1139         file.
1140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1141         New file.
1142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
1143         New file.
1144         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
1145         file.
1146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
1147         New file.
1148         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
1149         file.
1150         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
1151         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
1152         file.
1153         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
1154         New file.
1155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
1156         file.
1157         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
1158         file.
1159         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
1160         file.
1161         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
1162         file.
1163         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
1164         file.
1165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1166         New file.
1167         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
1168         New file.
1169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
1170         file.
1171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
1172         New file.
1173         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
1174         file.
1175
1176 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1177
1178         * conform/conformtest.pl: Fix typo in handling typed-constant from
1179         allow-header.
1180
1181 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1182
1183         * README: Cut down references to pre-2.6 Linux kernels and
1184         Linuxthreads.  Update lists of configurations in libc and ports
1185         and sort alphabetically.  Say "or newer" with Linux kernel version
1186         requirements.
1187
1188         * config.h.in [IS_IN_build]: Allow compiling without optimization.
1189
1190 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1191
1192         [BZ #887]
1193         * math/libm-test.inc (logb_test_downward): New test to expose
1194         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
1195         rounding mode.
1196
1197 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1198
1199         [BZ #14027]
1200         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
1201         to be done.
1202         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
1203         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
1204
1205 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
1206
1207         * sysdeps/unix/i386/brk.S: Remove file.
1208         * sysdeps/unix/i386/dl-brk.S: Likewise.
1209         * sysdeps/unix/i386/pipe.S: Likewise.
1210         * sysdeps/unix/i386/sigreturn.S: Likewise.
1211         * sysdeps/unix/i386/syscall.S: Likewise.
1212         * sysdeps/unix/i386/vfork.S: Likewise.
1213         * sysdeps/unix/i386/wait.S: Likewise.
1214
1215         * sysdeps/unix/common/tcsendbrk.c: Move to ...
1216         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
1217
1218         * configure.in (arm*-none*): Do not allow without
1219         --enable-hacker-mode.
1220         (netbsd*): Remove case setting base_os.
1221         (386bsd*): Likewise.
1222         (freebsd*): Likewise.
1223         (bsdi*): Likewise.
1224         (osf*): Likewise.
1225         (sunos*): Likewise.
1226         (ultrix*): Likewise.
1227         (newsos*): Likewise.
1228         (dynix*): Likewise.
1229         (*bsd*): Likewise.
1230         (sysv*): Likewise.
1231         (isc*): Likewise.
1232         (esix*): Likewise.
1233         (sco*): Likewise.
1234         (minix*): Likewise.
1235         (irix4*): Likewise.
1236         (irix6*): Likewise.
1237         (solaris[2-9]*): Likewise.
1238         (none): Likewise.
1239         * configure: Regenerated.
1240
1241 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1242
1243         [BZ #11521]
1244         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
1245         overflow or cancellation in calculating denominator.
1246         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
1247         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
1248         down expression to avoid unexpected rounding in newer GCCs.
1249         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
1250
1251 2012-04-26  David S. Miller  <davem@davemloft.net>
1252
1253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
1254         long-double compat symbols.
1255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
1259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
1261         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
1262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
1263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
1264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
1265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
1266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
1267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
1268
1269 2012-04-25  David S. Miller  <davem@davemloft.net>
1270
1271         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
1272         HWCAP_* values only after the memory barriers have been defined.
1273         (atomic_full_barrier): Define.
1274         (atomic_read_barrier): Define.
1275         (atomic_write_barrier): Define.
1276
1277 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1278
1279         * shlib-versions: Add libgcc_s version information.
1280         * sysdeps/generic/libgcc_s.h: Remove.
1281         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
1282         libgcc_s.h.
1283         * sysdeps/gnu/unwind-resume.c: Likewise.
1284         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
1285
1286 2012-04-25  David S. Miller  <davem@davemloft.net>
1287
1288         * sysdeps/unix/sparc/brk.S: Delete.
1289         * sysdeps/unix/sparc/dl-brk.S: Delete.
1290         * sysdeps/unix/sparc/pipe.S: Delete.
1291         * sysdeps/unix/sparc/sysdep.S: Delete.
1292         * sysdeps/unix/sparc/sysdep.h: Delete.
1293         * sysdeps/unix/sparc/vfork.S: Delete.
1294         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
1295         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
1296         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
1297         ret_ERRVAL, r0, r1, MOVE): Define.
1298         (JUMPTARGET): Remove.
1299         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
1300         sysdeps/unix/sparc/sysdep.h
1301         (ENTRY, END): Remove.
1302         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1303
1304 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
1305
1306         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
1307         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
1308         -DIS_IN_build.
1309
1310         * timezone/README: Update upstream location and email address for
1311         tzcode and tzdata.
1312         * timezone/zdump.c: Update from tzcode 2012b.
1313         * timezone/zic.c: Likewise.
1314
1315         * configure.in (libc_cv_as_needed): Remove test.
1316         * configure: Regenerated.
1317         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
1318         conditional definition.
1319         [$(have-as-needed) != yes] (no-as-needed): Likewise.
1320         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
1321         * config.make.in (have-as-needed): Remove variable.
1322
1323 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1324             Paul Pluzhnikov  <ppluzhnikov@google.com>
1325
1326         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
1327         strings correctly.
1328
1329 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
1330
1331         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
1332         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
1333         * sysdeps/sh/strlen.S: Likewise.
1334
1335 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1336
1337         * sysdeps/unix/fork.S: Remove file.
1338         * sysdeps/unix/i386/fork.S: Likewise.
1339         * sysdeps/unix/sparc/fork.S: Likewise.
1340
1341         * sysdeps/unix/system.c: Remove file.
1342         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
1343
1344         * sysdeps/unix/getegid.S: Remove file.
1345         * sysdeps/unix/geteuid.S: Likewise.
1346
1347 2012-04-24  Roland McGrath  <roland@hack.frob.com>
1348
1349         * scripts/check-localplt.awk: New file.
1350         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
1351         of diff.
1352         * scripts/data/localplt-generic.data: Add a comment.
1353
1354         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
1355         NODE when __dir_mkfile failed.
1356         * sysdeps/mach/hurd/symlinkat.c: Likewise.
1357         Reported by Ludovic Courtès <ludo@gnu.org>.
1358
1359 2012-04-24  Andreas Jaeger  <aj@suse.de>
1360
1361         * Makerules (common-clean): Also remove gen-as-const-headers
1362         files.
1363
1364 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1365
1366         * Makerules (native-compile): Do not change working directory for
1367         build.  Use $(OUTPUT_OPTION) in command.
1368         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
1369
1370 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1371
1372         [BZ #13886]
1373         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
1374         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
1375         * math/libm-test.inc (floor_test): Add more tests.
1376         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
1377
1378 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1379
1380         * sysdeps/unix/getdents.c: Remove file.
1381         * sysdeps/unix/sysv/getdents.c: Likewise.
1382         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
1383
1384         * sysdeps/unix/syscalls.list (madvise): Add syscall from
1385         sysdeps/unix/mman/syscalls.list.
1386         (mmap): Likewise.
1387         (mprotect): Likewise.
1388         (msync): Likewise.
1389         (munmap): Likewise.
1390         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
1391         * sysdeps/unix/mman/syscalls.list: Remove.
1392         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
1393
1394         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
1395         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
1396         * configure: Regenerated.
1397         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
1398         $(libgcc_s_suffix).
1399         * config.make.in (libgcc_s_suffix): Remove variable.
1400
1401 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
1402
1403         * sysdeps/unix/sysv/gethostname.c: Move to ...
1404         * sysdeps/posix/gethostname.c: ... here.
1405
1406         * sysdeps/unix/execve.S: Remove file.
1407
1408         * sysdeps/unix/_exit.S: Remove file.
1409
1410 2012-04-23  Andreas Jaeger  <aj@suse.de>
1411
1412         [BZ #13739]
1413         * manual/Makefile: Remove make dist support, there's no
1414         need for a stand-alone documentation tar ball.
1415         (TEXI2DVI): Define always, it's not in Makeconfig.
1416         (dist): Removed.
1417         (tar-it): Removed.
1418         (edition): Removed.
1419         (glibc-doc-$(edition).tar): Removed
1420         (%.Z): Removed.
1421         (%.gz): Removed.
1422         (%.uu): Removed.
1423         (ETAGS): Remove, it's in Makeconfig.
1424         (move-if-change): Remove, it's in Makeconfig.
1425
1426 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1427
1428         [BZ #13970]
1429         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
1430         (strtod, strtof, strtold, strtol, strtoul, strtoq)
1431         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
1432         (strtod_l, strtof_l, strtold_l): Remove __wur.
1433         It is not necessarily an error to ignore strtol's return value.
1434         One can reliably look at the stored endptr to decide whether
1435         the number had valid syntax.
1436
1437 2012-04-21  Andreas Jaeger  <aj@suse.de>
1438
1439         [BZ #13739]
1440         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
1441
1442 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
1443
1444         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
1445         * sysdeps/unix/sysv/Versions: Remove file.
1446
1447 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1448
1449         [BZ #13927]
1450         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1451
1452 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
1453
1454         [BZ #7064]
1455         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
1456         version from __vm86.
1457
1458 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
1459
1460         * sysdeps/unix/common/lxstat.c: Remove file.
1461         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
1462
1463         * sysdeps/unix/sysv/Makefile: Remove file.
1464
1465         * sysdeps/unix/sysv/direct.h: Remove file.
1466
1467         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
1468         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
1469         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
1470         * sysdeps/unix/sysv/bits/signum.h: Likewise.
1471         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1472         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
1473         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
1474
1475         * sysdeps/unix/sysv/setrlimit.c: Remove file.
1476
1477         * sysdeps/unix/xmknod.c: Remove file.
1478         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
1479
1480         * sysdeps/unix/sysv/settimeofday.c: Remove file.
1481
1482         * sysdeps/unix/sysv/i386/time.S: Remove file.
1483
1484         * sysdeps/unix/fxstat.c: Remove file.
1485         * sysdeps/unix/xstat.c: Likewise.
1486         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
1487
1488         * sysdeps/unix/sysv/sigaction.c: Remove file.
1489
1490         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
1491         (sysdep_headers): Remove variable.
1492         [termio.h not in sysdep_headers] (generated): Likewise.
1493         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
1494         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
1495         * sysdeps/unix/sysv/tcdrain.c: Likewise.
1496         * sysdeps/unix/sysv/tcflow.c: Likewise.
1497         * sysdeps/unix/sysv/tcflush.c: Likewise.
1498         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
1499         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
1500         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
1501         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
1502         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
1503
1504         * sysdeps/unix/siglist.c: Remove file.
1505
1506         * sysdeps/unix/getppid.S: Remove file.
1507
1508         * sysdeps/unix/mkdir.c: Remove file.
1509         * sysdeps/unix/rmdir.c: Likewise.
1510
1511 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1512
1513         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
1514         ERR_MAX value.
1515         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
1516         errlist-compat value.
1517
1518 2012-04-18  David S. Miller  <davem@davemloft.net>
1519
1520         * sysdeps/generic/memcopy.h (reg_char): Delete.
1521         * debug/strcat_chk.c: Use char, not reg_char.
1522         * debug/strcpy_chk.c: Likewise.
1523         * debug/strncat_chk.c: Likewise.
1524         * debug/strncpy_chk.c: Likewise.
1525         * string/memchr.c: Likewise.
1526         * string/memrchr.c: Likewise.
1527         * string/rawmemchr.c: Likewise.
1528         * string/strcat.c: Likewise.
1529         * string/strchr.c: Likewise.
1530         * string/strchrnul.c: Likewise.
1531         * string/strcmp.c: Likewise.
1532         * string/strcpy.c: Likewise.
1533         * string/strncat.c: Likewise.
1534         * string/strncmp.c: Likewise.
1535         * string/strncpy.c: Likewise.
1536
1537 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1538
1539         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
1540         __builtin_memcopy is called when src and dest ranges are known to not
1541         overlap.
1542
1543 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1544
1545         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
1546         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
1547         fwd_align_merge macro call.
1548         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
1549         bwd_align_merge macro call.
1550         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1551
1552 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1553
1554         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
1555         bwd_align_merge macros.
1556         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
1557         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
1558         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1559
1560 2012-04-18  David S. Miller  <davem@davemloft.net>
1561
1562         * sysdeps/sparc/sparc64/memcopy.h: Delete.
1563
1564 2012-04-18  Andreas Jaeger  <aj@suse.de>
1565
1566         [BZ# 6794]
1567         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
1568         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
1569         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1570
1571         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
1572         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
1573         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1574
1575         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
1576         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
1577         Adjust for changed ldbl-128 files.
1578
1579         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
1580         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
1581         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1582
1583 2012-04-17  David S. Miller  <davem@davemloft.net>
1584
1585         * sysdeps/sparc/sparc32/memcopy.h: Delete.
1586
1587 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
1588
1589         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
1590         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
1591         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
1592         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
1593         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
1594         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
1595
1596 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1597
1598         [BZ #6794]
1599         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
1600         * math/libm-test.inc: Add ilogb errno and exception tests.
1601         * math/w_ilogb.c: New file: ilogb wrapper.
1602         * math/w_ilogbf.c: New file: ilogbf wrapper.
1603         * math/w_ilogbl.c: New file: ilogbl wrapper.
1604         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
1605         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
1606         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
1607         exception being thrown with 0.0 as argument.
1608         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
1609         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
1610         exception being thrown with 0.0 as argument.
1611         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
1612         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1613         exception being thrown with 0.0 as argument.
1614         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
1615         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1616         exception being thrown with 0.0 as argument.
1617         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
1618         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
1619         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
1620         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
1621         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
1622         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
1623         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
1624         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
1625         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
1626
1627 2012-04-17  Petr Baudis  <pasky@ucw.cz>
1628
1629         * include/sys/uio.h: Change __vector to __iovec to avoid clash
1630         with altivec.
1631
1632 2012-04-16  Marek Polacek  <polacek@redhat.com>
1633
1634         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
1635
1636 2012-04-16  Marek Polacek  <polacek@redhat.com>
1637
1638         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
1639         operands of fdivp instruction.
1640
1641 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1642
1643         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
1644         * elf/tst-auditmod3b.c: Likewise.
1645         * elf/tst-auditmod4b.c: Likewise.
1646         * elf/tst-auditmod5b.c: Likewise.
1647         * elf/tst-auditmod6b.c: Likewise.
1648         * elf/tst-auditmod6c.c: Likewise.
1649         * elf/tst-auditmod7b.c: Likewise.
1650         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
1651         * sysdeps/x86_64/preconfigure.in: Likewise.
1652         * sysdeps/x86_64/preconfigure: Regenerated.
1653
1654 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1655
1656         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
1657         __ILP32__.
1658
1659 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
1660
1661         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1662         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
1663
1664 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
1665
1666         [BZ #13973]
1667         * locale/iso-639.def: Fix gl language name. Spotted by
1668         Yaron Shahrabani.
1669
1670 2012-04-12  Roland McGrath  <roland@hack.frob.com>
1671
1672         [BZ #2074]
1673         * libio/libio.h (__io_write_fn): Update comment.
1674
1675 2012-04-12  Petr Baudis  <pasky@ucw.cz>
1676
1677         [BZ #2074]
1678         * stdio.texi (Hook Functions): The user provided writer function
1679         is not allowed to return -1.
1680
1681 2012-04-11  David S. Miller  <davem@davemloft.net>
1682
1683         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1684
1685 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
1686
1687         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
1688         Add a leading slash to rtkaio.
1689
1690 2012-04-11  Jim Meyering  <meyering@redhat.com>
1691
1692         [BZ #11959]
1693         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
1694         It is not necessarily an error to ignore fwrite's return
1695         value.  One can reliably use ferror to test for errors after
1696         the fact.
1697
1698 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1699
1700         * bits/types.h (__snseconds_t): New type.
1701         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
1702
1703         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
1704         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1705         (__SNSECONDS_T_TYPE): Likewise.
1706         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1707         (__SNSECONDS_T_TYPE): Likewise.
1708         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1709         (__SNSECONDS_T_TYPE): Likewise.
1710
1711 2012-04-10  Andreas Jaeger  <aj@suse.de>
1712
1713         [BZ #2636]
1714         * manual/time.texi (Processor Time): Return type of times is
1715         elapsed real time since an arbitrary point in the past.
1716         (CPU Time): Move CLK_TCK from here...
1717         (Processor Time): ...to here.  Correct description.
1718         * manual/conf.texi (Constants for Sysconf): Correct description of
1719         _SC_CLK_TCK.
1720
1721 2012-04-10  David S. Miller  <davem@davemloft.net>
1722
1723         [BZ #13967]
1724         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
1725         where the is a gap between DT_REL(A) and DT_JMPREL.
1726
1727 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1728
1729         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
1730         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1731         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1732
1733 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1734
1735         * elf/dl-support.c (_dl_inhibit_cache): New variable.
1736         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
1737         (dl_main): Handle --inhibit-cache.
1738         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
1739         _dl_inhibit_cache.
1740         * elf/dl-load.c (_dl_map_object): Use it.
1741         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
1742
1743 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1744
1745         [BZ #13872]
1746         * sysdeps/i386/fpu/e_powl.S (p78): New object.
1747         (__ieee754_powl): Saturate large exponents rather than testing for
1748         overflow of y*log2(x).
1749         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1750         * math/libm-test.inc (pow_test): Do not permit spurious overflow
1751         exceptions.
1752
1753         [BZ #11521]
1754         * math/s_ctan.c: Include <float.h>.
1755         (__ctan): Avoid internal overflow or cancellation in calculating
1756         denominator.
1757         * math/s_ctanf.c: Likewise.
1758         * math/s_ctanl.c: Likewise.
1759         * math/s_ctanh.c: Likewise.
1760         * math/s_ctanhf.c: Likewise.
1761         * math/s_ctanhl.c: Likewise.
1762         * math/libm-test.inc (ctan_test): Add more tests.
1763         (ctanh_test): Likewise.
1764         * sysdeps/i386/fpu/libm-test-ulps: Update.
1765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1766
1767 2012-04-09  Andreas Jaeger  <aj@suse.de>
1768
1769         [BZ #6894]
1770         * manual/filesys.texi (Directory Entries): Mention that d_namlen
1771         is an optional BSD extension.
1772
1773         [BZ #10254]
1774         * manual/stdio.texi (Opening Streams): Document additional fopen
1775         parameters.
1776
1777 2012-04-09  Roland McGrath  <roland@hack.frob.com>
1778
1779         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
1780         %eax without telling the compiler.
1781
1782 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
1783
1784         [BZ # 13963]
1785         * manual/install.texi: Use sourceware.org.
1786
1787 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1788
1789         [BZ #13873]
1790         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
1791         (__ieee754_pow): Generate overflow and underflow using huge*huge
1792         and tiny*tiny rather than just returning constant infinity or zero
1793         for large exponents.
1794         * math/libm-test.inc (pow_test): Require overflow exceptions for
1795         applicable cases of large exponents.
1796
1797         [BZ #706]
1798         * sysdeps/i386/fpu/e_pow.S (p10): New object.
1799         (__ieee754_pow): Use iterative multiplication algorithm only for
1800         integer exponents with absolute value below 1024.  Check for odd
1801         integer exponents when using algorithm for real exponents.
1802         * math/libm-test.inc (pow_test): Add more tests.
1803         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1804
1805 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
1806
1807         [BZ #13705]
1808         * math/libm-test.inc (exp_test): Do not allow overflow exception
1809         on underflow test.
1810
1811 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
1812
1813         [BZ #13705]
1814         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
1815         instead of __kernel_standard_f.
1816
1817 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
1818
1819         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
1820         * sysdeps/x86_64/memset_chk.S: Likewise.
1821
1822 2012-04-08  Andreas Jaeger  <aj@suse.de>
1823
1824         [BZ #10153]
1825         * manual/startup.texi (Environment Access): Describe return value
1826         for putenv and setenv.
1827
1828         [BZ #6895]
1829         * manual/filesys.texi (Directory Entries): Add description for
1830         DT_LNK.
1831
1832         [BZ #6890]
1833         * manual/filesys.texi (Directory Entries): Clarify that it's file
1834         system not operating system in the description of DT_UNKNOWN.
1835
1836         [BZ #6578]
1837         * manual/syslog.texi (closelog): Fix reference, it's openlog.
1838
1839 2012-04-08  Stephen Compall  <s11@member.fsf.org>
1840
1841         [BZ #6649]
1842         * manual/llio.texi (Opening and Closing Files): Add cross
1843         reference to explain mode argument.
1844
1845 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
1846
1847         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
1848         * sysdeps/x86_64/memset_chk.S: Likewise.
1849
1850 2012-04-07  David S. Miller  <davem@davemloft.net>
1851
1852         * elf/elf.h (R_SPARC_WDISP10): Define.
1853         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
1854         R_SPARC_SIZE32.
1855         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
1856         R_SPARC_SIZE64 and R_SPARC_H34.
1857
1858 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
1859
1860         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
1861         conditions and remove no longer applicable assertion.
1862
1863 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1864
1865         * bits/byteswap.h: Include <features.h>.
1866         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1867         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1868
1869 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1870
1871         * bits/byteswap.h (__bswap_16): Removed.
1872         Include <bits/byteswap-16.h> to get __bswap_16.
1873         * sysdeps/i386/bits/byteswap.h: Likewise.
1874         * sysdeps/s390/bits/byteswap.h: Likewise.
1875         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1876         * bits/byteswap-16.h: New file.
1877         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1878         * sysdeps/s390/bits/byteswap-16.h: Likewise.
1879         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
1880         * string/Makefile (headers): Add bits/byteswap-16.h.
1881
1882 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1883
1884         [BZ #13895]
1885         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
1886         extra indirection.
1887         * nss/Makefile (tests-static, tests): Add tst-nss-static.
1888         * nss/tst-nss-static.c: New.
1889
1890 2012-04-06  Robert Millan  <rmh@gnu.org>
1891
1892         [BZ #6486]
1893         * manual/llio.texi (File Position Primitive): lseek
1894         refers to WHENCE when it really means OFFSET.
1895
1896 2012-04-06  Andreas Jaeger  <aj@suse.de>
1897
1898         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
1899         strncmp declarations.
1900
1901         * abilist/libc.abilist: Add __poll and __ppoll.
1902
1903 2012-04-05  David S. Miller  <davem@davemloft.net>
1904
1905         * scripts/check-local-headers.sh: Accept a host triplet in the
1906         path matched by the exclude regexp.
1907
1908         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
1909         definition.
1910         * sysdeps/powerpc/powerpc32/dl-machine.h
1911         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
1912         * sysdeps/s390/s390-32/dl-machine.h
1913         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1914         * sysdeps/sparc/sparc32/dl-machine.h
1915         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1916         * sysdeps/sparc/sparc64/dl-machine.h
1917         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1918
1919         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
1920         lazy binding.
1921         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
1922         undefined symbol errors.
1923
1924         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
1925         DT_NEEDED entries.
1926
1927 2012-04-05  Michael Matz  <matz@suse.de>
1928
1929         [BZ #13592]
1930         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
1931
1932 2012-04-05  Andreas Jaeger  <aj@suse.de>
1933
1934         [BZ #13908]
1935         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
1936         comment.
1937
1938 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1939
1940         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
1941         which ROUND is no valid rounding mode.
1942
1943 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1944
1945         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
1946         read again.
1947         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
1948
1949 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1950
1951         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
1952         an exception using FPU order intentionally.
1953
1954 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1955
1956         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
1957         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
1958         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
1959         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
1960
1961 2012-04-05  Simon Josefsson  <simon@josefsson.org>
1962
1963         [BZ #12340]
1964         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
1965         EINVAL when BUFLEN is too smal.
1966
1967 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1968
1969         [BZ #13553]
1970         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
1971         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1972
1973 2012-04-03  Andreas Jaeger  <aj@suse.de>
1974
1975         [BZ #13938]
1976         * manual/setjmp.texi (System V contexts): Fix sentence.
1977
1978         [BZ #13926]
1979         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
1980         New macro for this case.
1981         [!__GNUC__] (__bswap_64): New inline function for this case.
1982         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1983         * bits/byteswap.h: Likewise.
1984         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
1985         ull, guard with __GLIBC_HAVE_LONG_LONG.
1986
1987         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
1988         __GLIBC_HAVE_LONG_LONG.
1989
1990         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
1991         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
1992
1993 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1994
1995         [BZ #13691]
1996         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
1997         inptr and inend, rather than using last_ch.
1998
1999 2012-04-02  David S. Miller  <davem@davemloft.net>
2000
2001         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
2002         * stdio-common/printf-parse.h (read_int): Change return type to
2003         'int', return -1 on INT_MAX overflow.
2004         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
2005         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
2006         overflows INT_MAX.  Check for overflow of in-format-string precision
2007         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
2008         SIZE_MAX not INT_MAX for integer overflow test.
2009         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
2010         skip the construct in the format string but do not record anything.
2011         * stdio-common/bug22.c: Adjust to test both width/prevision
2012         INT_MAX overflow as well as total length INT_MAX overflow.  Check
2013         explicitly for proper errno values.
2014
2015 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2016
2017         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
2018         CHAR_MAX.
2019         * string/test-strcmp.c [! WIDE]: Likewise.
2020         * time/tst-mktime2.c: Likewise for INT_MAX.
2021         * string/test-string.h: #include <sys/param.h> for MIN.
2022
2023         * csu/init-first.c (__libc_init_first): Call __ctype_init.
2024         * sysdeps/i386/init-first.c (init): Likewise.
2025         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
2026         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
2027         * sysdeps/sh/init-first.c (init): Likewise.
2028
2029 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
2030
2031         * po/ru.po: Update from translation team.
2032         * po/vi.po: Likewise.
2033
2034 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2035
2036         * resolv/nss_dns/dns-host.c: Merge copyright years.
2037
2038 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2039
2040         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
2041         Optimize memcpy with prefetch if
2042         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
2043         src, dst pointers have unequal 16 byte alignments.
2044
2045 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2046
2047         [BZ #13928]
2048         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
2049         from a CNAME entry and return the minimum ttl for the query.
2050         (gaih_getanswer_slice): Likewise.
2051
2052 2012-03-30  Jeff Law  <law@redhat.com>
2053
2054         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
2055         due to long keys.
2056         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
2057         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
2058
2059         * resolv/nss_dns/dns-host.c: Update copyright year.
2060
2061 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
2062
2063         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
2064         requests to save a system call.  Fix check that all bytes are sent.
2065
2066         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
2067         comments for sendmmsg.
2068
2069 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2070
2071         [BZ #13691]
2072         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
2073         with only 1 character between 0x0041 and 0x01b0.
2074         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
2075         * wcsmbs/tst-mbsnrtowcs.c: New file.
2076
2077 2012-03-29  David S. Miller  <davem@davemloft.net>
2078
2079         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
2080         small copies by hand.
2081
2082 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2083
2084         [BZ #13761]
2085         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
2086         _nss_compat_initgroups_dyn): Fall back to malloc/free
2087         for large group memberships.
2088
2089 2012-03-28  David S. Miller  <davem@davemloft.net>
2090
2091         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
2092         that branches into memcpy.
2093         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2094         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
2095         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2096         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
2097         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
2098         bits.
2099         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
2100         implementation too.
2101         * sysdeps/sparc/mempcpy.S: New file.
2102
2103         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
2104         the IFUNC routine in the libc case.
2105         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2106
2107         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
2108         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
2109         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
2110         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
2111         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
2112         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
2113         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
2114         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
2115
2116         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
2117         loop to 256 bytes instead of 64 bytes and fix test signedness.
2118
2119         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
2120         * sysdeps/sparc/sparc32/Makefile: rather than here...
2121         * sysdeps/sparc/sparc64/Makefile: and here.
2122
2123 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
2124
2125         * malloc/mallocbug.c: Avoid warnings about unused variables.
2126
2127 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2128
2129         [BZ #13760]
2130         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
2131         in the right place. Discard and retry query if response is
2132         larger than input buffer size.
2133
2134 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
2135
2136         [BZ #369]
2137         [BZ #2678]
2138         [BZ #3866]
2139         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
2140         x for large integer exponent.
2141         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2142         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
2143         sign of result as needed afterwards.
2144         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2145         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
2146         result for underflowing pow the same as for overflow.
2147         (__kernel_standard_l): Handle powl overflow and underflow here
2148         rather than calling __kernel_standard.
2149         * math/libm-test.inc (pow_test): Add more tests.
2150
2151         [BZ #3868]
2152         [BZ #13879]
2153         [BZ #13910]
2154         [BZ #13911]
2155         [BZ #13912]
2156         [BZ #13913]
2157         [BZ #13915]
2158         [BZ #13916]
2159         [BZ #13917]
2160         [BZ #13918]
2161         [BZ #13919]
2162         [BZ #13920]
2163         [BZ #13921]
2164         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
2165         * sysdeps/ieee754/k_standard.c: Include <float.h>.
2166         (__kernel_standard_l): New function.
2167         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
2168         __kernel_standard.
2169         * math/w_acosl.c (__acosl): Likewise.
2170         * math/w_asinl.c (__asinl): Likewise.
2171         * math/w_atan2l.c (__atan2l): Likewise.
2172         * math/w_atanhl.c (__atanhl): Likewise.
2173         * math/w_coshl.c (__coshl): Likewise.
2174         * math/w_exp10l.c (__exp10l): Likewise.
2175         * math/w_exp2l.c (__exp2l): Likewise.
2176         * math/w_fmodl.c (__fmodl): Likewise.
2177         * math/w_hypotl.c (__hypotl): Likewise.
2178         * math/w_j0l.c (__j0l, __y0l): Likewise.
2179         * math/w_j1l.c (__j1l, __y1l): Likewise.
2180         * math/w_jnl.c (__jnl, __ynl): Likewise.
2181         * math/w_lgammal.c (__lgammal): Likewise.
2182         * math/w_log10l.c (__log10l): Likewise.
2183         * math/w_log2l.c (__log2l): Likewise.
2184         * math/w_logl.c (__logl): Likewise.
2185         * math/w_powl.c (__powl): Likewise.
2186         * math/w_remainderl.c (__remainderl): Likewise.
2187         * math/w_scalbl.c (sysv_scalbl): Likewise.
2188         * math/w_sinhl.c (__sinhl): Likewise.
2189         * math/w_sqrtl.c (__sqrtl): Likewise.
2190         * math/w_tgammal.c (__tgammal): Likewise.
2191         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
2192         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
2193         * math/libm-test.inc (acos_test): Add more tests.
2194         (acosh_test): Likewise.
2195         (asin_test): Likewise.
2196         (atanh_test): Likewise.
2197         (exp_test): Likewise.
2198         (exp10_test): Likewise.
2199         (exp2_test): Likewise.
2200         (expm1_test): Likewise.
2201         (lgamma_test): Likewise.
2202         (log_test): Likewise.
2203         (log10_test): Likewise.
2204         (log1p_test): Likewise.
2205         (log2_test): Likewise.
2206         (pow_test): Do not allow some spurious overflow exceptions.
2207         (sqrt_test): Add more tests.
2208         (tgamma_test): Likewise.
2209         (y0_test): Likewise.
2210         (y1_test): Likewise.
2211         (yn_test): Likewise.
2212
2213 2012-03-27  Anton Blanchard  <anton@samba.org>
2214
2215         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
2216         MAP_HUGETLB.
2217         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2218         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2219         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2220
2221 2012-03-27  David S. Miller  <davem@davemloft.net>
2222
2223         * conform/Makefile: Run run-conformtest.sh using $(BASH).
2224
2225         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
2226         have-as-vis3 check.
2227
2228 2012-03-27  Andreas Jaeger  <aj@suse.de>
2229
2230         * sysdeps/x86_64/elf/configure.in: Moved to ...
2231         * sysdeps/x86_64/configure.in: ... here.
2232         * sysdeps/x86_64/elf/start.S: Moved to ...
2233         * sysdeps/x86_64/start.S: ... here.
2234         * sysdeps/x86_64/elf/configure: Delete.
2235
2236         * sysdeps/x86_64/configure.in: Merge contents from
2237         sysdeps/i386/configure.in (without i686 check).
2238
2239         * sysdeps/i386/elf/Versions: Merge into ...
2240         * sysdeps/i386/Versions: ... this.
2241         * sysdeps/i386/elf/Versions: Delete file.
2242         * sysdeps/i386/elf/start.S: Moved to ...
2243         * sysdeps/i386/start.S: ...here.
2244         * sysdeps/i386/elf/configure.in: Merge into...
2245         * sysdeps/i386/configure.in: ...here.
2246         * sysdeps/i386/elf/configure.in: Delete file.
2247         * sysdeps/i386/elf/configure: Delete file.
2248
2249         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
2250         * debug/backtracesyms.c: ... here.
2251         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
2252         * debug/backtracesymsfd.c: ... here.
2253         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
2254         * sysdeps/generic/ifunc-sel.h: ... here.
2255
2256         * sysdeps/unix/i386/start.c: Delete file.
2257         * sysdeps/unix/sparc/start.c: Delete file.
2258         * sysdeps/unix/start.c: Delete file.
2259
2260         * sysdeps/sh/elf/configure.in: Moved to ...
2261         * sysdeps/sh/configure.in: ... here.
2262         * sysdeps/sh/elf/start.S: Moved to ...
2263         * sysdeps/sh/start.S: ... here.
2264         * sysdeps/sh/elf/configure: Delete file.
2265
2266         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
2267         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
2268         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
2269         * sysdeps/powerpc/powerpc64/entry.h: ... here.
2270         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
2271         * sysdeps/powerpc/powerpc64/start.S: here.
2272         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
2273         * sysdeps/powerpc/powerpc64/Makefile: ... this.
2274         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
2275         * sysdeps/powerpc/powerpc64/configure.in: ... this.
2276         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
2277
2278         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
2279         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
2280         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
2281         * sysdeps/powerpc/powerpc32/start.S: ... here.
2282         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
2283         * sysdeps/powerpc/powerpc32/configure.in: ... this.
2284         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
2285
2286         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
2287         * sysdeps/powerpc/ifunc-sel.h: ... here.
2288         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
2289         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
2290
2291         * sysdeps/sparc/elf/configure.in: Moved to ...
2292         * sysdeps/sparc/configure.in: ... here.
2293         * sysdeps/sparc/elf/configure: Delete file.
2294         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
2295         * sysdeps/sparc/sparc32/start.S: ... here.
2296         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
2297         * sysdeps/sparc/sparc64/start.S: ... here.
2298         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
2299         * sysdeps/sparc/sparc32/Makefile: ... this.
2300         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
2301         * sysdeps/sparc/sparc64/Makefile: ... this.
2302
2303         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
2304         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
2305         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
2306         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
2307         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
2308         * sysdeps/s390/s390-32/setjmp.S: ... here.
2309         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
2310         * sysdeps/s390/s390-32/configure.in: ... here.
2311         * sysdeps/s390/s390-32/elf/configure: Delete file.
2312         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
2313         * sysdeps/s390/s390-32/start.S: ... here.
2314
2315         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
2316         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
2317         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
2318         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
2319         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
2320         * sysdeps/s390/s390-64/setjmp.S: ... here.
2321         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
2322         * sysdeps/s390/s390-64/configure.in: ... here
2323         * sysdeps/s390/s390-64/elf/configure: Delete file.
2324         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
2325         * sysdeps/s390/s390-64/start.S: ... here.
2326         * sysdeps/s390/s390-64/elf/configure: Delete.
2327
2328         * configure.in: Remove support for elf directories in sysdeps.
2329
2330         * configure: Regenerated.
2331         * sysdeps/i386/configure: Regenerated.
2332         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2333         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2334         * sysdeps/s390/s390-32/configure: Regenerated.
2335         * sysdeps/s390/s390-64/configure: Regenerated.
2336         * sysdeps/sh/configure: Regenerated.
2337         * sysdeps/sparc/configure: Regenerated.
2338         * sysdeps/x86_64/configure: Regenerated.
2339
2340 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
2341
2342         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2343
2344         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
2345         denormal result into account.
2346
2347 2012-03-25  Roland McGrath  <roland@hack.frob.com>
2348
2349         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
2350         Reported by Allan McRae <allan@archlinux.org>.
2351
2352 2012-03-23  Jeff Law  <law@redhat.com>
2353
2354         * nss/getnssent.c (__nss_getent): Fix typo.
2355
2356 2012-03-23  David S. Miller  <davem@davemloft.net>
2357
2358         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2359
2360 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2361
2362         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
2363         to pad to uint64_t for each field.
2364         (dl_tls_index): Replace unsigned long with uint64_t.
2365
2366 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
2367         Paul Pluzhnikov  <ppluzhnikov@google.com>
2368
2369         [BZ #6528]
2370         * grp/Makefile (otherlibs): Don't set it.
2371         * inet/Makefile (otherlibs): Likewise.
2372         * login/Makefile (otherlibs): Likewise.
2373         * nscd/Makefile (otherlibs): Likewise.
2374         * posix/Makefile (otherlibs): Likewise.
2375         * pwd/Makefile (otherlibs): Likewise.
2376         * rt/Makefile (otherlibs): Likewise.
2377         * sunrpc/Makefile (otherlibs): Likewise.
2378         * nss/Makefile (otherlibs): Likewise.
2379         Add libnss_files to routines and static-only-routines.
2380         ($(objpfx)getent): Remove rule.
2381         * resolv/Makefile: Add libnss_dns and libresolv to routines and
2382         static-only-routines.
2383
2384 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2385
2386         [BZ #13892]
2387         * math/s_cexp.c: Include <float.h>.
2388         (__cexp): Handle exp result overflowing not necessarily
2389         overflowing both real and imaginary parts of result.
2390         * math/s_cexpf.c: Likewise.
2391         * math/s_cexpl.c: Likewise.
2392         * math/libm-test.inc (cexp_test): Add more tests.
2393         * sysdeps/i386/fpu/libm-test-ulps: Update.
2394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2395
2396 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2397
2398         * include/link.h (ELFW): New macro.
2399         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
2400         Replace ELF64_R_TYPE with ELFW(R_TYPE).
2401
2402 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2403
2404         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
2405         with uint64_t.
2406
2407 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2408
2409         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
2410         declaration.
2411         (struct La_x32_retval): Likewise.
2412
2413 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2414
2415         * sysdeps/x86_64/preconfigure.in: New file.
2416         * sysdeps/x86_64/preconfigure: New generated file.
2417
2418 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2419
2420         [BZ #13824]
2421         * math/e_exp2l.c: Include <float.h>.
2422         (__ieee754_exp2l): Handle overflow and underflow cases
2423         separately.  Only pass fractional part of argument to
2424         __ieee754_expl.
2425         * math/libm-test.inc (exp2_test): Add more tests.
2426
2427         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
2428         negating x to take absolute value.
2429         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
2430         Likewise.
2431         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
2432         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
2433         Likewise.
2434         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
2435         computing low part if x was negated.
2436         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
2437
2438 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2439
2440         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
2441         la_x32_gnu_pltexit.
2442         (pltexit): Cast int_retval to ptrdiff_t.
2443         * elf/tst-auditmod3b.c: Likewise.
2444         * elf/tst-auditmod4b.c: Likewise.
2445         * elf/tst-auditmod5b.c: Likewise.
2446         * elf/tst-auditmod6b.c: Likewise.
2447         * elf/tst-auditmod6c.c: Likewise.
2448         * elf/tst-auditmod7b.c: Likewise.
2449
2450         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
2451         and x32_gnu_pltexit.
2452
2453         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
2454         __ELF_NATIVE_CLASS.
2455         (La_x32_regs): New macro.
2456         (La_x32_retval): Likewise.
2457         (la_x32_gnu_pltenter): New function prototype.
2458         (la_x32_gnu_pltexit): Likewise.
2459
2460 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
2461
2462         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
2463         exponent.
2464
2465         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2466
2467         * configure.in (libc_cv_cc_nofma): Check for option to disable
2468         generation of FMA instructions.
2469         * configure: Regenerate.
2470         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
2471         * sysdeps/ieee754/dbl-64/Makefile: New file.
2472         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2473         Remove brandred-fma4.
2474         (CFLAGS-brandred-fma4.c): Remove.
2475         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
2476         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
2477         define.
2478         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
2479         define.
2480
2481 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2482
2483         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2484         LLONG_MAX != LONG_MAX.
2485         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2486         (_fitoa_word): Likewise.
2487         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
2488         LLONG_MAX != LONG_MAX.
2489         * stdio-common/_itowa.h: Include <_itoa.h>.
2490         (_itowa_word): Use _ITOA_WORD_TYPE on value.
2491         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
2492         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
2493         only if not defined.
2494         (_ITOA_WORD_TYPE): Likewise.
2495         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2496         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
2497
2498 2012-03-21  David S. Miller  <davem@davemloft.net>
2499
2500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2501
2502 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2503
2504         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
2505         of x86_64 when setting libc_cv_slibdir, libdir and
2506         libc_cv_localedir.
2507         * sysdeps/unix/sysv/linux/configure: Regenerated.
2508
2509 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2510
2511         * manual/lang.texi (Old Varargs): Remove section.
2512         (How Variadic): Update menu.
2513         (va_start): Do not mention varargs.h.
2514
2515 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2516             Joseph Myers  <joseph@codesourcery.com>
2517
2518         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
2519         link test.
2520         * configure: Regenerated.
2521
2522 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2523
2524         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
2525         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
2526         conformtest.pl
2527
2528 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2529
2530         * NOTES: Remove.
2531         * Makefile (files-for-dist): Remove NOTES.
2532         (NOTES): Remove rule.
2533         * README: Don't refer to NOTES.
2534         * manual/creature.texi: Don't include macros.texi.
2535         * manual/intro.texi (creature.texi): Remove comment referring to
2536         NOTES.
2537
2538         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
2539         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
2540         * configure: Regenerated.
2541         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
2542         LIBC_TRY_CC_OPTION.
2543         (libc_cv_as_i686): Likewise.
2544         (libc_cv_cc_avx): Likewise.
2545         (libc_cv_cc_sse2avx): Likewise.
2546         (libc_cv_cc_fma4): Likewise.
2547         (libc_cv_cc_novzeroupper): Likewise.
2548         * sysdeps/i386/configure: Regenerated.
2549
2550         [BZ #13883]
2551         * sysdeps/i386/fpu/s_cexp.S: Remove.
2552         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
2553         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
2554         * math/libm-test.inc (cexp_test): Add more tests.
2555         * sysdeps/i386/fpu/libm-test-ulps: Update.
2556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2557
2558 2012-03-21  Allan McRae  <allan@archlinux.org>
2559
2560         * timezone/Makefile: Do not install iso3166.tab and zone.tab
2561
2562 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2563
2564         [BZ #13871]
2565         * math/w_exp2.c: Do not include <float.h>.
2566         (o_threshold, u_threshold): Remove.
2567         (__exp2): Calculate result before checking finiteness and calling
2568         __kernel_standard.
2569         * math/w_exp2f.c: Likewise.
2570         * math/w_exp2l.c: Likewise.
2571         * math/libm-test.inc (exp2_test): Require overflow exception for
2572         1e6 input.
2573
2574         [BZ #3866]
2575         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
2576         range of signed 64-bit integers before using fistpll.  Remove
2577         checks for whether integers fit in mantissa bits.
2578         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
2579         the range of signed 32-bit integers before using fistpl.  Remove
2580         checks for whether integers fit in mantissa bits.
2581         * sysdeps/i386/fpu/e_powl.S (p64): New object.
2582         (__ieee754_powl): Test for y outside the range of signed 64-bit
2583         integers before using fistpll.  Reduce 64-bit values to 63-bit
2584         ones as needed.
2585         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
2586         divide-by-zero is raised for zero to large negative powers.
2587         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
2588         (__ieee754_powl): Test for y outside the range of signed 64-bit
2589         integers before using fistpll.  Reduce 64-bit values to 63-bit
2590         ones as needed.
2591         * math/libm-test.inc (pow_test): Add more tests.
2592
2593 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2594
2595         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
2596         <stdio-common/_itoa.h>.
2597         * debug/segfault.c: Likewise.
2598         * elf/dl-cache.c: Likewise.
2599         * elf/dl-minimal.c: Likewise.
2600         * elf/dl-misc.c: Likewise.
2601         * elf/dl-sysdep.c: Likewise.
2602         * elf/dl-version.c: Likewise.
2603         * elf/rtld.c: Likewise.
2604         * hurd/hurdsock.c: Likewise.
2605         * hurd/lookup-retry.c: Likewise.
2606         * malloc/malloc.c: Likewise.
2607         * malloc/mtrace.c: Likewise.
2608         * nscd/nscd_getgr_r.c: Likewise.
2609         * nscd/nscd_getpw_r.c: Likewise.
2610         * nscd/nscd_getserv_r.c: Likewise.
2611         * posix/getopt_init.c: Likewise.
2612         * posix/wordexp.c: Likewise.
2613         * stdio-common/_itoa.c: Likewise.
2614         * stdio-common/printf_fphex.c: Likewise.
2615         * stdio-common/vfprintf.c: Likewise.
2616         * string/_strerror.c: Likewise.
2617         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2618         * sysdeps/i386/i686/hp-timing.h: Likewise.
2619         * sysdeps/mach/_strerror.c: Likewise.
2620         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
2621         * sysdeps/mach/hurd/sethostid.c: Likewise.
2622         * sysdeps/mach/hurd/xmknodat.c: Likewise.
2623         * sysdeps/mach/xpg-strerror.c: Likewise.
2624         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2625         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2626         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
2627         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
2628         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
2629         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
2630         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2631         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2632         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
2633         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
2634         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
2635         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2636         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
2637         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
2638         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
2639         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2640         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
2641         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
2642         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2643         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2644         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
2645
2646         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
2647
2648         * stdio-common/_itoa.h: Moved to ...
2649         * sysdeps/generic/_itoa.h: Here.
2650
2651         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
2652
2653         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
2654         instead of "_itoa.h" and "_itowa.h".
2655         * stdio-common/vfprintf.: Likewise.
2656
2657 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2658
2659         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
2660         <bits/wordsize.h>.
2661         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
2662         (__signbit): Likwise.
2663         (llrintf): Likwise.
2664         (llrint): Likwise.
2665
2666 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2667
2668         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
2669         __WORDSIZE != 64.
2670
2671 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
2672
2673         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
2674         OVERFLOW_EXCEPTION_OK.
2675         * math/libm-test.inc ("Philosophy"): Update comment about
2676         exception testing.
2677         (OVERFLOW_EXCEPTION): Define.
2678         (OVERFLOW_EXCEPTION_OK): Likewise.
2679         (INVALID_EXCEPTION_OK): Renumber.
2680         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2681         (IGNORE_ZERO_INF_SIGN): Likewise.
2682         (test_exceptions): Handle FE_OVERFLOW.
2683         (exp10_test): Expect overflow exceptions.
2684         (exp2_test): Likewise.
2685         (expm1_test): Likewise.
2686         (nextafter_test): Likewise.
2687         (pow_test): Likewise.
2688         (scalbn_test): Likewise.
2689         (scalbln_test): Likewise.
2690
2691 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2692
2693         * sysdeps/x86_64/bits/atomic.h
2694         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
2695         64bit integer.
2696         (atomic_exchange_acq): Likewise.
2697         (__arch_exchange_and_add_body): Likewise.
2698         (__arch_add_body): Likewise.
2699         (atomic_add_negative): Likewise.
2700         (atomic_add_zero): Likewise.
2701
2702 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2703
2704         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
2705         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
2706
2707 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2708
2709         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
2710         Check __x86_64__ instead of __WORDSIZE.
2711
2712 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2713
2714         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
2715
2716 2012-03-19  David S. Miller  <davem@davemloft.net>
2717
2718         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2719
2720         * sysdeps/sparc/fpu/fenv_private.h: New file.
2721         * sysdeps/sparc/fpu/math_private.h: Use it.
2722         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
2723         Remove.
2724         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
2725         (libc_feholdexcept_setroundl): Remove.
2726         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
2727         Remove.
2728         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
2729         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
2730
2731 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2732
2733         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
2734         int64_t instead of long int.
2735         (INSERT_WORDS64): Likwise.
2736
2737 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2738
2739         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
2740         _Unwind_GetCFA return to _Unwind_Ptr first.
2741
2742 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
2743
2744         [BZ #13629]
2745         * math/s_clog.c: Include <float.h>.
2746         (__clog): Scale large or subnormal inputs.
2747         * math/s_clogf.c: Likewise.
2748         * math/s_clogl.c: Likewise.
2749         * math/s_clog10.c: Include <float.h>.
2750         (M_LOG10_2): Define.
2751         (__clog10): Scale large or subnormal inputs.
2752         * math/s_clog10f.c: Likewise.
2753         * math/s_clog10l.c: Likewise.
2754         * math/libm-test.inc (clog_test): Add more tests.
2755         (clog10_test): Likewise.
2756         * sysdeps/i386/fpu/libm-test-ulps: Update.
2757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2758
2759         [BZ #11451]
2760         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
2761         x and y.
2762         * math/libm-test.inc (atan2_test): Add another test.
2763
2764         * Makerules (common-objdir-compile): Remove.
2765         * sysdeps/unix/Makefile (config-generated): Do not add
2766         $(unix-generated) to variable.
2767         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
2768         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
2769         Remove rule.
2770         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
2771         Likewise.
2772         [generic bits/local_lim.h] (before-compile): Do not append to
2773         variable.
2774         [generic bits/local_lim.h] (common-generated): Likewise.
2775         [generic sys/param.h] (before-compile): Do not append to variable.
2776         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
2777         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
2778         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
2779         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
2780         include.
2781         [generic sys/param.h] (sys/param.h-includes): Remove variable.
2782         [generic sys/param.h] (sys/param.h-includes): Remove rule.
2783         [generic sys/param.h] ($(addprefix
2784         $(common-objpfx),$(sys/param.h-includes))): Likewise.
2785         [generic sys/param.h] (common-generated): Do not append to
2786         variable.
2787         [generic sys/param.h] (sysdep_headers): Likewise.
2788         [generic bits/errno.h] (before-compile): Do not append to
2789         variable.
2790         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
2791         rule.
2792         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
2793         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
2794         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
2795         [generic bits/errno.h] (common-generated): Do not append to
2796         variable.
2797         [generic bits/ioctls.h] (before-compile): Do not append to
2798         variable.
2799         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
2800         rule.
2801         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
2802         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
2803         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
2804         rule.
2805         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
2806         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
2807         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
2808         [generic bits/ioctls.h] (common-generated): Do not append to
2809         variable.
2810         [generic sys/syscall.h] (syscall.h): Remove variable.
2811         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
2812         rule.
2813         [generic sys/syscall.h] (before-compile): Do not append to
2814         variable.
2815         [generic sys/syscall.h] (common-generated): Likewise.
2816         * sysdeps/unix/errnos-tmpl.c: Remove file.
2817         * sysdeps/unix/errnos.awk: Likewise.
2818         * sysdeps/unix/ioctls-tmpl.c: Likewise.
2819         * sysdeps/unix/ioctls.awk: Likewise.
2820         * sysdeps/unix/mk-local_lim.c: Likewise.
2821         * sysdeps/unix/snarf-ioctls: Likewise.
2822
2823 2012-03-19  Richard Henderson  <rth@twiddle.net>
2824
2825         * sysdeps/i386/fpu/fenv_private.h: New file.
2826         * sysdeps/i386/fpu/math_private.h: Use it.
2827         (math_opt_barrier, math_force_eval): Remove.
2828         (libc_feholdexcept_setround_53bit): Remove.
2829         (libc_feupdateenv_53bit): Remove.
2830         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2831         (math_opt_barrier, math_force_eval): Remove.
2832         (libc_feholdexcept): Remove.
2833         (libc_feholdexcept_setround): Remove.
2834         (libc_fetestexcept, libc_fesetenv): Remove.
2835         (libc_feupdateenv_test): Remove.
2836         (libc_feupdateenv, libc_feholdsetround): Remove.
2837         (libc_feresetround): Remove.
2838
2839         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
2840         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
2841
2842         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
2843         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
2844         (libc_feupdateenv_testl): New.
2845         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
2846         (libc_feupdateenv_testf): New.
2847         (libc_feupdateenv): Use libc_feupdateenv_test.
2848         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
2849         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
2850
2851         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
2852         (libc_feholdsetroundf, libc_feholdsetroundl): New.
2853         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
2854         (libc_feresetround_noex): New.
2855         (libc_feresetround_noexf): New.
2856         (libc_feresetround_noexl): New.
2857         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
2858         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
2859         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
2860         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
2861         SET_RESTORE_ROUND.
2862         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2863         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
2864         (__cos): Likewise.
2865         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
2866         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
2867         SET_RESTORE_ROUND_NOEX.
2868         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
2869         SET_RESTORE_ROUND_NOEXF.
2870         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
2871         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
2872         (libc_feholdsetroundf): New.
2873         (libc_feresetround, libc_feresetroundf): New.
2874
2875         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
2876         (libc_feholdexcept_setround_53bit): Convert from macro to function.
2877         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
2878
2879         * sysdeps/generic/math_private.h: Include <fenv.h>.
2880         (default_libc_feholdexcept): New.
2881         (default_libc_feholdexcept_setround): New.
2882         (default_libc_fesetenv, default_libc_feupdateenv): New.
2883         (libc_feholdexcept): Only define if undefined.
2884         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
2885         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
2886         (libc_feholdexcept_setroundl): Likewise.
2887         (libc_feholdexcept_setround_53bit): Likewise.
2888         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
2889         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
2890         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
2891         (libc_feupdateenv_53bit): Likewise.
2892         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
2893         (libc_feholdexcept): Convert from macro to inline function.
2894         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
2895         (libc_fesetenv, libc_feupdateenv): Likewise.
2896
2897         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
2898         not previously defined.
2899         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
2900         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
2901         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
2902         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
2903         * sysdeps/ieee754/flt-32/math_private.h: New file.
2904         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
2905         math_private.h below SET_FLOAT_WORD.
2906         (__isnan, __isinf_ns, __finite): Remove.
2907         (__isnanf, __isinf_nsf, __finitef): Remove.
2908
2909 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
2910
2911         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2912
2913 2012-03-17  David S. Miller  <davem@davemloft.net>
2914
2915         [BZ #6471]
2916         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
2917         for 2.16.
2918
2919 2012-03-16  David S. Miller  <davem@davemloft.net>
2920
2921         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
2922         warnings.
2923
2924         [BZ #6471]
2925         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
2926         properly.
2927         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
2928         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
2929         sysdep_routines when subdir is sysvipc.
2930         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
2931         __getshmlba helper.
2932
2933         * sysdeps/sparc/fpu/libm-test/ulps: Update.
2934
2935 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2936
2937         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
2938         [__LP64__].
2939
2940 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2941
2942         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
2943         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
2944         (__lround): Renamed to ...
2945         (__llround): This.  Replace long int with long long int.
2946         Define lround functions as aliases of llround functions.
2947         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
2948
2949 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2950
2951         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2952         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
2953         adresses to uintptr_t.  Replace "long int" and "unsigned long
2954         int" with "greg_t" on va_arg.
2955
2956 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2957
2958         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
2959         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
2960
2961         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
2962         Move e_machine check before EI_CLASS check.  Handle x32
2963         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
2964         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
2965         SKIP_EM_IA_64 and include
2966         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
2967
2968         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
2969         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
2970         (add_system_dir): New macro.
2971
2972         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
2973         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
2974
2975 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2976
2977         [BZ #2551]
2978         [BZ #2552]
2979         [BZ #2553]
2980         [BZ #2554]
2981         [BZ #2562]
2982         [BZ #2563]
2983         [BZ #2565]
2984         [BZ #2566]
2985         [BZ #2576]
2986         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
2987         (y0): Likewise.
2988         * math/w_j0f.c (j0f): Likewise.
2989         (y0f): Likewise.
2990         * math/w_j0l.c (__j0l): Likewise.
2991         (__y0l): Likewise.
2992         * math/w_j1.c (j1): Likewise.
2993         (y1): Likewise.
2994         * math/w_j1f.c (j1f): Likewise.
2995         (y1f): Likewise.
2996         * math/w_j1l.c (__j1l): Likewise.
2997         (__y1l): Likewise.
2998         * math/w_jn.c (jn): Likewise.
2999         (yn): Likewise.
3000         * math/w_jnf.c (jnf): Likewise.
3001         (ynf): Likewise.
3002         * math/w_jnl.c (__jnl): Likewise.
3003         (__ynl): Likewise.
3004         * math/libm-test.inc (j0_test): Add more tests.
3005         (j1_test): Likewise.
3006         (jn_test): Likewise.  Add trailing semicolon to existing test.
3007         (y0_test): Likewise.
3008         (y1_test): Likewise.
3009         * sysdeps/i386/fpu/libm-test-ulps: Update.
3010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3011
3012         [BZ #13851]
3013         [BZ #13854]
3014         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
3015         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
3016         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
3017         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
3018         (__tanl): Set errno for infinite argument.
3019         * sysdeps/i386/fpu/mptan.c: Remove.
3020         * sysdeps/i386/fpu/s_tan.S: Likewise.
3021         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3022         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
3023         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3024         * math/libm-test.inc (tan_test): Add more tests and enable more
3025         tests for double and long double.
3026         * sysdeps/i386/fpu/libm-test-ulps: Update.
3027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3028
3029 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3030
3031         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
3032         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
3033
3034 2012-03-16  Roland McGrath  <roland@hack.frob.com>
3035
3036         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
3037         * configure.in: Use it for both main tree and add-ons.
3038         * configure: Regenerated.
3039
3040 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3041
3042         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
3043
3044 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3045
3046         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
3047         in comment.
3048
3049         [BZ #13851]
3050         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
3051         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
3052         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
3053         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
3054         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
3055         infinite argument.
3056         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
3057         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
3058         != 0 for prec == 2.
3059         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
3060         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
3061         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3062         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3063         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3064         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
3065         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
3066         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
3067         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3068         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
3069         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3070         * math/libm-test.inc (cos_test): Add more tests and enable more
3071         tests for long double.
3072         (sin_test): Likewise.
3073         (sincos_test): Likewise.
3074         * sysdeps/i386/fpu/libm-test-ulps: Update.
3075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3076
3077 2012-03-16  David S. Miller  <davem@davemloft.net>
3078
3079         * sysdeps/sparc/fpu/math_private.h: New file.
3080
3081 2012-03-15  David S. Miller  <davem@davemloft.net>
3082
3083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
3084         file.
3085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
3086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
3087         file.
3088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
3089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
3090         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
3091         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
3092         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
3093         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
3094         sysdep routines.
3095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3096
3097         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
3098         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
3099
3100         * sysdeps/sparc/sparc-ifunc.h: New file.
3101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
3102         sparc-ifunc.h
3103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3105         Likewise.
3106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
3107         Likewise.
3108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
3109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
3110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
3112         Likewise.
3113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
3115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
3117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
3118         Likewise.
3119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
3120         Likewise.
3121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
3123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
3124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
3125         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3126         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3127         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
3128         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
3129         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3130         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3131         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
3132         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
3133         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
3134         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
3135         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
3136         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
3137         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
3138         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
3139         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
3140         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
3141         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
3142         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
3143         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
3144         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
3145
3146 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3147
3148         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
3149         scaling.
3150         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3151
3152 2012-03-15  Andreas Jaeger  <aj@suse.de>
3153
3154         [BZ #13852]
3155         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
3156         ieee754/flt-32 implementation for sin, cos and sincos.
3157         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
3158         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3159         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3160         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3161         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
3162         ieee754/flt-32 implementation for tan.
3163
3164         * math/libm-test.inc (cos_test): Enable some large input tests for
3165         float as well
3166         (sin_test): Likewise.
3167         (sincos_test): Likewise.
3168         (tan_test): Add tests for large input.
3169
3170         * sysdeps/i386/fpu/libm-test-ulps: Update.
3171
3172 2012-03-15  Andreas Jaeger  <aj@suse.de>
3173
3174         [BZ #13658]
3175         * math/libm-test.inc (cos_test): Add more test cases.
3176         (sin_test): Likewise.
3177         (sincos_test): Likewise.
3178
3179 2012-03-15  Andreas Jaeger  <aj@suse.de>
3180
3181         [BZ #13837]
3182         * math/libm-test.inc (cos_test): Add a test case for large input
3183         value.
3184         (sin_test): Likewise.
3185         (sincos_test): Likewise.
3186
3187 2012-03-15  Andreas Jaeger  <aj@suse.de>,
3188         Joseph Myers  <joseph@codesourcery.com>
3189
3190         [BZ #13658]
3191         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
3192         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
3193         * sysdeps/i386/fpu/branred.c: Likewise.
3194         * sysdeps/i386/fpu/dosincos.c: Likewise.
3195         * sysdeps/i386/fpu/mpa.c: Likewise.
3196         * sysdeps/i386/fpu/s_cos.S: Likewise.
3197         * sysdeps/i386/fpu/s_sin.S: Likewise.
3198         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3199         * sysdeps/i386/fpu/sincos32.c: Likewise.
3200
3201         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
3202         Define.
3203         (libc_feupdateenv_53bit): Define.
3204         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
3205         Define.
3206         (libc_feupdateenv_53bit): Define.
3207
3208         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
3209         53 bit (without extend i386 double precision).
3210
3211         * math/libm-test.inc (sincos_test): Add tests for large input.
3212         (sin): Likewise.
3213         (cos): Likewise.
3214
3215         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
3216
3217 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3218
3219         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3220
3221 2012-03-15  David S. Miller  <davem@davemloft.net>
3222
3223         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
3224         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
3225         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
3226         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
3227         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
3228         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
3229         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
3230         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
3231         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
3232         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
3233         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
3234         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
3235         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
3236         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
3237         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
3238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
3239         file.
3240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
3241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
3242         file.
3243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
3244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
3245         file.
3246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
3247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
3248         file.
3249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
3250         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
3251         fmin/fmax sysdep routines.
3252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3253
3254 2012-03-14  David S. Miller  <davem@davemloft.net>
3255
3256         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
3257         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
3258         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
3259         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
3260         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
3261         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
3262         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
3263         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
3264         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
3265         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
3266         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
3267         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
3268         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
3269         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
3270         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
3271         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
3272         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
3273         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
3274         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
3275         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
3276         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
3277         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
3278         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
3279         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
3280         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
3281         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
3282         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
3283         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
3284         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
3285         routines.
3286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
3287         file.
3288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
3289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
3290         file.
3291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
3292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
3293         file.
3294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
3295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
3296         file.
3297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
3298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
3299         file.
3300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
3301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
3302         file.
3303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
3304         file.
3305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
3306         file.
3307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
3308         file.
3309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
3310         New file.
3311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
3312         file.
3313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
3314         file.
3315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
3316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
3317         file.
3318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
3319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
3320         file.
3321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
3322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
3323         file.
3324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
3325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
3326         VIS3 routines.
3327
3328         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3329         New file.
3330
3331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3332
3333         * sysdeps/sparc/configure.in: New file.
3334         * sysdeps/sparc/configure: Generate.
3335         * configure.in (libc_cv_sparc_as_vis3): Substitute.
3336         * configure: Regenerate.
3337         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
3338         * config.make.in (have-as-vis3): New.
3339         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
3340         available use -Av9d instead of -Av9a.
3341         * sysdeps/sparc/sparc64/Makefile: Likewise.
3342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
3343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
3344         New file.
3345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
3346         file.
3347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
3348         New file.
3349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
3350         file.
3351         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
3352         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
3353         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
3354         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
3355         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
3356
3357         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
3358         fzeros/fnegs to load 0x80000000 into a float register instead of
3359         using the stack.
3360         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
3361
3362 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3363
3364         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3365         bits/syscall.h.
3366         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
3367         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
3368         ($(inst_includedir)/bits/syscall.h): Remove rule.
3369         ($(objpfx)bits/syscall.d): Include instead of
3370         $(objpfx)syscall-list.d.
3371         (generated): Change syscall-list.h and syscall-list.d to
3372         bits/syscall.h and bits/syscall.d.
3373
3374 2012-03-14  Roland McGrath  <roland@hack.frob.com>
3375
3376         [BZ #13846]
3377         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
3378
3379 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3380
3381         [BZ #13841]
3382         * math/s_csqrt.c: Include <float.h>.
3383         (__csqrt): Scale large or subnormal inputs.
3384         * math/s_csqrtf.c: Likewise.
3385         * math/s_csqrtl.c: Likewise.
3386         * math/libm-test.inc (csqrt_test): Add more tests.
3387         * sysdeps/i386/fpu/libm-test-ulps: Update.
3388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3389
3390         [BZ #13840]
3391         * math/libm-test.inc (hypot_test): Add more tests.
3392
3393 2012-03-13  David S. Miller  <davem@davemloft.net>
3394
3395         [BZ #13840]
3396         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
3397         double-precision for the calculation instead of scaling.
3398
3399 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
3400
3401         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
3402         manipulate bits before adding and subtracting TWO52[sx].
3403         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
3404         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3405         Likewise.
3406         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
3407
3408 2012-03-13  David S. Miller  <davem@davemloft.net>
3409
3410         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
3411         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
3412         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
3413         rtld-global-offsets.h
3414         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3415
3416         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
3417         large parameters.
3418
3419         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
3420
3421         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
3422         'err' in the ifdef scope in which it is actually used.
3423
3424         * nss/nss_db/db-init.c: Include string.h
3425
3426 2012-03-12  David S. Miller  <davem@davemloft.net>
3427
3428         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
3429         masking out of the most significant byte of random value used.
3430         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3431         Fix coding style in previous change.
3432
3433         * sysdeps/unix/sysv/linux/kernel-features.h
3434         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
3435         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
3436         expression.
3437         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
3438         later.
3439
3440 2012-03-11  David S. Miller  <davem@davemloft.net>
3441
3442         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
3443         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
3444         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
3445         for 'resultvar' otherwise things get truncated on 64-bit.
3446
3447         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3448         Fix masking out of the most significant byte of random value used.
3449
3450         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3451
3452 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
3453
3454         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3455
3456 2012-03-09  David S. Miller  <davem@davemloft.net>
3457
3458         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
3459         variables with appropriate CPP guards.
3460         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
3461         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
3462         on resulting framesize and the management of the outregs buffer for pltexit.
3463         Preserve floating point return values across _dl_call_pltexit call.
3464         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
3465         framesize and the management of the outregs buffer for pltexit.
3466         Preserve floating point return values across _dl_call_pltexit
3467         call.
3468         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
3469         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
3470         (print_exit): Fix format string for return register value.
3471
3472 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
3473
3474         * sunrpc/Makefile (others): Add rpcgen.
3475         ($(objpfx)rpcgen): Remove special build rule and dependency on
3476         libc.
3477         * sunrpc/rpcgen.c: New file.
3478
3479 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
3480
3481         [BZ #13673]
3482         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
3483         * stdio-common/bug-vfprintf-nargs.c: Likewise.
3484         * sysdeps/i386/crti.S: Likewise.
3485         * sysdeps/i386/crtn.S: Likewise.
3486         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
3487         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
3488         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
3489         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
3490         * sysdeps/sh/crti.S: Likewise.
3491         * sysdeps/sh/crtn.S: Likewise.
3492         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3493
3494         [BZ #13673]
3495         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
3496         with URL.
3497         * locale/programs/locfile-kw.gperf: Likewise.
3498         * locale/programs/charmap-kw.h: Regenerated.
3499         * locale/programs/locfile-kw.h: Likewise.
3500
3501         [BZ #13673]
3502         * intl/plural.y: Replace FSF snail mail address with URL.
3503         * intl/plural.c: Regenerated.
3504
3505 2012-03-09  Richard Henderson  <rth@twiddle.net>
3506
3507         * include/math_private.h: Remove file.
3508         * math/math_private.h: Move file ...
3509         * sysdeps/generic/math_private.h: ... here.
3510
3511         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
3512         * sysdeps/powerpc/fpu/math_private.h: Likewise.
3513         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3514
3515         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
3516         and <math_private.h>.
3517         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
3518         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3519         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
3520         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3521         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
3522         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
3523         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3524         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3525         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3526         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3527         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3528         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3529         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3530         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3531         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3532         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3533         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3534         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3535         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3536         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
3537         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3538         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3539         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3540         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3541         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3542         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3543         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3544         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3545         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3546         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3547         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3548         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3549         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3550         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3551         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3552         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3553         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3554         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3555         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3556         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3557         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
3558         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3559         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
3560         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3561         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3562         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3563         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3564         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3565         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3566         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3567         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3568         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3569         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3570         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3571         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3572         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3573         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3574         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3575         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3576         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
3577         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3578         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3579         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3580         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3581         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3582         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3583         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3584         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3585         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
3586         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
3587         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
3588         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3589         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
3590         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3591         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
3592         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
3593         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
3594         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
3595         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
3596         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3597         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
3598         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
3599         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
3600         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3601         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3602         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
3603         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
3604         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
3605         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
3606         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
3607         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
3608         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
3609         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3610         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
3611         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
3612         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
3613         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
3614         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3615         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3616         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3617         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
3618         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
3619         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
3620         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
3621         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3622         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
3623         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
3624         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
3625         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3626         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3627         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3628         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3629         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
3630         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3631         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
3632         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3633         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3634         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3635         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3636         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3637         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3638         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3639         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3640         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
3641         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3642         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
3643         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
3644         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3645         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3646         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3647         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3648         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
3649         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3650         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3651         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3652         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
3653         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3654         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3655         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
3656         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3657         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3658         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
3659         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
3660         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
3661         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
3662         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3663         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3664         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
3665         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
3666         * sysdeps/ieee754/k_standard.c: Likewise.
3667         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
3668         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3669         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3670         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3671         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3672         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3673         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
3674         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3675         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3676         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3677         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3678         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3679         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3680         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3681         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3682         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3683         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3684         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3685         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3686         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
3687         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
3688         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
3689         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3690         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
3691         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3692         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
3693         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3694         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
3695         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
3696         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3697         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3698         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
3699         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3700         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3701         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3702         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
3703         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
3704         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
3705         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3706         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3707         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3708         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3709         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3710         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
3711         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3712         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3713         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
3714         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3715         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
3716         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3717         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3718         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3719         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3720         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
3721         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3722         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3723         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
3724         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
3725         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
3726         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
3727         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3728         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3729         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3730         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
3731         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
3732         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
3733         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
3734         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
3735         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
3736         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
3737         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
3738         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3739         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
3740         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
3741         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
3742         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
3743         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
3744         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
3745         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3746         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3747         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3748         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3749         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
3750         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
3751         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
3752         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
3753         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3754         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
3755         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3756         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
3757         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
3758         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
3759         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
3760         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3761         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
3762         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
3763         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
3764         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
3765         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
3766         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
3767         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
3768         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
3769         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3770         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
3771         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
3772         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3773         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3774         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
3775         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
3776         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
3777         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
3778         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3779         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
3780         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
3781         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
3782         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
3783         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
3784         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
3785         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3786         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
3787         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3788         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3789         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3790         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
3791         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
3792         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
3793         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3794         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
3795         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3796         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3797         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3798         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3799         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3800         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3801         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
3802         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
3803         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
3804         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3805         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3806         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3807         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3808         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3809         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3810         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3811         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
3812         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3813         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3814         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
3815         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
3816         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
3817         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3818         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
3819         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
3820         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3821         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
3822         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
3823         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3824         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
3825         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
3826         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3827         * sysdeps/ieee754/s_lib_version.c: Likewise.
3828         * sysdeps/ieee754/s_matherr.c: Likewise.
3829         * sysdeps/ieee754/s_signgam.c: Likewise.
3830         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3831         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3832         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
3833         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
3834         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
3835         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3836         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
3837         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
3838         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3839         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
3840         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3841         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
3842         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
3843         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
3844         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
3845         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
3846         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3847         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
3848         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3849         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3850         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3851
3852 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3853
3854         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
3855         * sunrpc/rpc_main.c: Likewise.
3856         * sunrpc/rpc_svcout.c: Likewise.
3857
3858 2012-03-09  David S. Miller  <davem@davemloft.net>
3859
3860         * include/math_private.h: New file.
3861
3862 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3863
3864         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
3865         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
3866         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
3867         from <bits/socket_type.h>.
3868         (enum __socket_type): Don't define here.
3869         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
3870         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3871         bits/socket_type.h.
3872
3873         [BZ #13566]
3874         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
3875         checking __USE_GNU.
3876
3877         * Makerules ($(inst_includedir)/%.h): New rule.
3878         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
3879         (install-others): Remove variable setting.
3880         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
3881
3882 2012-03-08  Richard Henderson  <rth@twiddle.net>
3883
3884         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
3885         from macro to inline function; merge with the
3886         !__LIBC_INTERNAL_MATH_INLINES version.
3887         (__ieee754_sqrtf): Likewise.
3888
3889         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
3890         to inline function.
3891         (__rintf, __floor, __floorf): Likewise.
3892
3893         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
3894         macro to inline function.
3895         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
3896
3897         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
3898         not <math/math_private.h>.
3899
3900 2012-03-08  David S. Miller  <davem@davemloft.net>
3901
3902         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
3903         copyright year.
3904         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
3905
3906 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
3907
3908         * resolv/gai_misc.c (handle_requests): Fix struct timespec
3909         normalization.
3910         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
3911         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
3912
3913 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
3914
3915         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
3916         be defined individually, they must be defined as a block.  Define
3917         S for printing a string instead of hidint the different by using a
3918         macro for adding the 'l'.
3919         * stdio-common/tst-fphex-wide.c: Adjust.
3920
3921 2012-03-07  Marek Polacek  <polacek@redhat.com>
3922
3923         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
3924
3925 2012-03-08  Marek Polacek  <polacek@redhat.com>
3926
3927         [BZ #13806]
3928         * stdio-common/Makefile (tests): Add tst-fphex-wide.
3929         * stdio-common/tst-fphex.c: Define a few macros to make the
3930         test reusable.  Use them.
3931         * stdio-common/tst-fphex-wide.c: New file.
3932
3933 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
3934
3935         [BZ #6911]
3936         * manual/macros.texi (gnusystems): New macro.
3937         (nongnusystems): Likewise.
3938         (gnulinuxhurdsystems): Likewise.
3939         (gnuhurdsystems): Likewise..
3940         (gnulinuxsystems): Likewise.
3941         * manual/charset.texi: Use new macros or @theglibc{} to refer to
3942         variants of the GNU system, not "GNU system".
3943         * manual/conf.texi: Likewise.
3944         * manual/errno.texi: Likewise.  Update example of errno macro
3945         expansion.
3946         * manual/filesys.texi: Likewise.
3947         (getumask): Document as specific to GNU/Hurd.
3948         * manual/install.texi: Likewise.  Reword some references to
3949         GNU/Linux.
3950         * manual/intro.texi: Likewise.
3951         * manual/io.texi: Likewise.
3952         (File Name Portability): Detail which constraints are inapplicable
3953         to all GNU systems and which are only inapplicable to GNU/Hurd.
3954         * manual/job.texi: Likewise.
3955         * manual/llio.texi: Likewise.
3956         (O_NOCTTY): Document as present on GNU/Linux.
3957         * manual/maint.texi: Likewise.
3958         * manual/memory.texi: Likewise.
3959         * manual/pattern.texi: Likewise.
3960         * manual/pipe.texi: Likewise.
3961         * manual/process.texi: Likewise.
3962         * manual/resource.texi: Likewise.
3963         (RUSAGE_CHILDREN): Remove statement about specifying a particular
3964         child on GNU/Hurd.
3965         * manual/setjmp.texi: Likewise.
3966         * manual/signal.texi: Likewise.
3967         * manual/startup.texi: Likewise.
3968         * manual/stdio.texi: Likewise.
3969         * manual/terminal.texi: Likewise.
3970         (ONLCR): Document as POSIX.
3971         (OXTABS): Document availability on GNU/Linux as XTABS.
3972         (ONOEOT): Document availability separately from other bits.
3973         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
3974         * manual/time.texi: Likewise.
3975         * manual/users.texi: Likewise.
3976         * INSTALL: Regenerated.
3977         * sysdeps/gnu/errlist.c: Regenerated.
3978
3979         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
3980         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
3981         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
3982         puts.
3983         * configure: Regenerated.
3984
3985 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
3986
3987         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
3988         default includes instead of AC_HEADER_CHECK.
3989         * sysdeps/i386/configure: Regenerated.
3990
3991         [BZ #10716]
3992         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
3993         * math/s_cacoshf.c (__cacoshf): Likewise.
3994         * math/s_cacoshl.c (__cacoshl): Likewise.
3995         * math/s_casinh.c (__casinh): Set signs of result from argument.
3996         * math/s_casinhf.c (__casinhf): Likewise.
3997         * math/s_casinhl.c (__casinhl): Likewise.
3998         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
3999         (casinh_test): Add more tests.
4000         * sysdeps/i386/fpu/libm-test-ulps: Update.
4001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4002
4003 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
4004
4005         * po/zh_TW.po: Update from translation team.
4006
4007         * login/Makefile (distribute): Remove variable.
4008         * catgets/Makefile: Likewise.
4009         * mach/Makefile: Likewise.
4010         * malloc/Makefile: Likewise.
4011         * misc/Makefile: Likewise.
4012         * iconv/Makefile: Likewise.
4013         * nscd/Makefile: Likewise.
4014         * hurd/Makefile: Likewise.
4015         * manual/Makefile: Likewise.
4016         * locale/Makefile: Likewise.
4017         * intl/Makefile: Likewise.
4018         * conform/Makefile: Likewise.
4019         * nss/Makefile: Likewise.
4020         * time/Makefile: Likewise.
4021         * soft-fp/Makefile: Likewise.
4022         * dirent/Makefile: Likewise.
4023         * gmon/Makefile: Likewise.
4024         * po/Makefile: Likewise.
4025         * rt/Makefile: Likewise.
4026         * socket/Makefile: Likewise.
4027         * math/Makefile: Likewise.
4028         * signal/Makefile: Likewise.
4029         * debug/Makefile: Likewise.
4030         * elf/Makefile: Likewise.
4031         * timezone/Makefile: Likewise.
4032         * stdlib/Makefile: Likewise.
4033         * iconvdata/Makefile: Likewise.
4034         * sunrpc/Makefile: Likewise.
4035         * io/Makefile: Likewise.
4036         * argp/Makefile: Likewise.
4037         * inet/Makefile: Likewise.
4038         * hesiod/Makefile: Likewise.
4039         * grp/Makefile: Likewise.
4040         * csu/Makefile: Likewise.
4041         * wctype/Makefile: Likewise.
4042         * crypt/Makefile: Likewise.
4043         * libio/Makefile: Likewise.
4044         * string/Makefile: Likewise.
4045         * nis/Makefile: Likewise.
4046         * resolv/Makefile: Likewise.
4047         * stdio-common/Makefile: Likewise.
4048         * wcsmbs/Makefile: Likewise.
4049         * dlfcn/Makefile: Likewise.
4050         * posix/Makefile: Likewise.
4051
4052         [BZ #6959]
4053         * timezone/Makefile: Don't install timezone files, just the programs
4054         and scripts.
4055
4056 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
4057
4058         * nss/databases.def: Add missing gshadow entry.
4059
4060         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
4061
4062 2012-03-06  Marek Polacek  <polacek@redhat.com>
4063
4064         [BZ #13726]
4065         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
4066         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4067         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
4068         * stdio-common/tst-long-dbl-fphex.c: New file.
4069
4070 2012-03-06  David S. Miller  <davem@davemloft.net>
4071
4072         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4073         (set_obp_int): New function.
4074         (get_obp_int): New function.
4075         (__get_clockfreq_via_dev_openprom): Likewise.
4076         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4077         Avoid unused variable warnings on 'val' and use builtin_expect.
4078         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
4079         __builtin_expect.
4080         (INLINE_CLONE_SYSCALL): Likewise.
4081
4082 2012-03-05  David S. Miller  <davem@davemloft.net>
4083
4084         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4085
4086 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
4087
4088         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4089
4090         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
4091         only for |x| >= 40.
4092         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4093
4094 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4095
4096         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
4097         Replace gettimeofday with __vdso_gettimeofday.
4098
4099         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4100         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
4101         __vdso_clock_gettime and __vdso_getcpu.
4102
4103         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
4104         time with __vdso_time.
4105
4106 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4107
4108         * manual/lang.texi (size_t): Note types to which size_t may be
4109         equivalent with the GNU C Library, but do not describe when
4110         differences between them are significant.
4111
4112 2012-03-05  Andreas Jaeger  <aj@suse.de>
4113
4114         * sysdeps/i386/fpu/libm-test-ulps: Update.
4115
4116 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4117
4118         [BZ #3976]
4119         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
4120         (__ieee754_pow): Save and restore rounding mode and use
4121         round-to-nearest for main computations.
4122         * math/libm-test.inc (pow_test_tonearest): New function.
4123         (pow_test_towardzero): Likewise.
4124         (pow_test_downward): Likewise.
4125         (pow_test_upward): Likewise.
4126         (main): Call the new functions.
4127         * sysdeps/i386/fpu/libm-test-ulps: Update.
4128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4129
4130         [BZ #3976]
4131         * math/libm-test.inc (cosh_test_tonearest): New function.
4132         (cosh_test_towardzero): Likewise.
4133         (cosh_test_downward): Likewise.
4134         (cosh_test_upward): Likewise.
4135         (sinh_test_tonearest): Likewise.
4136         (sinh_test_towardzero): Likewise.
4137         (sinh_test_downward): Likewise.
4138         (sinh_test_upward): Likewise.
4139         (main): Call the new functions.
4140         * sysdeps/i386/fpu/libm-test-ulps: Update.
4141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4142
4143 2012-03-05  Tom de Vries  <tom@codesourcery.com>
4144
4145         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
4146         default stack guard is set in last bytes.
4147         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
4148
4149 2012-03-05  Kees Cook  <keescook@chromium.org>
4150
4151         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
4152
4153         [BZ #13656]
4154         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
4155         possibly allocate from heap instead of stack.
4156         * stdio-common/bug-vfprintf-nargs.c: New file.
4157         * stdio-common/Makefile (tests): Add nargs overflow test.
4158
4159 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
4160
4161         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4162
4163 2012-03-03  Marek Polacek  <polacek@redhat.com>
4164
4165         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
4166         * math/math_private.h: Likewise.
4167         * stdlib/tst-strtod.c: Likewise.
4168         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4169         * sysdeps/x86_64/bits/atomic.h: Likewise.
4170
4171 2012-03-02  David S. Miller  <davem@davemloft.net>
4172
4173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
4174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
4175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
4176         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
4177         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
4178         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
4179         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
4180         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
4181
4182 2012-03-02  Roland McGrath  <roland@hack.frob.com>
4183
4184         [BZ #13792]
4185         * manual/examples/README: New file, says the example source files
4186         can be used under GPL>=2.
4187         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
4188         line containing just "*/".
4189         * manual/examples/add.c: Add copyright header (GPL>=2).
4190         * manual/examples/argp-ex1.c: Likewise.
4191         * manual/examples/argp-ex2.c: Likewise.
4192         * manual/examples/argp-ex3.c: Likewise.
4193         * manual/examples/argp-ex4.c: Likewise.
4194         * manual/examples/atexit.c: Likewise.
4195         * manual/examples/db.c: Likewise.
4196         * manual/examples/dir.c: Likewise.
4197         * manual/examples/dir2.c: Likewise.
4198         * manual/examples/execinfo.c: Likewise.
4199         * manual/examples/filecli.c: Likewise.
4200         * manual/examples/filesrv.c: Likewise.
4201         * manual/examples/fmtmsgexpl.c: Likewise.
4202         * manual/examples/genpass.c: Likewise.
4203         * manual/examples/inetcli.c: Likewise.
4204         * manual/examples/inetsrv.c: Likewise.
4205         * manual/examples/isockad.c: Likewise.
4206         * manual/examples/longopt.c: Likewise.
4207         * manual/examples/memopen.c: Likewise.
4208         * manual/examples/memstrm.c: Likewise.
4209         * manual/examples/mkfsock.c: Likewise.
4210         * manual/examples/mkisock.c: Likewise.
4211         * manual/examples/mygetpass.c: Likewise.
4212         * manual/examples/pipe.c: Likewise.
4213         * manual/examples/popen.c: Likewise.
4214         * manual/examples/rprintf.c: Likewise.
4215         * manual/examples/search.c: Likewise.
4216         * manual/examples/select.c: Likewise.
4217         * manual/examples/setjmp.c: Likewise.
4218         * manual/examples/sigh1.c: Likewise.
4219         * manual/examples/sigusr.c: Likewise.
4220         * manual/examples/stpcpy.c: Likewise.
4221         * manual/examples/strdupa.c: Likewise.
4222         * manual/examples/strftim.c: Likewise.
4223         * manual/examples/strncat.c: Likewise.
4224         * manual/examples/subopt.c: Likewise.
4225         * manual/examples/swapcontext.c: Likewise.
4226         * manual/examples/termios.c: Likewise.
4227         * manual/examples/testopt.c: Likewise.
4228         * manual/examples/testpass.c: Likewise.
4229         * manual/examples/timeval_subtract.c: Likewise.
4230
4231         [BZ #13792]
4232         * manual/time.texi (Elapsed Time): Move timeval_subtract example
4233         function to ...
4234         * manual/timeval_subtract.c.texi: ... here, new file.
4235
4236 2012-03-02  David S. Miller  <davem@davemloft.net>
4237
4238         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
4239
4240 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
4241
4242         [BZ #3976]
4243         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
4244         (__sin): Save and restore rounding mode and use round-to-nearest
4245         for all computations.
4246         (__cos): Save and restore rounding mode and use round-to-nearest
4247         for all computations.
4248         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
4249         <fenv.h>.
4250         (tan): Save and restore rounding mode and use round-to-nearest for
4251         all computations.
4252         * math/libm-test.inc (cos_test_tonearest): New function.
4253         (cos_test_towardzero): Likewise.
4254         (cos_test_downward): Likewise.
4255         (cos_test_upward): Likewise.
4256         (sin_test_tonearest): Likewise.
4257         (sin_test_towardzero): Likewise.
4258         (sin_test_downward): Likewise.
4259         (sin_test_upward): Likewise.
4260         (tan_test_tonearest): Likewise.
4261         (tan_test_towardzero): Likewise.
4262         (tan_test_downward): Likewise.
4263         (tan_test_upward): Likewise.
4264         (main): Call the new functions.
4265         * sysdeps/i386/fpu/libm-test-ulps: Update.
4266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4267
4268         [BZ #10135]
4269         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
4270         small n, then large n, before computing and testing k+n.
4271         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
4272         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
4273         Likewise.
4274         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
4275         Likewise.
4276         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
4277         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
4278         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
4279         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
4280         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4281         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4282         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
4283         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
4284         * math/libm-test.inc (scalbn_test): Add more tests.
4285         (scalbln_test): Likewise.
4286
4287         * manual/filesys.texi (mode_t): Describe constraints on size and
4288         signedness, not exact equivalence to a particular type.
4289         (ino_t): Likewise.
4290         (ino64_t): Likewise.
4291         (dev_t): Likewise.
4292         (nlink_t): Likewise.
4293         (blkcnt_t): Likewise.
4294         (blkcnt64_t): Likewise.
4295         * manual/llio.texi (off_t): Likewise.
4296
4297         [BZ #3976]
4298         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
4299         (__ieee754_exp): Save and restore rounding mode and use
4300         round-to-nearest for all computations.
4301         * math/libm-test.inc (exp_test_tonearest): New function.
4302         (exp_test_towardzero): Likewise.
4303         (exp_test_downward): Likewise.
4304         (exp_test_upward): Likewise.
4305         (main): Call the new functions.
4306         * sysdeps/i386/fpu/libm-test-ulps: Update.
4307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4308
4309 2012-03-01  Chris Demetriou  <cgd@google.com>
4310
4311         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
4312         have predictable order.
4313
4314 2012-03-01  David S. Miller  <davem@davemloft.net>
4315
4316         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
4317
4318         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
4319         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
4320         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
4321         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
4322
4323         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
4324         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
4325         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
4326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
4327         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
4328         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
4329         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
4330         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
4331         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
4332
4333         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4334
4335         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
4336         * sysdeps/sparc/fpu/libm-test-ulps: to here.
4337         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
4338
4339         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
4340         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4341         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4342         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
4343         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
4344         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
4345         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
4346         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4347         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4348         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
4349         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
4350         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4351         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4352         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4353         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4354         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4355         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
4356         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
4357         * sysdeps/sparc/elf/configure: Regenerated.
4358
4359 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
4360
4361         * configure.in (AS, LD): Require binutils 2.20 or later.
4362         * configure: Regenerated.
4363         * manual/install.texi (Tools for Compilation): Give binutils 2.20
4364         as required minimum version.
4365         * INSTALL: Regenerated.
4366
4367         [BZ #2541]
4368         [BZ #4108]
4369         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
4370         before squaring exponent.
4371         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
4372         bottom long double and 27 bits of top long double before squaring
4373         exponent.
4374         * math/libm-test.inc (erfc_test): Add more tests.
4375         * sysdeps/i386/fpu/libm-test-ulps: Update.
4376         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4378
4379 2012-03-01  Kai Tietz  <ktietz@redhat.com>
4380
4381         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
4382         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
4383         containing bit-fields.
4384         * soft-fp/extended.h (_FP_UNION_E): Likewise.
4385         * soft-fp/single.h (_FP_UNION_S): Likewise.
4386         * soft-fp/double.h (_FP_UNION_D): Likewise.
4387
4388 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4389
4390         [BZ #13786]
4391         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
4392         not include ../strcmp.S.
4393         [USE_AS_STRNCASECMP_L]: Likewise.
4394         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
4395         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
4396         * sysdeps/i386/i686/multiarch/strncase_l-c.c
4397         (__strncasecmp_l_ia32): Define as alias to
4398         __strncasecmp_l_nonascii.
4399
4400         [BZ #5794]
4401         * math/libm-test.inc (expm1_test): Add test for bug 5794.
4402         * sysdeps/i386/fpu/libm-test-ulps: Update.
4403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4404
4405         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
4406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4407
4408 2012-02-29  Jeff Law  <law@redhat.com>
4409
4410         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
4411         out of bounds read.
4412
4413 2012-02-29  Marek Polacek  <polacek@redhat.com>
4414
4415         [BZ #13706]
4416         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
4417         * elf/Makefile: Add rules to run tst-unused-dep.out.
4418
4419 2012-02-28  David S. Miller  <davem@davemloft.net>
4420
4421         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
4422         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
4423         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
4424         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
4425         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
4426         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
4427
4428 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4429
4430         * math/libm-test.inc (llround_test): Move one test from
4431         lround_test.  Use TEST_f_L in moved test.
4432         (lround_test): Move misplaced test to llround_test.  Add testcase
4433         from bug 2561.
4434
4435 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
4436
4437         * sysdeps/x86_64/fpu/e_expf.S: New file.
4438         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
4439
4440 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
4441
4442         [BZ #13637]
4443         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
4444         of remain_len that may cause incomplete multi-byte character and
4445         false match.
4446         * posix/bug-regex33.c: New file.
4447         * posix/Makefile (tests): Add bug-regex33.
4448
4449 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
4450
4451         * manual/macros.texi: New file.
4452         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
4453         * manual/libc.texinfo: Include macros.texi.
4454         * manual/creatute.texi: Likewise.
4455         * manual/install.texi: Likewise.
4456         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
4457         @glibcadj{} in references to the GNU C Library.
4458         * manual/charset.texi: Likewise.
4459         * manual/conf.texi: Likewise.
4460         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
4461         when not using those macros.
4462         * manual/creature.texi: Likewise.
4463         * manual/crypt.texi: Likewise.
4464         * manual/errno.texi: Likewise.
4465         * manual/filesys.texi: Likewise.
4466         * manual/header.texi: Likewise.
4467         * manual/install.texi: Likewise.
4468         * manual/intro.texi: Likewise.
4469         * manual/io.texi: Likewise.
4470         * manual/job.texi: Likewise.
4471         * manual/lang.texi: Likewise.
4472         * manual/libc.texiinfo: Likewise.
4473         * manual/llio.texi: Likewise.
4474         * manual/locale.texi: Likewise.
4475         * manual/maint.texi: Likewise.
4476         * manual/math.texi: Likewise.
4477         * manual/memory.texi: Likewise.
4478         * manual/message.texi: Likewise.
4479         * manual/nss.texi: Likewise.
4480         * manual/pattern.texi: Likewise.
4481         * manual/process.texi: Likewise.
4482         * manual/resource.texi: Likewise.
4483         * manual/search.texi: Likewise.
4484         * manual/setjmp.texi: Likewise.
4485         * manual/signal.texi: Likewise.
4486         * manual/socket.texi: Likewise.
4487         * manual/startup.texi: Likewise.
4488         * manual/stdio.texi: Likewise.
4489         * manual/string.texi: Likewise.
4490         * manual/sysinfo.texi: Likewise.
4491         * manual/syslog.texi: Likewise.
4492         * manual/terminal.texi: Likewise.
4493         * manual/time.texi: Likewise.
4494         * manual/users.texi: Likewise.
4495         * INSTALL: Regenerated.
4496         * NOTES: Regenerated.
4497         * sysdeps/gnu/errlist.c: Regenerated.
4498
4499 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
4500
4501         * include/dirent.h: Include <dirstream.h> before
4502         <dirent/dirent.h>.
4503
4504 2012-02-28  David S. Miller  <davem@davemloft.net>
4505
4506         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
4507         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
4508         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
4509         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
4510
4511 2012-02-27  David S. Miller  <davem@davemloft.net>
4512
4513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
4514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
4515         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
4516         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
4517
4518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
4519         frame pointer instead of stack pointer relative arg slot.
4520         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4521         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4522         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4523
4524 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
4525
4526         [BZ #3992]
4527         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
4528
4529 2012-02-27  David S. Miller  <davem@davemloft.net>
4530
4531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
4532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
4535         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4536         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4537         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
4538         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
4539
4540 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4541
4542         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
4543         later.  Allow versions 5-9.
4544         * configure: Regenerated.
4545         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
4546         required minimum version and 4.6 as recommended version.  Do not
4547         mention bugs in GCC 2.7 and 2.8.
4548         * INSTALL: Regenerated.
4549
4550 2012-02-27  David S. Miller  <davem@davemloft.net>
4551
4552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
4553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
4554         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
4555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
4556         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
4557         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
4558         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
4559         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
4560
4561         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
4562         manipulate bits before adding and subtracting TWO112[sx].
4563         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4564
4565 2012-02-27  Roland McGrath  <roland@hack.frob.com>
4566
4567         [BZ #13775]
4568         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
4569         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
4570         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
4571         being in POSIX, because they are in 1003.1-2008.
4572
4573         * rt/tst-aio.c: Include <fcntl.h>.
4574         * rt/tst-aio7.c: Likewise.
4575         * rt/tst-aio64.c: Likewise.
4576
4577         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
4578
4579 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4580
4581         * manual/install.texi (--with-headers): Describe headers as
4582         interface headers, not private headers.
4583         (Specific advice for GNU/Linux systems): Describe use of headers
4584         from "make headers_install", not private headers from older
4585         kernels.
4586         * INSTALL: Regenerated.
4587         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
4588         Change to 2.6.19.
4589         * sysdeps/unix/sysv/linux/configure: Regenerated.
4590
4591         * manual/llio.texi (fclean): Remove documentation.
4592
4593         * manual/Makefile (libc-texi-generated): New variable.  Include
4594         version.texi.
4595         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
4596         $(libc-texi-generated), not duplicated list of files.
4597         (version.texi, stamp-version): New rules.
4598         (realclean): Remove $(libc-texi-generated), not individual files
4599         from that list.  Do not remove dir-add.texinfo.
4600         * manual/libc.texinfo: Comment out uses of edition numbers and
4601         references to printed manual.  Remove last-updated dates.
4602         (EDITION): Comment out.
4603         (ISBN): Likewise.
4604         (VERSION, UPDATED): Remove.
4605         (version.texi): Include.
4606
4607 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
4608
4609         * sysdeps/posix/spawni.c: Include <signal.h>.
4610         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
4611         * sysdeps/pthread/aio_fsync.c: Likewise.
4612
4613 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
4614
4615         * conform/Makefile (tests): Run only when not cross-compiling and
4616         when fast-check is not defined.
4617
4618         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
4619         * conform/data/limits.h-data: Fixes for POSIX2008.
4620         * conform/run-conformtest.sh: Run all tests.
4621         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
4622         headers.
4623         * include/bits/dlfcn.h: Likewise.
4624         * include/langinfo.h: Likewise.
4625         * include/monetary.h: Likewise.
4626         * include/sys/poll.h: Likewise.
4627
4628         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
4629         for __USE_GNU.
4630         * posix/spawn.h: Define __need_sigset_t.
4631         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
4632         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
4633         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
4634         to get sigevent_t only.
4635         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
4636         only for __USE_GNU.
4637         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4638         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
4639         process_vm_writev only for __USE_GNU.
4640         * termios/termios.h: Declare tcgetsid also for POSIX2008.
4641
4642         * conform/Makefile: For now ignore errors from run-conformtest.
4643         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
4644         POSIX to avoid namespace pollution.  Don't prepend headers.
4645         * conform/data/aio.h-data: Fixes for POSIX testing.
4646         * conform/data/fcntl.h-data: Likewise.
4647         * conform/data/glob.h-data: Likewise.
4648         * conform/data/grp.h-data: Likewise.
4649         * conform/data/pthread.h-data: Likewise.
4650         * conform/data/pwd.h-data: Likewise.
4651         * conform/data/signal.h-data: Likewise.
4652         * conform/data/spawn.h-data: Likewise.
4653         * conform/data/stdio.h-data: Likewise.
4654         * conform/data/stdlib.h-data: Likewise.
4655         * conform/data/stropts.h-data: Likewise.
4656         * conform/data/sys/mman.h-data: Likewise.
4657         * conform/data/sys/stat.h-data: Likewise.
4658         * conform/data/sys/types.h-data: Likewise.
4659         * conform/data/sys/wait.h-data: Likewise.
4660         * conform/data/time.h-data: Likewise.
4661         * conform/data/unistd.h-data: Likewise.
4662         * conform/data/utime.h-data: Likewise.
4663
4664         * io/sys/stat.h: fchmod was always in POSIX.
4665         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
4666         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
4667         * rt/aio.h: Define __need_timespec before including <time.h>.
4668         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
4669         struct.  Add forward declaration of pthread_attr_t and use it in
4670         sigevent.
4671         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4672         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4673         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
4674         always remove CLK_TCK definition.
4675
4676 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
4677
4678         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
4679
4680 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
4681
4682         * conform/run-conformtest.sh: New file.
4683         * conform/Makefile: Run run-conformtest for tests.
4684         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
4685         support.
4686
4687         * conform/data/uchar.h-data: New file.
4688         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
4689         * conform/data/arpa/inet.h-data: Likewise.
4690         * conform/data/assert.h-data: Likewise.
4691         * conform/data/complex.h-data: Likewise.
4692         * conform/data/cpio.h-data: Likewise.
4693         * conform/data/ctype.h-data: Likewise.
4694         * conform/data/dirent.h-data: Likewise.
4695         * conform/data/dlfcn.h-data: Likewise.
4696         * conform/data/errno.h-data: Likewise.
4697         * conform/data/fcntl.h-data: Likewise.
4698         * conform/data/float.h-data: Likewise.
4699         * conform/data/fmtmsg.h-data: Likewise.
4700         * conform/data/fnmatch.h-data: Likewise.
4701         * conform/data/ftw.h-data: Likewise.
4702         * conform/data/glob.h-data: Likewise.
4703         * conform/data/grp.h-data: Likewise.
4704         * conform/data/iconv.h-data: Likewise.
4705         * conform/data/inttypes.h-data: Likewise.
4706         * conform/data/langinfo.h-data: Likewise.
4707         * conform/data/libgen.h-data: Likewise.
4708         * conform/data/limits.h-data: Likewise.
4709         * conform/data/locale.h-data: Likewise.
4710         * conform/data/math.h-data: Likewise.
4711         * conform/data/monetary.h-data: Likewise.
4712         * conform/data/mqueue.h-data: Likewise.
4713         * conform/data/ndbm.h-data: Likewise.
4714         * conform/data/net/if.h-data: Likewise.
4715         * conform/data/netdb.h-data: Likewise.
4716         * conform/data/netinet/in.h-data: Likewise.
4717         * conform/data/nl_types.h-data: Likewise.
4718         * conform/data/poll.h-data: Likewise.
4719         * conform/data/pthread.h-data: Likewise.
4720         * conform/data/pwd.h-data: Likewise.
4721         * conform/data/regex.h-data: Likewise.
4722         * conform/data/sched.h-data: Likewise.
4723         * conform/data/search.h-data: Likewise.
4724         * conform/data/semaphore.h-data: Likewise.
4725         * conform/data/setjmp.h-data: Likewise.
4726         * conform/data/signal.h-data: Likewise.
4727         * conform/data/spawn.h-data: Likewise.
4728         * conform/data/stdarg.h-data: Likewise.
4729         * conform/data/stdio.h-data: Likewise.
4730         * conform/data/stdlib.h-data: Likewise.
4731         * conform/data/string.h-data: Likewise.
4732         * conform/data/strings.h-data: Likewise.
4733         * conform/data/stropts.h-data: Likewise.
4734         * conform/data/sys/ipc.h-data: Likewise.
4735         * conform/data/sys/mman.h-data: Likewise.
4736         * conform/data/sys/msg.h-data: Likewise.
4737         * conform/data/sys/resource.h-data: Likewise.
4738         * conform/data/sys/select.h-data: Likewise.
4739         * conform/data/sys/sem.h-data: Likewise.
4740         * conform/data/sys/shm.h-data: Likewise.
4741         * conform/data/sys/socket.h-data: Likewise.
4742         * conform/data/sys/stat.h-data: Likewise.
4743         * conform/data/sys/statvfs.h-data: Likewise.
4744         * conform/data/sys/time.h-data: Likewise.
4745         * conform/data/sys/timeb.h-data: Likewise.
4746         * conform/data/sys/times.h-data: Likewise.
4747         * conform/data/sys/types.h-data: Likewise.
4748         * conform/data/sys/uio.h-data: Likewise.
4749         * conform/data/sys/un.h-data: Likewise.
4750         * conform/data/sys/utsname.h-data: Likewise.
4751         * conform/data/sys/wait.h-data: Likewise.
4752         * conform/data/syslog.h-data: Likewise.
4753         * conform/data/tar.h-data: Likewise.
4754         * conform/data/termios.h-data: Likewise.
4755         * conform/data/utime.h-data: Likewise.
4756         * conform/data/utmpx.h-data: Likewise.
4757         * conform/data/varargs.h-data: Likewise.
4758         * conform/data/wchar.h-data: Likewise.
4759         * conform/data/wctype.h-data: Likewise.
4760         * conform/data/wordexp.h-data: Likewise.
4761
4762         * include/stropts.h: New file.
4763         * include/uchar.h: New file.
4764         * include/aio.h: Changes to allow conformtest.pl to use the headers.
4765         * include/assert.h: Likewise.
4766         * include/ctype.h: Likewise.
4767         * include/dirent.h: Likewise.
4768         * include/dlfcn.h: Likewise.
4769         * include/fcntl.h: Likewise.
4770         * include/fnmatch.h: Likewise.
4771         * include/glob.h: Likewise.
4772         * include/grp.h: Likewise.
4773         * include/libio.h: Likewise.
4774         * include/locale.h: Likewise.
4775         * include/math.h: Likewise.
4776         * include/net/if.h: Likewise.
4777         * include/netdb.h: Likewise.
4778         * include/netinet/in.h: Likewise.
4779         * include/pthread.h: Likewise.
4780         * include/pwd.h: Likewise.
4781         * include/regex.h: Likewise.
4782         * include/sched.h: Likewise.
4783         * include/search.h: Likewise.
4784         * include/setjmp.h: Likewise.
4785         * include/signal.h: Likewise.
4786         * include/stdio.h: Likewise.
4787         * include/stdlib.h: Likewise.
4788         * include/string.h: Likewise.
4789         * include/sys/cdefs.h: Likewise.
4790         * include/sys/mman.h: Likewise.
4791         * include/sys/msg.h: Likewise.
4792         * include/sys/resource.h: Likewise.
4793         * include/sys/select.h: Likewise.
4794         * include/sys/socket.h: Likewise.
4795         * include/sys/stat.h: Likewise.
4796         * include/sys/statvfs.h: Likewise.
4797         * include/sys/time.h: Likewise.
4798         * include/sys/times.h: Likewise.
4799         * include/sys/uio.h: Likewise.
4800         * include/sys/utsname.h: Likewise.
4801         * include/sys/wait.h: Likewise.
4802         * include/termios.h: Likewise.
4803         * include/time.h: Likewise.
4804         * include/ulimit.h: Likewise.
4805         * include/unistd.h: Likewise.
4806         * include/utime.h: Likewise.
4807         * include/wchar.h: Likewise.
4808         * include/wctype.h: Likewise.
4809         * include/wordexp.h: Likewise.
4810
4811         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
4812
4813         * time/time.h: TIME_UTC must be a macro.
4814         Make timespec_get available for ISO C11 only as well.
4815
4816 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
4817
4818         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
4819         Reported by Peng Haitao <penght@cn.fujitsu.com>.
4820
4821 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4822
4823         * configure.in: Use -o not -a in test for unsupported multi-arch.
4824
4825 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4826
4827         * manual/texinfo.tex: Update to version 2012-01-19.16.
4828
4829 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4830
4831         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
4832
4833 2012-02-24  Roland McGrath  <roland@hack.frob.com>
4834
4835         [BZ #13738]
4836         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
4837         * manual/fdl-1.3.texi: New file.
4838         * manual/fdl-1.1.texi: File removed.
4839
4840         [BZ #13738]
4841         * manual/libc.texinfo (FDL_VERSION): New @set.
4842         Use it for mention of FDL in cover text.
4843         (Documentation License): Use it in @include file name.
4844
4845 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4846             Roland McGrath  <roland@hack.frob.com>
4847
4848         [BZ #5461]
4849         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
4850         not LONG_LONG_MAX and LONG_LONG_MIN.
4851         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
4852         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
4853         name.
4854         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
4855
4856 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4857
4858         [BZ #2547]
4859         [BZ #11365]
4860         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
4861         manipulate bits before adding and subtracting TWO23[sx].
4862         * math/libm-test.inc (nearbyint_test): Add more tests.
4863
4864 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4865
4866         [BZ #2548]
4867         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
4868         bits before adding and subtracting TWO23[sx].
4869         * math/libm-test.inc (rint_test): Add more tests.
4870         (rint_test_tonearest): Likewise.
4871         (rint_test_towardzero): Likewise.
4872         (rint_test_downward): Likewise.
4873         (rint_test_upward: Likewise.
4874
4875 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4876
4877         [BZ #10110]
4878         * include/stdc-predef.h: New file.  Extracted from features.h.
4879         * include/features.h: Include stdc-predef.h.
4880         * Makefile (headers): Add stdc-predef.h.
4881         * CONFORMANCE (Compiler limitations): Update.
4882
4883 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4884
4885         * manual/libc.texinfo (VERSION, UPDATED): Revert.
4886
4887 2012-02-21  David S. Miller  <davem@davemloft.net>
4888
4889         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
4890         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4891
4892 2012-02-20  David S. Miller  <davem@davemloft.net>
4893
4894         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
4895         using a normal save/restore sequence, rather than allocating a
4896         dummy stack frame just to store a frame pointer and restore.
4897         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4898
4899 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4900
4901         * manual/install.texi: Fix stray word in line-wrapped comment.
4902
4903 2012-02-20  David S. Miller  <davem@davemloft.net>
4904
4905         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
4906         both binutils and gcc support GOTDATA.
4907
4908         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
4909         "rd %pc" in the PIC register setup sequences.
4910
4911         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
4912         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
4913         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4914         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
4915         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4916         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
4917         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4918         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4919         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4920         (SYSCALL_ERROR_HANDLER): Likewise.
4921         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4922         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4923         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4924         (SYSCALL_ERROR_HANDLER): Likewise.
4925
4926         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
4927         (HAVE_GCC_GOTDATA): New.
4928         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
4929         relocation support in both binutils and gcc.
4930         * sysdeps/sparc/elf/configure: Regenerate.
4931
4932         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
4933         * sysdeps/sparc/sparc32/elf/configure: Delete.
4934         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
4935         * sysdeps/sparc/sparc64/elf/configure: Delete.
4936         * sysdeps/sparc/elf/configure.in: New file.
4937         * sysdeps/sparc/elf/configure: Generate.
4938
4939         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
4940         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
4941         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
4942         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
4943         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
4944
4945 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4946
4947         * manual/install.texi: Do not mention specific glibc version
4948         numbers.
4949         * manual/libc.texinfo (VERSION, UPDATED): Update.
4950         (@copying): Use @copyright{} and range of years.
4951
4952 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4953
4954         [BZ #13695]
4955         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
4956         [crti.S not in sysdirs] (generated): Do not append.
4957         [crti.S not in sysdirs] (omit-deps): Likewise.
4958         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
4959         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
4960         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
4961         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
4962         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
4963         Likewise.
4964         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
4965         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
4966         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
4967         * csu/defs.awk: Remove file.
4968         * sysdeps/generic/initfini.c: Likewise.
4969         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
4970         variable.
4971         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
4972         Likewise.
4973
4974 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4975
4976         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
4977         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
4978         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
4979         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
4980         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4981         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
4982         <bits/epoll.h>.
4983         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
4984         (__EPOLL_PACKED): Define to empty if not defined by
4985         <bits/epoll.h>.
4986         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
4987         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4988         bits/epoll.h.
4989
4990 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4991
4992         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
4993         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
4994         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
4995         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
4996         <bits/timerfd.h>.
4997         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
4998         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4999         bits/timerfd.h.
5000
5001 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5002
5003         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
5004         in C locale.
5005         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5006         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
5007         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
5008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5009
5010 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
5011
5012         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5013         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
5014
5015 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
5016
5017         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
5018         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
5019         defined.
5020         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
5021         Likewise.
5022         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
5023         entry for 2.16.
5024
5025 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
5026
5027         * math/w_acos.c: Use non-signaling floating-point comparisons.
5028         * math/w_acosf.c: Likewise.
5029         * math/w_acosh.c: Likewise.
5030         * math/w_acoshf.c: Likewise.
5031         * math/w_acoshl.c: Likewise.
5032         * math/w_acosl.c: Likewise.
5033         * math/w_asin.c: Likewise.
5034         * math/w_asinf.c: Likewise.
5035         * math/w_asinl.c: Likewise.
5036         * math/w_atanh.c: Likewise.
5037         * math/w_atanhf.c: Likewise.
5038         * math/w_atanhl.c: Likewise.
5039         * math/w_exp2.c: Likewise.
5040         * math/w_exp2f.c: Likewise.
5041         * math/w_exp2l.c: Likewise.
5042         * math/w_j0.c: Likewise.
5043         * math/w_j0f.c: Likewise.
5044         * math/w_j0l.c: Likewise.
5045         * math/w_j1.c: Likewise.
5046         * math/w_j1f.c: Likewise.
5047         * math/w_j1l.c: Likewise.
5048         * math/w_jn.c: Likewise.
5049         * math/w_jnf.c: Likewise.
5050         * math/w_log.c: Likewise.
5051         * math/w_log10.c: Likewise.
5052         * math/w_log10f.c: Likewise.
5053         * math/w_log10l.c: Likewise.
5054         * math/w_log2.c: Likewise.
5055         * math/w_log2f.c: Likewise.
5056         * math/w_log2l.c: Likewise.
5057         * math/w_logf.c: Likewise.
5058         * math/w_logl.c: Likewise.
5059         * math/w_sqrt.c: Likewise.
5060         * math/w_sqrtf.c: Likewise.
5061         * math/w_sqrtl.c: Likewise.
5062         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5063         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
5064         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5065         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
5066         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
5067
5068 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5069
5070         [BZ #9739]
5071         * manual/string.texi (strnlen): Use correct parameter name in
5072         equivalent expression.
5073
5074 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5075
5076         [BZ #11174]
5077         * manual/users.texi (seteuid): Consistently use neweuid for
5078         argument name.
5079
5080 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5081
5082         [BZ #13704]
5083         * manual/nss.texi (Services in the NSS configuration): Correct
5084         list of services in example configuration file.
5085
5086 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
5087
5088         [BZ #11322]
5089         * manual/arith.texi: Remove statements about negative zero
5090         behaving identically to zero.
5091
5092 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5093
5094         [BZ #5993]
5095         * manual/install.texi: Do not document upgrading from libc5.
5096
5097 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5098
5099         [BZ #4596]
5100         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
5101
5102 2012-02-18  David S. Miller  <davem@davemloft.net>
5103
5104         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
5105         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
5106         %o7 across the call.
5107         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
5108         instead.
5109         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
5110         SETUP_PIC_REG_LEAF.
5111         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5112         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
5113         * sysdeps/sparc/crtn.S: Likewise.
5114
5115 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
5116
5117         * aout/Makefile: Remove.
5118
5119 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
5120
5121         [BZ #13058]
5122         * manual/examples/argp-ex1.c (main): Format definition in GNU
5123         style.
5124         * manual/examples/argp-ex2.c (main): Likewise.
5125         * manual/examples/argp-ex3.c (main): Likewise.
5126         * manual/examples/argp-ex4.c (main): Likewise.
5127         * manual/examples/longopt.c (main): Use new-style prototype
5128         definition.
5129         * manual/examples/strncat.c (main): Specify return type and use
5130         (void) for arguments.
5131         * manual/examples/subopt.c (main): Use char **argv argument.
5132
5133 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5134
5135         [BZ #5077]
5136         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
5137         rounding modes.
5138
5139 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
5140
5141         [BZ #6907]
5142         * manual/string.texi (strchr): Change when strchrnul is
5143         recommended.
5144
5145 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
5146
5147         [BZ #174]
5148         * manual/locale.texi (setlocale): Document LOCPATH.
5149
5150 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5151
5152         [BZ #10210]
5153         * manual/process.texi (execle): Move @dots{} before last argument.
5154
5155 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
5156
5157         [BZ #12047]
5158         * manual/charset.texi (Generic Charset Conversion): Fix typo
5159         (LC_TYPE -> LC_CTYPE).
5160
5161 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
5162
5163         [BZ #5805]
5164         * manual/arith.texi (scalbn): Use @var{} on parameter names.
5165         (scalbnf): Likewise.
5166         (scalbnl): Likewise.
5167         (scalbln): Likewise.
5168         (scalblnf): Likewise.
5169         (scalblnl): Likewise.
5170         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
5171         (vwarnx): Likewise.
5172         (verr): Likewise.
5173         (verrx): Likewise.
5174         * manual/filesys.texi (telldir): Use braces around return type.
5175         * manual/llio.texi (mmap): Add space after comma.
5176         (mmap64): Likewise.
5177         * manual/math.texi (jn): Use @var{} on parameter names.
5178         (jnf): Likewise.
5179         (jnl): Likewise.
5180         (yn): Likewise.
5181         (ynf): Likewise.
5182         (ynl): Likewise.
5183         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
5184         line.
5185         * manual/resource.texi (ulimit): Use @dots{} instead of literal
5186         "...".
5187         (sched_get_priority_min): Remove semicolon on @deftypefun line.
5188         (sched_get_priority_max): Likewise.
5189         * manual/signal.texi (sigvec): Add space after comma.
5190         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
5191         names.
5192         (if_indextoname): Likewise.
5193         (if_freenameindex): Likewise.
5194         (sendto): Use ',' instead of '.' in prototype.
5195         * manual/startup.texi (syscall): Use @dots{} instead of literal
5196         "...".
5197         * manual/stdio.texi (__fpending): Separate initial words of
5198         paragraph from @deftypefun line.
5199         * manual/syslog.texi (syslog): Use @dots{} instead of literal
5200         "...".
5201         (vsyslog): Use @var{} on parameter names.
5202         * manual/terminal.texi (stty): Use @var{} on parameter names.
5203         * manual/users.texi (getutmp): Use @var{} on parameter names.
5204         (getutmpx): Likewise.
5205
5206 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5207
5208         [BZ #6884]
5209         * manual/stdio.texi (fopen): Fix typos in description of
5210         ",ccs=STRING".
5211
5212 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
5213
5214         [BZ #4026]
5215         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
5216         get clock_id definition.
5217
5218 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
5219
5220         [BZ #4822]
5221         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
5222         (madvise): Cast every argument to void on its own.
5223
5224 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5225
5226         [BZ #9902]
5227         * manual/startup.texi (Exit Status): Fix typo.
5228
5229 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5230
5231         [BZ #10140]
5232         * manual/examples/argp-ex1.c: Include <stdlib.h>.
5233         * manual/examples/argp-ex2.c: Likewise.
5234         * manual/examples/argp-ex3.c: Likewise.
5235
5236 2012-02-16  Richard Henderson  <rth@redhat.com>
5237
5238         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
5239         * sysdeps/s390/s390-32/initfini.c: Remove.
5240         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
5241         * sysdeps/s390/s390-64/initfini.c: Remove.
5242
5243 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5244
5245         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
5246         compiler output for sysdeps/generic/initfini.c.
5247         * sysdeps/sh/elf/initfini.c: Remove file.
5248
5249 2012-02-16  David S. Miller  <davem@davemloft.net>
5250
5251         [BZ #11494]
5252         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
5253
5254         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
5255         * sysdeps/sparc/crti.S: New file.
5256         * sysdeps/sparc/crtn.S: New file.
5257         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
5258         * sysdeps/sparc/sparc64/Makefile: Likewise.
5259
5260 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
5261
5262         [BZ #3335]
5263         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
5264
5265 2012-02-15  Roland McGrath  <roland@hack.frob.com>
5266
5267         [BZ #4822]
5268         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
5269
5270         * mach/devstream.c (cookie_io_functions_t): Macro removed.
5271         (write, read, close): Likewise.
5272         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5273
5274 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
5275
5276         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
5277         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
5278         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
5279         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
5280         <bits/signalfd.h>.
5281         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
5282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5283         bits/signalfd.h.
5284
5285 2012-02-14  Marek Polacek  <polacek@redhat.com>
5286
5287         * sysdeps/x86_64/crti.S: New file.
5288         * sysdeps/x86_64/crtn.S: New file.
5289         * sysdeps/x86_64/elf/initfini.c: Remove file.
5290
5291 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5292
5293         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
5294         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
5295         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
5296         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
5297         <bits/inotify.h>.
5298         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
5299         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5300         bits/inotify.h.
5301
5302 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5303
5304         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
5305         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
5306         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
5307         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
5308         <bits/eventfd.h>.
5309         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
5310         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5311         bits/eventfd.h.
5312
5313 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
5314
5315         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
5316         __feraiseexcept instead of feraiseexcept.
5317
5318         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
5319         nanosleep invocations.
5320         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
5321         strings, and add error checking for a nanosleep invocations.
5322
5323 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5324
5325         Replace FSF snail mail address with URLs, as per GNU coding standards.
5326         Most of the snail mail addresses were wrong anyway, and omitting
5327         them makes the source code easier to maintain.  Almost all of the
5328         changes are to license notices and to locale LC_IDENTIFICATION
5329         addresses, except for this one:
5330         * manual/libc.texinfo: In "Published by", give the FSF's URL,
5331         not its snail mail address.
5332
5333 2012-02-09  Richard Henderson  <rth@twiddle.net>
5334
5335         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
5336         of kernel-features.h.
5337
5338         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
5339
5340 2012-02-08  Marek Polacek  <polacek@redhat.com>
5341
5342         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
5343         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
5344         * sysdeps/gnu/_G_config.h: Likewise.
5345         * sysdeps/generic/_G_config.h: Likewise.
5346
5347 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
5348
5349         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
5350         tests.
5351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5352
5353         * sysdeps/powerpc/powerpc32/crti.S: New file.
5354         * sysdeps/powerpc/powerpc32/crtn.S: New file.
5355         * sysdeps/powerpc/powerpc64/crti.S: New file.
5356         * sysdeps/powerpc/powerpc64/crtn.S: New file.
5357
5358         * Makeconfig (have-initfini): Don't set.
5359         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
5360         * configure.in (nopic_initfini): Don't substitute.
5361         * config.h.in (HAVE_INITFINI): Don't #undef.
5362         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
5363         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
5364
5365 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
5366
5367         Support crti.S and crtn.S provided directly by architectures.
5368         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
5369         [crti.S in sysdirs] (omit-deps): Likewise.
5370         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
5371         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
5372         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
5373         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
5374         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
5375         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
5376         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
5377         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
5378         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
5379         compiler output for sysdeps/generic/initfini.c.
5380         * sysdeps/i386/elf/Makefile: Remove file.
5381         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
5382
5383 2012-02-07  Marek Polacek  <polacek@redhat.com>
5384
5385         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
5386         * sysdeps/gnu/_G_config.h: Likewise.
5387         * sysdeps/mach/hurd/_G_config.h: Likewise.
5388
5389 2012-02-07  Marek Polacek  <polacek@redhat.com>
5390
5391         * math/Makefile (tests): Add tst-CMPLX2.
5392         * math/tst-CMPLX2.c: New file.
5393
5394 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
5395
5396         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5397
5398         * math/libm-test.inc (jn_test): Add missing L suffix.
5399
5400 2012-02-06  Marek Polacek  <polacek@redhat.com>
5401
5402         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
5403         * sysdeps/i386/fpu/e_powf.S: Likewise.
5404         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5405         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5406         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5407         * sysdeps/i386/fpu/e_pow.S: Likewise.
5408         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5409         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5410         * sysdeps/i386/fpu/s_expm1.S: Likewise.
5411         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5412         * sysdeps/i386/fpu/e_log2.S: Likewise.
5413         * sysdeps/i386/fpu/e_log2l.S: Likewise.
5414         * sysdeps/i386/fpu/e_scalb.S: Likewise.
5415         * sysdeps/i386/fpu/e_powl.S: Likewise.
5416         * sysdeps/i386/fpu/s_log1p.S: Likewise.
5417         * sysdeps/i386/fpu/e_log10f.S: Likewise.
5418         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5419         * sysdeps/i386/fpu/e_logl.S: Likewise.
5420         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5421         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
5422         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5423         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5424         * sysdeps/i386/fpu/e_log2f.S: Likewise.
5425         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5426         * sysdeps/i386/fpu/e_log.S: Likewise.
5427         * sysdeps/i386/fpu/s_cexp.S: Likewise.
5428         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5429         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
5430         * sysdeps/i386/fpu/e_logf.S: Likewise.
5431         * sysdeps/i386/fpu/e_log10l.S: Likewise.
5432         * sysdeps/i386/fpu/e_atanh.S: Likewise.
5433         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
5434         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5435         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5436         * sysdeps/i386/fpu/e_log10.S: Likewise.
5437         * sysdeps/i386/fpu/s_frexp.S: Likewise.
5438         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5439         * sysdeps/i386/fpu/s_asinh.S: Likewise.
5440         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5441         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5442         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5443         * sysdeps/i386/asm-syntax.h: Likewise.
5444         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5445         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5446         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5447         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5448         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
5449         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5450         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5451         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5452         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5453         * sysdeps/powerpc/sysdep.h: Likewise.
5454         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5455         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5456
5457 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5458
5459         [BZ #411]
5460         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
5461
5462 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5463
5464         * sysdeps/i386/sysdep.h: Include <features.h>.
5465         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
5466         version.
5467
5468 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
5469
5470         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
5471         Define.
5472         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
5473         LOAD_PIC_REG_STR.
5474
5475 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5476
5477         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
5478         (SETUP_PIC_REG): Use GET_PC_THUNK.
5479         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
5480         macro.
5481
5482 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5483
5484         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
5485         for non-PIC compilation.
5486         (SETUP_PIC_REG): Add .p2align directive.
5487         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
5488         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
5489         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5490         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5491         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5492         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5493         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
5494         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
5495         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5496         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5497         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5498         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5499         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5500         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5501         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5502         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5503         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5504         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5505         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5506         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5507         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5508         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5509         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5510         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
5511         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5512         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5513         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5514         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5515         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5516         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5517         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5518         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5519         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5520         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5521         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5522         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5523         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5524         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5525         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5526         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5527         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5528
5529 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5530
5531         * math/tst-CMPLX.c: Include <stdio.h>.
5532
5533 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
5534
5535         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
5536         float.
5537         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5538         * sysdeps/sparc/bits/mathdef.h: Likewise.
5539
5540 2012-01-31  Marek Polacek  <polacek@redhat.com>
5541
5542         * libio/libio.h: Don't define _PARAMS.
5543         * locale/programs/config.h: Don't define PARAMS.
5544         * stdlib/strtol_l.c: Likewise.
5545         (__strtol_l): Remove PARAMS from the prototype.
5546
5547 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
5548
5549         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
5550         names.  Just use the correct names.  Remove unnecessary wrapper
5551         functions.
5552         * malloc/arena.c: Likewise.
5553         * malloc/hooks.c: Likewise.
5554
5555         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
5556         ARENA_TEST says not to.  Simplify test for creation of a new arena.
5557         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
5558
5559 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
5560
5561         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
5562         into tail calls.
5563         (update_get_addr): New function.
5564         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
5565         GET_ADDR_MODULE parameter.
5566
5567 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5568
5569         * crypt/cert.c: Remove __STDC__ conditionals.
5570         * crypt/crypt-entry.c: Likewise.
5571         * crypt/crypt_util.c: Likewise.
5572         * libio/filedoalloc.c: Likewise.
5573         * libio/fileops.c: Likewise.
5574         * libio/genops.c: Likewise.
5575         * libio/iofclose.c: Likewise.
5576         * libio/iofdopen.c: Likewise.
5577         * libio/iofopen.c: Likewise.
5578         * libio/iofopen64.c: Likewise.
5579         * libio/iogetdelim.c: Likewise.
5580         * libio/iopopen.c: Likewise.
5581         * libio/obprintf.c: Likewise.
5582         * libio/oldfileops.c: Likewise.
5583         * libio/oldiofclose.c: Likewise.
5584         * libio/oldiofdopen.c: Likewise.
5585         * libio/oldiofopen.c: Likewise.
5586         * libio/oldiopopen.c: Likewise.
5587         * libio/wfiledoalloc.c: Likewise.
5588         * libio/wgenops.c: Likewise.
5589         * locale/programs/xmalloc.c: Likewise.
5590         * misc/syslog.c: Likewise.
5591         * stdio-common/xbug.c: Likewise.
5592         * string/memchr.c: Likewise.
5593         * string/memcmp.c: Likewise.
5594         * string/memrchr.c: Likewise.
5595         * string/rawmemchr.c: Likewise.
5596         * sysdeps/posix/getcwd.c: Likewise.
5597         * time/strftime_l.c: Likewise.
5598
5599 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5600
5601         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
5602         * config.make.in (config-cflags-sse2avx): Define.
5603         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
5604         Fix typo.
5605
5606 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
5607
5608         * scripts/config.guess: Update from upstream config git repository.
5609         * scripts/config.sub: Likewise.
5610
5611 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
5612
5613         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
5614         (EM_NUM): Update.
5615         (R_TILEPRO_*, R_TILEGX_*): New macros.
5616
5617         * scripts/firstversions.awk: Fix bug in version range handling.
5618
5619         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
5620
5621         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
5622
5623         * include/sys/epoll.h: New file.
5624         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
5625         libc_hidden_def.
5626
5627 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
5628
5629         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
5630         Avoid unnecessary __WORDSIZE == 64 test.
5631         (fmaxf): Use VEX format if possible.
5632         (fmax): Likewise.
5633         (fminf): Likewise.
5634         (fmin): Likewise.
5635
5636         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
5637         * math/math_private.h: Remove libc_fegetround* and
5638         libc_fesetround*.
5639         * sysdeps/i386/configure.in: Check for -msse2avx.
5640         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
5641         also if SSE2AVX is defined.
5642         Remove libc_fegetround* and libc_fesetround*.
5643         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
5644         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
5645         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
5646         of HAS_YMM_USABLE.
5647         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5648         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5649         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5650         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5651         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5652
5653         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
5654
5655 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5656
5657         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
5658         size is not set.
5659         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
5660
5661 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
5662
5663         [BZ #13618]
5664         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
5665         relocation.
5666         * Makeconfig (libm): Define.
5667         * elf/Makefile: Add rules to build and run tst-relsort1.
5668         * elf/tst-relsort1.c: New file.
5669         * elf/tst-relsort1mod1.c: New file.
5670         * elf/tst-relsort1mod2.c: New file.
5671
5672 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
5673
5674         * math/s_ldexp.c: Remove __STDC__ conditionals.
5675         * math/s_ldexpf.c: Likewise.
5676         * math/s_ldexpl.c: Likewise.
5677         * math/s_nextafter.c: Likewise.
5678         * math/s_nexttowardf.c: Likewise.
5679         * math/s_significand.c: Likewise.
5680         * math/s_significandf.c: Likewise.
5681         * math/s_significandl.c: Likewise.
5682         * math/w_jnl.c: Likewise.
5683         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5684         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5685         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5686         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5687         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5688         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5689         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
5690         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5691         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5692         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5693         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5694         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5695         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5696         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5697         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5698         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5699         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5700         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5701         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5702         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5703         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5704         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5705         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5706         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5707         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5708         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5709         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5710         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5711         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5712         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5713         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5714         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5715         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5716         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5717         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5718         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5719         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5720         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5721         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5722         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5723         * sysdeps/ieee754/k_standard.c: Likewise.
5724         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5725         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5726         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5727         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5728         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5729         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5730         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5731         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5732         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5733         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5734         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5735         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5736         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5737         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5738         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5739         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5740         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5741         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5742         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5743         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5744         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5745         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5746         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5747         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5748         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5749         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5750         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5751         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5752         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5753         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5754         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5755         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
5756         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5757         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5758         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5759         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5760         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
5761         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5762         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5763         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
5764         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5765         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5766         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
5767         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
5768         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5769         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5770         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
5771         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5772         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5773         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
5774         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5775         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5776         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5777         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5778         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5779         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5780         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
5781         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5782         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5783         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5784         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5785         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5786         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5787         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5788         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5789         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5790         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5791         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5792         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5793         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5794         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5795         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5796         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5797         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5798         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5799         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5800         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5801         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5802         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5803         * sysdeps/ieee754/s_matherr.c: Likewise.
5804         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5805         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5806         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5807         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5808
5809 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5810
5811         * crypt/md5.h: Remove __STDC__ conditionals.
5812         * libio/libioP.h: Likewise.
5813         * locale/programs/config.h: Likewise.
5814         * sysdeps/generic/sysdep.h: Likewise.
5815         * sysdeps/i386/asm-syntax.h: Likewise.
5816         * sysdeps/s390/asm-syntax.h: Likewise.
5817         * sysdeps/unix/sysdep.h: Likewise.
5818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5820
5821 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5822
5823         * libio/libio.h: Remove __STDC__ conditionals.
5824         * malloc/obstack.h: Likewise.
5825         * math/complex.h: Likewise.
5826         * math/math.h: Likewise.
5827         * sysdeps/generic/_G_config.h: Likewise.
5828         * sysdeps/gnu/_G_config.h: Likewise.
5829         * sysdeps/mach/hurd/_G_config.h: Likewise.
5830         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5831         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5832         * sysdeps/sparc/bits/mathdef.h: Likewise.
5833
5834 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
5835
5836         [BZ #13583]
5837         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
5838         Clean up HAS_* macros.
5839         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
5840         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
5841         possible.
5842         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
5843         HAS_AVX.
5844         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5845         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5846         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5847         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5848         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5849
5850 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * elf/tst-unique3.cc (gets): Remove declaration.
5853         * elf/tst-unique3lib.cc (gets): Likewise.
5854         * elf/tst-unique3lib2.cc (gets): Likewise.
5855         * elf/tst-unique4.cc (gets): Likewise.
5856
5857 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
5858
5859         * include/stdio.h: Add C++ protection.  Add gets declarations and
5860         definitions.
5861         * debug/tst-chk1.c: Don't declare gets here.
5862         * stdio-common/tst-gets.c: Likewise.
5863
5864 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5865
5866         * posix/glob: Remove directory.
5867
5868 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5869
5870         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
5871
5872 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
5873
5874         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
5875         of the non-standard EPFNOSUPPORT.
5876
5877 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5878
5879         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
5880         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
5881         ANYWHERE set to 1 only on KERN_NO_SPACE error.
5882
5883 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
5884
5885         * wcsmbs/uchar.h: Test __STDC_VERSION__.
5886
5887 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
5888
5889         * nscd/aicache.c (addhstaiX): Do not cache negative results of
5890         transient errors.
5891         * nscd/grpcache.c (cache_addgr): Likewise.
5892         * nscd/hstcache.c (cache_addhst): Likewise.
5893         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5894         * nscd/pwdcache.c (cache_addpw): Likewise.
5895         * nscd/servicescache.c (cache_addserv): Likewise.
5896
5897 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
5898
5899         * malloc/malloc.c: Various cleanups.
5900         * malloc/hooks.c: Likewise.
5901
5902         * stdlib/Makefile (tests): Add bug-fmtmsg1.
5903         * stdlib/bug-fmtmsg1.c: New file.
5904
5905         * stdlib/fmtmsg.c (init): Add missing unlock.
5906         Patch by Peng Haitao <penght@cn.fujitsu.com>.
5907
5908 2012-01-12  Marek Polacek  <polacek@redhat.com>
5909
5910         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
5911         and _GNU_SOURCE.
5912
5913 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
5914
5915         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
5916         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
5917         macro to ensure uniqueness of label name.
5918         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5919         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5920
5921 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
5922
5923         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
5924
5925         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
5926         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5927         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5928         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
5929
5930 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
5931
5932         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
5933
5934         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
5935         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5936         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5937
5938         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
5939
5940         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
5941         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5942         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5943         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5944
5945         * math/bits/math-finite.h: Add ldexp support.
5946
5947 2012-01-10  Marek Polacek  <polacek@redhat.com>
5948
5949         * locale/programs/localedef.h (show_archive_content): Add noreturn
5950         attribute.
5951
5952 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
5953
5954         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
5955
5956 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5957
5958         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
5959
5960         * io/Makefile (headers): Add bits/poll2.h.
5961
5962 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
5963
5964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
5965         typo #include statement.
5966
5967 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5968
5969         * include/sys/cdefs.h: Define __attribute_alloc_size.
5970         * catgets/gencat.c: Add alloc_size attribute and apply consistently
5971         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
5972         * elf/pldd.c: Likewise.
5973         * iconv/iconv_charmap.c: Likewise.
5974         * iconv/iconvconfig.c: Likewise.
5975         * iconv/strtab.c: Likewise.
5976         * locale/programs/locale.c: Likewise.
5977         * locale/programs/localedef.h: Likewise.
5978         * locale/programs/simple-hash.c: Likewise.
5979         * nscd/nscd.h: Likewise.
5980         * nss/makedb.c: Likewise.
5981         * sysdeps/generic/ldconfig.h: Likewise.
5982         * locale/programs/localedef.c: Remove xmalloc prototype.
5983         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
5984
5985 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
5986
5987         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
5988         appropriate.
5989
5990 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5991
5992         * math/Makefile (tests): Add tst-CMPLX.
5993         * math/tst-CMPLX.c: New file.
5994
5995         * math/complex.h (CMPLXL): Fix typo.
5996
5997         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
5998         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
5999         GLIBC_2.16.
6000         * debug/tst-chk1.c: Add poll and ppoll tests.
6001         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
6002         * include/sys/poll.h: Add hidden proto for ppoll.
6003         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
6004         * sysdeps/mach/hurd/ppoll.c: Likewise.
6005         * io/ppoll.c: Likewise.
6006         * debug/poll_chk.c: New file.
6007         * debug/ppoll_chk.c: New file.
6008         * include/bits/poll2.h: New file.
6009         * io/bits/poll2.h: New file.
6010
6011         [BZ #1350]
6012         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
6013
6014         * configure.in: static is always set to yes.  Remove.
6015         * config.make.in: Don't set build-static.
6016         * Makeconfig: Remove use of build-static.
6017         * dlfcn/Makefile: Likewise.
6018         * elf/Makefile: Likewise.
6019         * math/Makefile: Likewise.
6020         * misc/Makefile: Likewise.
6021         * nptl/Makefile: Likewise.
6022         * sysdeps/mach/hurd/Makefile: Likewise.
6023
6024         * configure.in: PWD_P is not used anymore.
6025         * config.make.in: Remove PWD_P entry.
6026
6027         * configure.in: Remove last remnants of RANLIB.
6028         No need to check for signed size_t anymore.
6029         Don't set libc_commonpagesize and libc_relro_required here for Alpha
6030         and IA-64.
6031         Remove __builtin_expect test because we require at least gcc 3.4.
6032         * aclocal.m4: Likewise.
6033
6034         * wcsmbs/mbrtoc16.c: Implement using towc function.
6035         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
6036         * wcsmbs/wcsmbsload.c: Likewise.
6037         * iconv/gconv_simple.c: Likewise.
6038         * iconv/gconv_int.h: Likewise.
6039         * iconv/gconv_builtin.h: Likewise.
6040         * iconv/iconv_prog.c: Remove CHAR16 handling.
6041
6042         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
6043
6044         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
6045
6046         * configure.in: Remove --with-elf and --enable-bounded options.
6047         Dont set base_machine for ia64.  More non-ELF conditions removed.
6048         Remove testing and setting of leading underscore information.
6049         * config.make.in (build-bounded): Set to no.
6050         * config.h.in: Remove NO_UNDERSCORES entry.
6051         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
6052         them.
6053         * csu/start.c: Remove !NO_UNDERSCORE code.
6054         * locale/localeinfo.h: Likewise.
6055         * sysdeps/generic/machine-gmon.h: Likewise.
6056         * sysdeps/generic/sysdep.h: Likewise.
6057         * sysdeps/i386/sysdep.h: Likewise.
6058         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6059         * sysdeps/mach/sysdep.h: Likewise.
6060         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6061         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6062         * sysdeps/sh/sysdep.h: Likewise.
6063         * sysdeps/sparc/sparc32/alloca.S: Likewise.
6064         * sysdeps/unix/i386/sysdep.S: Likewise.
6065         * sysdeps/unix/sparc/start.c: Likewise.
6066         * sysdeps/unix/sparc/sysdep.S: Likewise.
6067         * sysdeps/unix/sparc/sysdep.h: Likewise.
6068         * sysdeps/unix/start.c: Likewise.
6069         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6070         * sysdeps/x86_64/sysdep.h: Likewise.
6071
6072 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
6073
6074         [BZ #13553]
6075         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
6076         for non-gcc.
6077         * argp/argp-fmtstream.h: Use const instead __const.
6078         * argp/argp.h: Likewise.
6079         * assert/assert.h: Likewise.
6080         * bits/fenv.h: Likewise.
6081         * bits/sched.h: Likewise.
6082         * bits/sigset.h: Likewise.
6083         * bits/sigthread.h: Likewise.
6084         * catgets/nl_types.h: Likewise.
6085         * conform/data/pthread.h-data: Likewise.
6086         * crypt/crypt-private.h: Likewise.
6087         * crypt/crypt.h: Likewise.
6088         * crypt/crypt_util.c: Likewise.
6089         * ctype/ctype.h: Likewise.
6090         * debug/execinfo.h: Likewise.
6091         * debug/mbsnrtowcs_chk.c: Likewise.
6092         * debug/mbsrtowcs_chk.c: Likewise.
6093         * debug/wcsnrtombs_chk.c: Likewise.
6094         * debug/wcsrtombs_chk.c: Likewise.
6095         * debug/wcstombs_chk.c: Likewise.
6096         * dirent/dirent.h: Likewise.
6097         * dlfcn/dlfcn.h: Likewise.
6098         * elf/neededtest4.c: Likewise.
6099         * grp/grp.h: Likewise.
6100         * gshadow/gshadow.h: Likewise.
6101         * iconv/gconv.h: Likewise.
6102         * iconv/gconv_int.h: Likewise.
6103         * iconv/gconv_simple.c: Likewise.
6104         * iconv/iconv.h: Likewise.
6105         * iconv/loop.c: Likewise.
6106         * iconv/skeleton.c: Likewise.
6107         * include/aio.h: Likewise.
6108         * include/aliases.h: Likewise.
6109         * include/argz.h: Likewise.
6110         * include/arpa/inet.h: Likewise.
6111         * include/assert.h: Likewise.
6112         * include/dirent.h: Likewise.
6113         * include/dlfcn.h: Likewise.
6114         * include/execinfo.h: Likewise.
6115         * include/fcntl.h: Likewise.
6116         * include/fenv.h: Likewise.
6117         * include/glob.h: Likewise.
6118         * include/grp.h: Likewise.
6119         * include/libintl.h: Likewise.
6120         * include/mntent.h: Likewise.
6121         * include/netdb.h: Likewise.
6122         * include/pwd.h: Likewise.
6123         * include/rpc/netdb.h: Likewise.
6124         * include/sched.h: Likewise.
6125         * include/search.h: Likewise.
6126         * include/shadow.h: Likewise.
6127         * include/signal.h: Likewise.
6128         * include/stdio.h: Likewise.
6129         * include/stdlib.h: Likewise.
6130         * include/string.h: Likewise.
6131         * include/sys/socket.h: Likewise.
6132         * include/sys/stat.h: Likewise.
6133         * include/sys/statfs.h: Likewise.
6134         * include/sys/statvfs.h: Likewise.
6135         * include/sys/syslog.h: Likewise.
6136         * include/sys/time.h: Likewise.
6137         * include/sys/uio.h: Likewise.
6138         * include/time.h: Likewise.
6139         * include/unistd.h: Likewise.
6140         * include/utmp.h: Likewise.
6141         * include/wchar.h: Likewise.
6142         * include/wctype.h: Likewise.
6143         * inet/aliases.h: Likewise.
6144         * inet/arpa/inet.h: Likewise.
6145         * inet/netinet/ether.h: Likewise.
6146         * inet/netinet/in.h: Likewise.
6147         * intl/libintl.h: Likewise.
6148         * io/bits/fcntl2.h: Likewise.
6149         * io/fcntl.h: Likewise.
6150         * io/ftw.h: Likewise.
6151         * io/sys/poll.h: Likewise.
6152         * io/sys/stat.h: Likewise.
6153         * io/sys/statfs.h: Likewise.
6154         * io/sys/statvfs.h: Likewise.
6155         * io/utime.h: Likewise.
6156         * libio/bits/stdio.h: Likewise.
6157         * libio/bits/stdio2.h: Likewise.
6158         * libio/libio.h: Likewise.
6159         * libio/libioP.h: Likewise.
6160         * libio/stdio.h: Likewise.
6161         * locale/lc-ctype.c: Likewise.
6162         * locale/locale.h: Likewise.
6163         * login/utmp.h: Likewise.
6164         * malloc/arena.c: Likewise.
6165         * malloc/malloc.c: Likewise.
6166         * malloc/malloc.h: Likewise.
6167         * malloc/mcheck.c: Likewise.
6168         * malloc/mtrace.c: Likewise.
6169         * math/bits/mathcalls.h: Likewise.
6170         * math/fenv.h: Likewise.
6171         * math/math_private.h: Likewise.
6172         * misc/bits/error.h: Likewise.
6173         * misc/bits/syslog.h: Likewise.
6174         * misc/err.h: Likewise.
6175         * misc/error.h: Likewise.
6176         * misc/fstab.h: Likewise.
6177         * misc/mntent.h: Likewise.
6178         * misc/regexp.h: Likewise.
6179         * misc/search.h: Likewise.
6180         * misc/sgtty.h: Likewise.
6181         * misc/sys/mman.h: Likewise.
6182         * misc/sys/syslog.h: Likewise.
6183         * misc/sys/uio.h: Likewise.
6184         * misc/sys/xattr.h: Likewise.
6185         * misc/ttyent.h: Likewise.
6186         * nis/rpcsvc/ypclnt.h: Likewise.
6187         * nss/nss.h: Likewise.
6188         * posix/bits/unistd.h: Likewise.
6189         * posix/fnmatch.h: Likewise.
6190         * posix/glob.h: Likewise.
6191         * posix/sched.h: Likewise.
6192         * posix/spawn.h: Likewise.
6193         * posix/sys/wait.h: Likewise.
6194         * posix/unistd.h: Likewise.
6195         * posix/wordexp.h: Likewise.
6196         * pwd/pwd.h: Likewise.
6197         * resolv/netdb.h: Likewise.
6198         * resource/sys/resource.h: Likewise.
6199         * rt/aio.h: Likewise.
6200         * rt/bits/mqueue2.h: Likewise.
6201         * rt/mqueue.h: Likewise.
6202         * shadow/shadow.h: Likewise.
6203         * signal/signal.h: Likewise.
6204         * socket/send.c: Likewise.
6205         * socket/sendto.c: Likewise.
6206         * socket/sys/socket.h: Likewise.
6207         * stdio-common/printf.h: Likewise.
6208         * stdlib/bits/stdlib.h: Likewise.
6209         * stdlib/fmtmsg.h: Likewise.
6210         * stdlib/monetary.h: Likewise.
6211         * stdlib/stdlib.h: Likewise.
6212         * stdlib/ucontext.h: Likewise.
6213         * streams/stropts.h: Likewise.
6214         * string/argz.h: Likewise.
6215         * string/bits/string2.h: Likewise.
6216         * string/string.h: Likewise.
6217         * string/strings.h: Likewise.
6218         * sunrpc/rpc/auth.h: Likewise.
6219         * sunrpc/rpc/auth_des.h: Likewise.
6220         * sunrpc/rpc/clnt.h: Likewise.
6221         * sunrpc/rpc/netdb.h: Likewise.
6222         * sunrpc/rpc/pmap_clnt.h: Likewise.
6223         * sunrpc/rpc/xdr.h: Likewise.
6224         * sysdeps/generic/inttypes.h: Likewise.
6225         * sysdeps/generic/net/if.h: Likewise.
6226         * sysdeps/generic/sys/swap.h: Likewise.
6227         * sysdeps/gnu/net/if.h: Likewise.
6228         * sysdeps/gnu/utmpx.h: Likewise.
6229         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
6230         * sysdeps/i386/i486/bits/string.h: Likewise.
6231         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
6232         * sysdeps/s390/bits/string.h: Likewise.
6233         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
6234         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
6235         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6236         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
6237         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6238         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6239         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6240         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
6241         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
6242         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6243         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
6244         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
6245         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
6246         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
6247         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6248         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
6249         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
6250         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6251         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6252         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6253         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6254         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
6255         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
6256         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6257         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
6258         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
6259         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
6260         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6261         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
6262         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
6263         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
6264         * sysvipc/sys/ipc.h: Likewise.
6265         * sysvipc/sys/msg.h: Likewise.
6266         * sysvipc/sys/sem.h: Likewise.
6267         * sysvipc/sys/shm.h: Likewise.
6268         * termios/termios.h: Likewise.
6269         * time/sys/time.h: Likewise.
6270         * time/time.h: Likewise.
6271         * wcsmbs/bits/wchar2.h: Likewise.
6272         * wcsmbs/uchar.h: Likewise.
6273         * wcsmbs/wchar.h: Likewise.
6274         * wctype/wctype.h: Likewise.
6275
6276         [BZ #13551]
6277         * Makeconfig: Remove all but ELF support including AIX support.
6278         * Makerules: Likewise.
6279         * config.h.in: Likewise.
6280         * config.make.in: Likewise.
6281         * configure: Likewise.
6282         * configure.in: Likewise.
6283         * csu/Makefile: Likewise.
6284         * csu/version.c: Likewise.
6285         * debug/Makefile: Likewise.
6286         * dlfcn/Makefile: Likewise.
6287         * elf/Makefile: Likewise.
6288         * extra-lib.mk: Likewise.
6289         * iconv/Makefile: Likewise.
6290         * include/libc-symbols.h: Likewise.
6291         * include/shlib-compat.h: Likewise.
6292         * resolv/Makefile: Likewise.
6293         * resolv/res_libc.c: Likewise.
6294         * rt/Makefile: Likewise.
6295         * sysdeps/i386/asm-syntax.h: Likewise.
6296         * sysdeps/i386/sysdep.h: Likewise.
6297         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6298         * sysdeps/mach/sysdep.h: Likewise.
6299         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
6300         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
6301         * sysdeps/s390/asm-syntax.h: Likewise.
6302         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6303         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6304         * sysdeps/sh/sysdep.h: Likewise.
6305         * sysdeps/unix/sparc/sysdep.h: Likewise.
6306         * sysdeps/wordsize-32/divdi3.c: Likewise.
6307         * sysdeps/x86_64/sysdep.h: Likewise.
6308
6309         * argp/Versions: Remove _argp_unlock_xxx.
6310
6311         [BZ #13559]
6312         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
6313         * abilist/libBrokenLocale.abilist: Likewise.
6314         * abilist/libanl.abilist: Likewise.
6315         * abilist/libc.abilist: Likewise.
6316         * abilist/libcrypt.abilist: Likewise.
6317         * abilist/libdl.abilist: Likewise.
6318         * abilist/libm.abilist: Likewise.
6319         * abilist/libnsl.abilist: Likewise.
6320         * abilist/libpthread.abilist: Likewise.
6321         * abilist/libresolv.abilist: Likewise.
6322         * abilist/librt.abilist: Likewise.
6323         * abilist/libthread_db.abilist: Likewise.
6324         * abilist/libutil.abilist: Likewise.
6325         * abilist/libnss_db.abilist: New file.
6326
6327         * scripts/abilist.awk: Add support for indirect functions.
6328
6329         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
6330
6331         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
6332
6333         * shlib-versions: Remove entries for ports architectures.
6334
6335         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
6336         files in ports.
6337         * elf/stackguard-macros.h: Remove support for IA-64.
6338         * elf/tst-auditmod1.c: Likewise.
6339         * sysdeps/generic/ldsodefs.h: Likewise.
6340
6341         * sysdeps/unix/sysv/linux/configure.in: Ports should define
6342         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
6343         configure files.
6344
6345         [BZ #13552]
6346         * configure.in: Remove --enable-omitfp support.
6347         * FAQ.in: Adjust.
6348         * config.make.in: Likewise.
6349         * Makeconfig: Likewise.
6350         * manual/install.texi: Likewise.
6351
6352         In case anyone cares, the IA-64 architecture could move to ports.
6353         * sysdeps/ia64/*: Removed.
6354         * sysdeps/unix/sysv/linux/ia64/*: Removed.
6355         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
6356
6357         [BZ #13555]
6358         * configure.in: Remove entries for unsupported architectures.
6359
6360         [BZ #13533]
6361         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
6362         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
6363         routines.
6364         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
6365         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
6366         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
6367         fall back to using wcrtomb.
6368         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
6369         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
6370         renaming.
6371         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
6372         * wcsmbs/tst-c16c32-1.c: New file.
6373
6374         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
6375         local variable.
6376
6377         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
6378
6379         * elf/tst-unique3.cc: Add explicit declaration of gets.
6380         * elf/tst-unique3lib.cc: Likewise.
6381         * elf/tst-unique3lib2.cc: Likewise.
6382         * elf/tst-unique4.cc: Likewise.
6383
6384         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
6385
6386 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
6387
6388         [BZ #13566]
6389         * assert/assert.h (static_assert): Don't define for C++.
6390         * libio/stdio.h (gets): Do declare for C++ <= C++11.
6391         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
6392
6393 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
6394
6395         * iconv/loop.c (single loop): Fix assertion in storing of
6396         remaining bytes.
6397
6398         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
6399
6400 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
6401
6402         * posix/getconf.c: Update copyright year.
6403         * nss/getent.c: Likewise.
6404         * nss/makedb.c: Likewise.
6405         * iconv/iconvconfig.c: Likewise.
6406         * iconv/iconv_prog.c: Likewise.
6407         * elf/ldconfig.c: Likewise.
6408         * elf/pldd.c: Likewise.
6409         * elf/sotruss.ksh: Likewise.
6410         * catgets/gencat.c: Likewise.
6411         * csu/version.c: Likewise.
6412         * elf/ldd.bash.in: Likewise.
6413         * elf/sprof.c (print_version): Likewise.
6414         * locale/programs/locale.c: Likewise.
6415         * locale/programs/localedef.c: Likewise.
6416         * login/programs/pt_chown.c: Likewise.
6417         * nscd/nscd.c (print_version): Likewise.
6418         * debug/xtrace.sh: Likewise.
6419         * malloc/memusage.sh: Likewise.
6420         * malloc/mtrace.pl: Likewise.
6421         * debug/catchsegv.sh: Likewise.
6422
6423 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
6424
6425         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
6426         pure attribute.
6427
6428 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
6429
6430         [BZ #13533]
6431         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
6432         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
6433         transformations.
6434         * iconv/gconv_int.h: Likewise.
6435         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
6436         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
6437         from libc for GLIBC_2.16.
6438         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
6439         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
6440         * wcsmbs/uchar.h: Really define mbstate_t.
6441         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
6442         * wcsmbs/c16rtomb.c: New file.
6443         * wcsmbs/mbrtoc16.c: New file.
6444         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
6445         for C/POSIX locale.
6446         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
6447         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
6448
6449         * wcsmbs/wchar.h: Add missing __restrict.
6450
6451 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6452
6453         [BZ #13532]
6454         * time/Makefile (routines): Add timespec_get.
6455         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
6456         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
6457         timespec for ISO C11.
6458         * time/timespec_get.c: New file.
6459         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
6460         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
6461
6462         [BZ #13531]
6463         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
6464         * stdlib/stdlib.h: Declare aligned_alloc.
6465         * Versions.def: Add GLIBC_2.16 for libc.
6466         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
6467
6468         [BZ 13527]
6469         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
6470         ISO C11.
6471
6472         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
6473         code.
6474
6475         [BZ #13528]
6476         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
6477
6478         [BZ #13529]
6479         * assert/assert.h (static_assert): Define.
6480
6481         * version.h: Update for 2.16 development version.
6482
6483         [BZ #13526]
6484         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
6485         _ISOC11_SOURCE.
6486
6487         * version.h (RELEASE): Bump for 2.15 release.
6488         * include/features.h (__GLIBC_MINOR__): Bump to 15.
6489
6490         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
6491         Patch by Marek Polacek <mpolacek@redhat.com>.
6492
6493         * bits/byteswap.h: Protect long long constants with __extension__.
6494         * sysdeps/i386/bits/byteswap.h: Likewise.
6495         * sysdeps/ia64/bits/byteswap.h: Likewise.
6496         * sysdeps/s390/bits/byteswap.h: Likewise.
6497         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6498
6499 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6500
6501         [BZ #13540]
6502         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
6503         destination buffer.
6504         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
6505
6506 2011-12-23  Marek Polacek  <polacek@redhat.com>
6507
6508         * elf/dl-addr.c (determine_info): Add inline keyword.
6509         * elf/tst-auditmod4b.c (check_avx): Likewise.
6510         * elf/tst-auditmod6b.c (check_avx): Likewise.
6511         * elf/tst-auditmod6c.c (check_avx): Likewise.
6512         * elf/tst-auditmod7b.c (check_avx): Likewise.
6513
6514 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6515
6516         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
6517         !__SSE_MATH__.
6518
6519 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6520
6521         [BZ #13540]
6522         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
6523         processing for last bytes.
6524
6525 2011-08-06  Bruno Haible  <bruno@clisp.org>
6526
6527         [BZ #13061]
6528         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
6529         U+0385, not to U+1FEE.
6530
6531         [BZ #13062]
6532         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
6533         entry for U+00A5 U+0301.
6534
6535 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6536
6537         [BZ #13166]
6538         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
6539         buffer for the output is too small.
6540
6541         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
6542         optimization.
6543
6544         [BZ #13185]
6545         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
6546         SSE flags if possible.
6547
6548 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6549
6550         [BZ #13540]
6551         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
6552         processing for last bytes.
6553
6554 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
6555
6556         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
6557         (syscall-list-default-options, syscall-list-default-condition)
6558         (syscall-list-includes): Define.
6559         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
6560         list of ABIs and options and #if conditions for each ABI.  Do not
6561         handle common syscalls between ABIs specially.
6562         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
6563         Remove.
6564         (syscall-list-variants, syscall-list-32bit-options)
6565         (syscall-list-32bit-condition, syscall-list-64bit-options)
6566         (syscall-list-64bit-condition): Define.
6567         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
6568         (syscall-list-variants, syscall-list-32bit-options)
6569         (syscall-list-32bit-condition, syscall-list-64bit-options)
6570         (syscall-list-64bit-condition): Define.
6571         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
6572         Remove.
6573         (syscall-list-variants, syscall-list-32bit-options)
6574         (syscall-list-32bit-condition, syscall-list-64bit-options)
6575         (syscall-list-64bit-condition): Define.
6576         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
6577         Remove.
6578         (syscall-list-variants, syscall-list-32bit-options)
6579         (syscall-list-32bit-condition, syscall-list-64bit-options)
6580         (syscall-list-64bit-condition): Define.
6581
6582 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6583
6584         * locale/iso-639.def: Add brx entry.
6585
6586         [BZ #13328]
6587         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
6588         Proposed by Mariusz_Cukr <marcukr@op.pl>.
6589
6590         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
6591         __feraiseexcept_renamed.
6592
6593 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6594
6595         [BZ #13538]
6596         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
6597         EPOLLET with unsigned values.
6598         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6599         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6600
6601         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
6602         to large cancellation.
6603         * math/s_cacoshf.c: Likewise.
6604         * math/s_cacoshl.c: Likewise.
6605
6606 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
6607
6608         [BZ #13305]
6609         [BZ #12786]
6610         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
6611         * math/s_cacoshf.c: Likewise.
6612         * math/s_cacoshl.c: Likewise.
6613
6614 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6615
6616         [BZ #13439]
6617         * iconv/gconv.h: Define __GCONV_SWAP.
6618         * iconvdata/unicode.c: The swap bit must be stored in __flags.
6619         * iconvdata/utf-16.c: Likewise.
6620         * iconvdata/utf-32.c: Likewise.
6621
6622 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
6623
6624         [BZ #13524]
6625         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
6626         numerator after shifting it by one limb.
6627
6628 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
6629
6630         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
6631         under [__USE_EXTERN_INLINES].
6632
6633 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6634
6635         [BZ #13446]
6636         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
6637
6638 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6639
6640         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
6641         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
6642         optimized code.
6643         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
6644         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
6645         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
6646         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
6647         for strncasecmp/strncasecmp_l compilation.
6648         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
6649         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
6650
6651 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
6652
6653         [BZ #13484]
6654         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
6655         of __asm__.
6656
6657 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6658
6659         [BZ #13506]
6660         * time/tzfile.c (__tzfile_read): Check values from file header.
6661
6662 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
6663
6664         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
6665         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
6666         * powerpc/powerpc32/dl-start.S: Likewise.
6667         * powerpc/powerpc32/elf/start.S: Likewise.
6668         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
6669         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
6670         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
6671         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
6672         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
6673         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
6674         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
6675         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6676         * powerpc/powerpc32/fpu/s_round.S: Likewise.
6677         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
6678         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
6679         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
6680         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
6681         * powerpc/powerpc32/memset.S: Likewise.
6682         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
6683         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6684         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6685         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6686         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6687         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
6688         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
6689         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
6690         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
6691         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
6692         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
6693         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
6694         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
6695
6696 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6697
6698         * math/libm-test.inc: Added more nearbyint tests.
6699         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
6700         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
6701         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
6702         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
6703
6704 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
6705
6706         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
6707         FD_CLOEXEC.
6708
6709 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6710
6711         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
6712         Add wcscpy-ssse3 wcscpy-c.
6713         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
6714         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
6715         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
6716         * sysdeps/x86_64/wcschr.S: New file.
6717         * sysdeps/x86_64/wcsrchr.S: New file.
6718         * string/test-strcmp.c: Remove checking of wcscmp function for
6719         wrong alignments.
6720         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
6721         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
6722         wcsrchr-sse2 wcsrchr-c.
6723         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
6724         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
6725         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
6726         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
6727         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
6728         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
6729         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
6730         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
6731         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
6732         * wcsmbc/wcschr.c (WCSCHR): New macro.
6733
6734 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6735
6736         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
6737         * wcsmbs/test-wcsrchr.c: New file.
6738         * string/test-strrchr.c: Add wcsrchr support.
6739         (WIDE): New macro.
6740         * wcsmbs/test-wcscpy.c: New file.
6741         * string/test-strcpy.c: Add wcscpy support.
6742         (WIDE): New macro.
6743
6744 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
6745
6746         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
6747         the inner loop.
6748
6749 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
6750
6751         [BZ #13472]
6752         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
6753
6754 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
6755
6756         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
6757         Minor optimizations.
6758
6759         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
6760         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
6761         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
6762
6763 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
6764
6765         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
6766         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
6767         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
6768         for gcc to avoid warnings.
6769         * inet/Makefile (tests): Add tst-checks.
6770         * inet/tst-checks.c: New file.
6771
6772         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
6773         warning.
6774
6775         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
6776         __wmemcmp_sse2.
6777
6778         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
6779         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
6780
6781         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
6782
6783 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
6784
6785         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
6786         problem.
6787
6788         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
6789
6790 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
6791
6792         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
6793         conditional on GCC version.
6794         (__arch_compare_and_exchange_val_8_acq)
6795         (__arch_compare_and_exchange_val_16_acq)
6796         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
6797         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
6798         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
6799
6800 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
6801
6802         * sysdeps/sh/backtrace.c: New file.
6803
6804 2011-12-02  Andreas Schwab  <schwab@redhat.com>
6805
6806         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
6807         parenthesis.
6808
6809 2011-12-01  Andreas Schwab  <schwab@redhat.com>
6810
6811         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
6812         falling back to utime.
6813
6814 2011-11-30  Andreas Schwab  <schwab@redhat.com>
6815
6816         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
6817         expectations for float.
6818
6819 2011-11-29  Andreas Schwab  <schwab@redhat.com>
6820
6821         * locale/weight.h (findidx): Add parameter len.
6822         * locale/weightwc.h (findidx): Likewise.
6823         * posix/fnmatch_loop.c (FCT): Adjust caller.
6824         * posix/regcomp.c (build_equiv_class): Likewise.
6825         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
6826         * posix/regexec.c (check_node_accept_bytes): Likewise.
6827         * string/strcoll_l.c (STRCOLL): Likewise.
6828         * string/strxfrm_l.c (STRXFRM): Likewise.
6829
6830 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
6831
6832         * Makefile.in: Remove CVSOPT handling.
6833         * configure.in: Remove use of AC_REVISION.
6834         * iconvdata/Makefile (distribute): No need to filter out CVS.
6835         * scripts/list-sources.sh: Remove CVS, subversion and monotone
6836         handling.
6837
6838 2011-11-16  Andreas Schwab  <schwab@redhat.com>
6839
6840         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
6841         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
6842         [USE_AS_STRNCASECMP_L]: Likewise.
6843         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
6844         NO_TLS_DIRECT_SEG_REFS.
6845         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
6846         Fix argument offsets for non-PIC.
6847         [USE_AS_STRNCASECMP_L]: Likewise.
6848         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
6849         NO_TLS_DIRECT_SEG_REFS.
6850
6851 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6852
6853         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
6854         O_CLOEXEC.
6855         * locale/loadlocale.c (_nl_load_locale): Likewise.
6856
6857 2011-11-15  Andreas Schwab  <schwab@redhat.com>
6858
6859         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
6860         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
6861         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
6862         (SYSCALL_GETTIME): Set errno on error.
6863
6864         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
6865         count references to noai6ai_cached.
6866
6867 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6868
6869         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
6870
6871         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
6872         FD_CLOEXEC for /proc/self/maps.
6873
6874         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
6875         FD_CLOEXEC for /proc/meminfo.
6876
6877         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
6878         gai.conf.
6879
6880         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
6881         FD_CLOEXEC for given file.
6882
6883         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
6884
6885         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
6886         FD_CLOEXEC for /etc/hosts.
6887         (_gethtent): Likewise.
6888
6889         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
6890
6891         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
6892         cancellation and set FD_CLOEXEC for /etc/netgroup.
6893
6894         * nss/nss_files/files-key.c (search): Don't allow cancellation when
6895         reading /etc/publickey.
6896
6897         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
6898         allow cancellation when reading /etc/group.
6899
6900         * nss/nss_files/files-alias.c (internal_setent): Don't allow
6901         cancellation.
6902         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
6903
6904         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
6905         when using data file.
6906
6907         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
6908
6909         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
6910         (write_nis_obj): Use "c" and "e" in fopen.
6911
6912         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
6913
6914         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
6915
6916         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
6917
6918         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
6919
6920         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
6921         locale.alias.
6922
6923         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
6924
6925         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
6926
6927         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
6928
6929         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
6930         file parsing and set FD_CLOEXEC.
6931
6932 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6933
6934         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
6935
6936 2011-11-14  Andreas Schwab  <schwab@redhat.com>
6937
6938         * malloc/arena.c (arena_get2): Don't call reused_arena when
6939         _int_new_arena failed.
6940
6941 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6942
6943         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
6944         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
6945         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
6946         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6947         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6948         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
6949         to compile strcasecmp and strncasecmp.
6950         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
6951         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
6952
6953         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
6954
6955 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
6956
6957         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
6958         locale-defines.sym to gen-as-const-headers.
6959         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
6960         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
6961         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
6962         to compile strcasecmp and strncasecmp.
6963         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
6964         strcasecmp_l and strncasecmp_l.
6965         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
6966         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
6967         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
6968         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
6969         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
6970         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
6971         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
6972         * sysdeps/i386/i686/multiarch/strncase.S: New file.
6973         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
6974         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
6975         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
6976
6977 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
6978
6979         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
6980         result of SYSDEP_GETTIME_CPU to retval.
6981         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
6982         parameter list to macro.  Remove trailing semicolon.  Adjust users.
6983
6984         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
6985         variable.
6986
6987         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
6988         mantissa words.
6989         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
6990
6991         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
6992         from unused variable.
6993
6994         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
6995         DWARF definitions.
6996         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
6997         for assembling.
6998
6999         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
7000         over namespaces.
7001
7002         * sunrpc/rpc_prot.c (rejected): Fix case value.
7003
7004         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
7005         unsigned long long int to avoid warnings in shift.
7006
7007         * posix/regex_internal.c (re_string_reconstruct): Actually use result
7008         of use of trans.
7009         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
7010         variable tmp.
7011
7012         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
7013         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
7014         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
7015
7016         * nis/nis_table.c (nis_list): Use variable of correct type for
7017         result of __follow_path call.
7018
7019 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7020
7021         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
7022         of math functions ceil, trunc, floor, round, and sqrt, when
7023         avaliable on the platform.
7024         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
7025         name clash.
7026         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7027         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7028         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7029
7030 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
7031
7032         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
7033         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
7034
7035 2011-11-11  Roland McGrath  <roland@hack.frob.com>
7036
7037         * include/unistd.h: Fix __readlink return type.
7038         Reported by Chris Metcalf <cmetcalf@tilera.com>.
7039
7040 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
7041
7042         * stdlib/ucontext.h: Undo last change for makecontext.
7043
7044 2011-11-11  Andreas Schwab  <schwab@redhat.com>
7045
7046         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
7047
7048         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
7049         * setjmp/setjmp.h: Mark functions as non-leaf.
7050         * setjmp/bits/setjmp2.h: Likewise.
7051         * stdlib/ucontext.h: Likewise.
7052
7053 2011-11-10  Andreas Schwab  <schwab@redhat.com>
7054
7055         * malloc/arena.c (_int_new_arena): Don't increment narenas.
7056         (reused_arena): Don't check arena limit.
7057         (arena_get2): Atomically check arena limit.
7058
7059 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
7060
7061         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
7062         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
7063
7064         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
7065         instructions.
7066
7067 2011-11-07  Andreas Schwab  <schwab@redhat.com>
7068
7069         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
7070         handler when locking.
7071
7072         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7073         Fix size of allocated buffer.
7074
7075 2011-11-04  Andreas Schwab  <schwab@redhat.com>
7076
7077         [BZ #10103]
7078         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
7079         declarations for long double functions.
7080         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
7081
7082         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
7083
7084 2011-11-03  Andreas Schwab  <schwab@redhat.com>
7085
7086         * nscd/nscd.c (main): Don't start AVC thread until credentials are
7087         installed.
7088
7089         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
7090         is disabled.
7091
7092 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7093
7094         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
7095
7096 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7097
7098         * include/alloca.h (stackinfo_alloca_round): Define.
7099         (extend_alloca): Use it.
7100         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
7101         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
7102         here.
7103
7104         * scripts/check-local-headers.sh: Ignore libaudit.h.
7105
7106         * nscd/Makefile (extra-objs): Make recursively expanded.
7107
7108 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
7109
7110         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
7111         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7112
7113         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
7114         * posix/tst-rfc3484-2.c: Likewise.
7115         * posix/tst-rfc3484-3.c: Likewise.
7116
7117         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7118         process_vm_writev.
7119         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
7120         process_vm_writev.
7121         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
7122         process_vm_writev from libc using GLIBC_2.15 version.
7123
7124         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
7125
7126 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7127
7128         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
7129         stack usage.
7130
7131 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
7132
7133         [BZ #13367]
7134         * nss/getent.c (initgroups_keys): Show error message in case no group
7135         names are given.
7136
7137         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
7138         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
7139         __bump_nl_timestamp.
7140         * nscd/connections (nscd_init): When host database is served open
7141         netlink socket and request notification about configuration changes.
7142         (main_loop_poll): Track netlink file descriptor and bump timestamp
7143         in case data becomes available.
7144         (main_loop_epoll): Likewise.
7145         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
7146         (database_pers_head): Add extra_data fileds.
7147         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
7148         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
7149         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
7150         Adjust caller.
7151         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
7152         in6ai data, call __free_in6ai.
7153         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
7154         Add -DHAVE_NETLINK.
7155         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
7156         interface information.  Reuse previous data if netlink timestamp
7157         is not changed.
7158         (__bump_nl_timestamp): New function.
7159         (__free_in6ai): New function.
7160
7161 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
7162
7163         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
7164         close_not_cancel_no_status here.
7165         (__check_pf): Reorganize code a bit to not call close twice if OOM.
7166
7167 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7168
7169         [BZ #13276]
7170         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
7171         return value.
7172
7173         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
7174         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
7175         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
7176
7177 2011-07-03  Andreas Jaeger  <aj@suse.de>
7178
7179         [BZ #10709]
7180         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
7181         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
7182         * math/libm-test.inc (sin_test): Add test case.
7183
7184 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7185
7186         [BZ #13337]
7187         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
7188         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7189
7190         * elf/chroot_canon.c (chroot_canon): Cleanups.
7191
7192         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
7193
7194         [BZ #13335]
7195         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
7196         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7197
7198         * string/test-strchr.c: Make usable for strchrnul testing.
7199         * string/test-strchrnul.c: New file.
7200         * string/Makefile (strop-tests): Add strchrnul.
7201
7202         * po/it.po: Update from translation team.
7203         * po/es.po: Likewise.
7204
7205 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
7206
7207         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
7208         the three constants needed as parameters.  Drop the others.
7209         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
7210         __m128i_strloadu_tolower.
7211         Create and initialize variable zero and use it in all the places
7212         where _mm_setzero_si128 was used.
7213
7214         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
7215         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
7216         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
7217         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
7218         anymore.
7219         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
7220         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
7221         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
7222         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
7223         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
7224         __mpranred, __mptan.
7225         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
7226         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
7227         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
7228         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
7229         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
7230         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
7231         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
7232         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
7233         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
7234
7235 2011-10-28  Andreas Schwab  <schwab@redhat.com>
7236
7237         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
7238         redefine if SHARED.
7239         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
7240
7241         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
7242         wide char related routines to wcsmbs subdir.
7243
7244 2011-10-27  Andreas Schwab  <schwab@redhat.com>
7245
7246         [BZ #13344]
7247         * misc/sys/cdefs.h (__THROWNL): Define.
7248         * posix/unistd.h: Use __THREADNL instead of __THREAD
7249         for memory synchronization functions.
7250
7251 2011-10-26  Roland McGrath  <roland@hack.frob.com>
7252
7253         [BZ #13349]
7254         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
7255         doesn't exist.
7256         * manual/stdio.texi (Obstack Streams): Node removed.
7257
7258 2011-10-26  Andreas Schwab  <schwab@redhat.com>
7259
7260         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
7261         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7262         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7263
7264         * math/math_private.h (math_force_eval): Allow non-addressable
7265         arguments.
7266         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
7267
7268 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7269
7270         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
7271         file is not needed.
7272
7273         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
7274         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7275         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7276         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7277         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7278         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7279         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7280         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
7281         Add AVX variants.
7282         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
7283         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
7284         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
7285         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
7286         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
7287         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
7288         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
7289         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
7290         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
7291         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
7292         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
7293         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
7294         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
7295         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
7296         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
7297         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
7298         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
7299         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
7300         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
7301
7302         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
7303         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
7304
7305         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
7306         place.  Use VEX encoding when compiling for AVX.
7307
7308 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7309
7310         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
7311         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7312
7313         * string/test-strchr.c (do_test): Don't generate NUL bytes.
7314
7315 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7316
7317         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
7318         useless if() expression.
7319         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7320         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7321         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7322         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7323         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7324         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7325         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7326         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7327         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7328         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7329         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7330         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7331         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7332         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7333         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7334         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7335         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7336         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7337         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7338
7339         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
7340
7341 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7342
7343         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
7344         condition.
7345         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7346
7347 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7348
7349         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
7350         .text section.  Avoid duplicate constants.
7351         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7352         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7353         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7354         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7355         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7356         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7357         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7358         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7359         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
7360         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
7361         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
7362         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7363         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
7364         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
7365         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
7366         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
7367         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
7368         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
7369         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7370         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7371         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7372         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7373         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7374         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
7375         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
7376         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
7377         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
7378         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
7379         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
7380         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
7381         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
7382         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
7383         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7384         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
7385         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
7386         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
7387         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
7388         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
7389         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
7390         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
7391         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
7392         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
7393         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
7394         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
7395         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
7396
7397 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
7398
7399         * sysdeps/x86_64/dla.h: Move to ...
7400         * sysdeps/x86_64/fpu/dla.h: ...here.
7401         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
7402         situations.  Use __builtin_fma only for gcc 4.6 and up.
7403
7404         * config.make.in: Add have-mfma4 entry.
7405         * configure.in: Substitute libc_cv_cc_fma4.
7406         * math/Makefile (dbl-only-routines): Add sincostab.
7407         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
7408         Use __sincostab not sincos.
7409         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
7410         name is a macro.
7411         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7412         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7413         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7414         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
7415         using __copysign.
7416         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
7417         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
7418         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
7419         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
7420         and __inv.
7421         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
7422         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
7423         __copysign.
7424         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
7425         define aliases when function name is a macro.
7426         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
7427         sysdeps/ieee754/dbl-64/sincos.tbl.
7428         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
7429         fma4-enabled routines.
7430         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
7431         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
7432         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
7433         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
7434         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
7435         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
7436         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
7437         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
7438         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
7439         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
7440         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
7441         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
7442         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
7443         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
7444         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
7445         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
7446         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
7447         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
7448         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
7449         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
7450         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
7451         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
7452         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
7453         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
7454         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
7455         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
7456         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
7457         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
7458         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
7459         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
7460
7461         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
7462         rename.
7463         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7464         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7465         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7466         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7467         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7468         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7469         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7470         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7471
7472 2011-10-24  Andreas Schwab  <schwab@redhat.com>
7473
7474         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
7475
7476 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7477
7478         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
7479
7480         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
7481         prediction.
7482         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
7483
7484         * string/strnlen.c: Don't define STRNLEN, reverse logic.
7485         Remove unused variable magic_bits.
7486         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
7487
7488         * string/strnlen.c: Define and use STRNLEN macro.
7489         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
7490         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
7491         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
7492         * wcsmbs/wcslen.c: Define and use WCSLEN.
7493         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
7494         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
7495         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
7496         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
7497         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
7498         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
7499         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7500
7501 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7502
7503         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7504         strnlen-sse2-no-bsf.
7505         Rename strlen-no-bsf to strlen-sse2-no-bsf.
7506         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
7507         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
7508         Add strnlen support.
7509         (USE_AS_STRNLEN): New macro.
7510         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
7511         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
7512         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
7513         * sysdeps/x86_64/wcslen.S: New file.
7514
7515 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7516
7517         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7518         XMM-moves are used for copying on small sizes.
7519
7520 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7521
7522         * wcsmbs/Makefile (strop-tests): Add wcschr.
7523         * wcsmbs/test-wcschr.c: New file.
7524         * string/test-strchr.c: Update.
7525         Add wcschr support.
7526         (WIDE): New macro.
7527
7528 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7529
7530         * wcsmbs/Makefile (strop-tests): Add wcslen.
7531         * wcsmbs/test-wcslen.c: New file.
7532         * string/test-strlen.c: Update.
7533         Add wcslen support.
7534         (WIDE): New macro.
7535
7536 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7537
7538         * po/it.po: Update from translation team.
7539
7540 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7541
7542         * sysdeps/x86_64/wcscmp.S: Update.
7543         Fix wrong comparison semantics.
7544         wcscmp shall use signed comparison not unsigned.
7545         Don't use substraction to avoid overflow bug.
7546         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
7547         * wcsmbc/wcscmp.c: Likewise.
7548         * string/test-strcmp.c: Likewise.
7549         Add new tests to check cases with negative values.
7550
7551 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7552
7553         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
7554         * sysdeps/x86_64/dla.h: ...here.  New file.
7555         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
7556         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7557         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7558         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7559         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7560         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7561         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7562         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7563         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7564
7565 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
7566
7567         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
7568         __ynl_finite aliases.
7569
7570 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7571
7572         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7573
7574         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
7575         define DLA_FMA.
7576         [DLA_FMA] (EMULV): Use DLA_FMA.
7577         [DLA_FMA] (MUL12): Use EMULV.
7578         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
7579         that are not needed.
7580         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7581         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7582         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7583         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7584         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7585         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7586         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7587
7588 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
7589
7590         * math/s_nan.c: Undef __nan.
7591         * math/s_nanf.c: Undef __nanf.
7592         * math/s_nanl.c: Undef __nanl.
7593         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
7594         "math_private.h".
7595
7596 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7597
7598         * math/s_catan.c: Add branch predictions.
7599         * math/s_catanf.c: Likewise.
7600         * math/s_catanh.c: Likewise.
7601         * math/s_catanhf.c: Likewise.
7602         * math/s_catanhl.c: Likewise.
7603         * math/s_catanl.c: Likewise.
7604         * math/s_cexp.c: Likewise.
7605         * math/s_cexpf.c: Likewise.
7606         * math/s_cexpl.c: Likewise.
7607         * math/s_clog.c: Likewise.
7608         * math/s_clog10.c: Likewise.
7609         * math/s_clog10f.c: Likewise.
7610         * math/s_clog10l.c: Likewise.
7611         * math/s_clogf.c: Likewise.
7612         * math/s_clogl.c: Likewise.
7613         * math/s_csqrt.c: Likewise.
7614         * math/s_csqrtf.c: Likewise.
7615         * math/s_csqrtl.c: Likewise.
7616         * math/s_ctanf.c: Likewise.
7617         * math/s_ctanh.c: Likewise.
7618         * math/s_ctanhf.c: Likewise.
7619         * math/s_ctanhl.c: Likewise.
7620         * math/s_ctanl.c: Likewise.
7621
7622         * math/math_private.h: Define __nan, __nanf, __nanl.
7623         * math/s_cacosh.c: Include <math_private.h>.
7624         * math/s_cacoshl.c: Likewise.
7625         * math/s_casinh.c: Likewise.
7626         * math/s_casinhf.c: Likewise.
7627         * math/s_casinhl.c: Likewise.
7628         * math/s_ccos.c: Rely entire on ccosh.
7629         * math/s_ccosf.c: Rely entire on ccoshf.
7630         * math/s_ccosl.c: Rely entirely on ccoshl.
7631         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
7632         Remove tests for FE_INVALID.
7633         * math/s_ccoshf.c: Likewise.
7634         * math/s_ccoshl.c: Likewise.
7635         * math/s_csin.c: Likewise.
7636         * math/s_csinf.c: Likewise.
7637         * math/s_csinh.c Likewise.
7638         * math/s_csinhf.c: Likewise.
7639         * math/s_csinhl.c: Likewise.
7640         * math/s_csinl.c: Likewise.
7641         * math/s_ctan.c: Likewise.
7642         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
7643         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
7644         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
7645
7646 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
7647
7648         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
7649         compilation problems.
7650
7651         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
7652         __builtin_expect.
7653
7654 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
7655
7656         * sysdeps/i386/configure.in: Test for -mfma4 option.
7657         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
7658         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
7659         COMMON_CPUID_INDEX_80000001.
7660         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
7661         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
7662         use it if FMA3 is not supported.
7663         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
7664
7665         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
7666         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
7667
7668 2011-10-20  Andreas Schwab  <schwab@redhat.com>
7669
7670         [BZ #12892]
7671         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
7672         it would create a cycle with a link time dependency.
7673
7674 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
7675
7676         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
7677         instruction.
7678         * string/Makefile (strop-tests): Add rawmemchr.
7679         * string/test-rawmemchr.c: New file.
7680
7681         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
7682         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
7683         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
7684         when compiling str{,n}casecmp and when AVX is available.  Hook up
7685         new optimized code in initializers.
7686
7687 2011-10-19  Andreas Schwab  <schwab@redhat.com>
7688
7689         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
7690         __feraiseexcept instead of feraiseexcept.
7691
7692 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
7693
7694         * math/math_private.h: Define defaults for libc_fetestexcept and
7695         libc_feupdateenv.
7696         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
7697         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7698         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7699         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7700         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7701         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7702         libc_fetestexcept and libc_feupdateenv.
7703
7704         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
7705         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
7706         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
7707         * sysdeps/x86_64/fpu/math_private.h: Define special version of
7708         libc_feholdexcept_setround.
7709
7710         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
7711         Add s_nearbyint-c and s_nearbyintf-c.
7712         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
7713         nearbyintf inlines.
7714         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
7715         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
7716         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
7717         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
7718
7719         * math/math_private.h: Define defaults for libc_fegetround,
7720         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
7721         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
7722         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
7723         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
7724         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
7725         standard functions.
7726         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7727         Remove comments and hacks for old compiler versions.
7728         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7729         libc_fegetround, libc_fesetround, libc_feholdexcept, and
7730         libc_feholdexceptl.
7731
7732 2011-10-18  Andreas Schwab  <schwab@redhat.com>
7733
7734         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
7735         (__feraiseexcept_renamed): Add __NTH.
7736         (feraiseexcept): Add __NTH.  Rename local variables to fix
7737         namespace violations.
7738
7739 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
7740
7741         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
7742
7743         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
7744
7745         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
7746         recently added interfaces.
7747         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7748
7749         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
7750         about macro parameter expansion.
7751
7752         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
7753         __NO_MATH_INLINES is defined.  Cleanups.
7754
7755         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
7756         and __floorf is target has SSE4.1.
7757         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
7758         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
7759         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
7760         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
7761
7762         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
7763         name.
7764         (floorf): Likewise.
7765
7766         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
7767
7768 2011-10-17  Andreas Schwab  <schwab@redhat.com>
7769
7770         * misc/sys/cdefs.h: Fix last change.
7771
7772         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
7773         database lookup.
7774
7775 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
7776
7777         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
7778
7779         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
7780         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7781         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7782         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7783         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7784         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7785         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7786         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7787         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7788         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
7789         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
7790         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
7791         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
7792         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
7793         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
7794         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
7795         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
7796         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
7797         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
7798         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
7799         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
7800         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
7801
7802         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
7803         ceil, ceilf, floor, floorf.
7804
7805         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
7806         Perform IRELATIVE relocations last.
7807
7808         * elf/do-rel.h: Add another parameter nrelative, replacing the
7809         local variable with the same name.  Change name of the function
7810         to end in Rel or Rela (uppercase).
7811         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
7812         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
7813         elf_dynamic_do_##reloc function.
7814
7815 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7816
7817         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
7818         is sufficient, at least on modern CPUs.
7819
7820         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
7821
7822         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
7823         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
7824
7825         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
7826         __expl_finite.
7827         * math/bits/math-finite.h: Add entries for exp.
7828         * math/e_expl.c: Add __*_finite alias.
7829         * sysdeps/i386/fpu/e_exp.S: Likewise.
7830         * sysdeps/i386/fpu/e_expf.S: Likewise.
7831         * sysdeps/i386/fpu/e_expl.c: Likewise.
7832         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7833         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7834         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7835         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7836         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
7837         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7838         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7839
7840         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
7841         is sufficient, at least on modern CPUs.
7842
7843         * ctype/ctype-info.c (__ctype_init): Define.
7844         * include/ctype.h (__ctype_init): Declare.
7845         (__ctype_b_loc): The variable is always initialized.
7846         (__ctype_toupper_loc): Likewise.
7847         (__ctype_tolower_loc): Likewise.
7848         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
7849         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
7850
7851 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
7852
7853         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
7854
7855         * configure.in: Also look in $cxxmachine/include for C++ system
7856         headers.
7857
7858 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7859
7860         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
7861         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
7862         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
7863         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
7864         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
7865         (USE_AS_WMEMCMP): New macro.
7866         Fixing indents.
7867         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
7868         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
7869         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
7870         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
7871         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7872         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
7873         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
7874         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
7875         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
7876         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
7877         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
7878         (USE_AS_WMEMCMP): New macro.
7879         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
7880         * sysdeps/string/test-memcmp.c: Update.
7881         Fix simple_wmemcmp.
7882         Add new tests.
7883         * wcsmbs/wmemcmp.c: Update.
7884         (WMEMCMP): New macro.
7885         Fix overflow bug.
7886
7887 2011-10-12  Andreas Jaeger  <aj@suse.de>
7888
7889         [BZ #13268]
7890         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
7891
7892 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7893
7894         * libio/iofwide.c (do_length): Avoid warning.
7895
7896         * ctype/ctype.h (__isctype_f): Add missing __THROW.
7897
7898 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
7899
7900         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
7901
7902         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
7903         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
7904         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
7905         * sysdeps/i386/i686/fpu/e_log.S: New file.
7906         * sysdeps/i386/i686/fpu/e_logf.S: New file.
7907         * sysdeps/i386/i686/fpu/e_logl.S: New file.
7908
7909         * ctype/ctype.h: Add support for inlined isXXX functions when
7910         compiling C++ code.
7911
7912 2011-10-14  Andreas Schwab  <schwab@redhat.com>
7913
7914         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7915
7916         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
7917
7918 2011-10-13  Roland McGrath  <roland@hack.frob.com>
7919
7920         [BZ #13291]
7921         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
7922
7923 2011-10-13  Andreas Schwab  <schwab@redhat.com>
7924
7925         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
7926         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
7927         feraiseexcept.
7928
7929         * sysdeps/x86_64/memrchr.S: Check for zero size.
7930
7931         * string/stratcliff.c: Add memrchr tests.
7932
7933 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7934
7935         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7936         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
7937         rawmemchr-sse2 rawmemchr-sse2-bsf.
7938         * sysdeps/i386/i686/multiarch/memchr.S: New file.
7939         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
7940         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
7941         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
7942         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
7943         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
7944         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
7945         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
7946         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
7947         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
7948         * string/memrchr.c (MEMRCHR): New macro.
7949
7950 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
7951
7952         Add integration with gcc's -ffinite-math-only and optimize wrapper
7953         functions in libm.
7954         * Versions.def: Define GLIBC_2.15 version for libm.
7955         * math/Makefile (headers): Add bits/math-finite.h.
7956         * math/bits/math-finite.h: New file.
7957         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
7958         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
7959         * math/e_acoshl.c: Add __*_finite alias.
7960         * math/e_acosl.c: Likewise.
7961         * math/e_asinl.c: Likewise.
7962         * math/e_atan2l.c: Likewise.
7963         * math/e_atanhl.c: Likewise.
7964         * math/e_coshl.c: Likewise.
7965         * math/e_exp10.c: Likewise.
7966         * math/e_exp10f.c: Likewise.
7967         * math/e_exp10l.c: Likewise.
7968         * math/e_exp2l.c: Likewise.
7969         * math/e_fmodl.c: Likewise.
7970         * math/e_gammal_r.c: Likewise.
7971         * math/e_hypotl.c: Likewise.
7972         * math/e_j0l.c: Likewise.
7973         * math/e_j1l.c: Likewise.
7974         * math/e_jnl.c: Likewise.
7975         * math/e_lgammal_r.c: Likewise.
7976         * math/e_log10l.c: Likewise.
7977         * math/e_log2l.c: Likewise.
7978         * math/e_logl.c: Likewise.
7979         * math/e_powl.c: Likewise.
7980         * math/e_sinhl.c: Likewise.
7981         * math/e_sqrtl.c: Likewise.
7982         * math/e_scalb.c: Completely rewritten and optimized.
7983         * math/e_scalbf.c: Likewise.
7984         * math/e_scalbl.c: Likewise.
7985         * math/w_acos.c: Likewise.
7986         * math/w_acosf.c: Likewise.
7987         * math/w_acosl.c: Likewise.
7988         * math/w_acosh.c: Likewise.
7989         * math/w_acoshf.c: Likewise.
7990         * math/w_acoshl.c: Likewise.
7991         * math/w_asin.c: Likewise.
7992         * math/w_asinf.c: Likewise.
7993         * math/w_asinl.c: Likewise.
7994         * math/w_atan2.c: Likewise.
7995         * math/w_atan2f.c: Likewise.
7996         * math/w_atan2l.c: Likewise.
7997         * math/w_atanh.c: Likewise.
7998         * math/w_atanhf.c: Likewise.
7999         * math/w_atanhl.c: Likewise.
8000         * math/w_exp10.c: Likewise.
8001         * math/w_exp10f.c: Likewise.
8002         * math/w_exp10l.c: Likewise.
8003         * math/w_fmod.c: Likewise.
8004         * math/w_fmodf.c: Likewise.
8005         * math/w_fmodl.c: Likewise.
8006         * math/w_j0.c: Likewise.
8007         * math/w_j0f.c: Likewise.
8008         * math/w_j0l.c: Likewise.
8009         * math/w_j1.c: Likewise.
8010         * math/w_j1f.c: Likewise.
8011         * math/w_j1l.c: Likewise.
8012         * math/w_jn.c: Likewise.
8013         * math/w_jnf.c: Likewise.
8014         * math/w_log.c: Likewise.
8015         * math/w_logf.c: Likewise.
8016         * math/w_logl.c: Likewise.
8017         * math/w_log10.c: Likewise.
8018         * math/w_log10f.c: Likewise.
8019         * math/w_log10l.c: Likewise.
8020         * math/w_log2.c: Likewise.
8021         * math/w_log2f.c: Likewise.
8022         * math/w_log2l.c: Likewise.
8023         * math/w_pow.c: Likewise.
8024         * math/w_powf.c: Likewise.
8025         * math/w_powl.c: Likewise.
8026         * math/w_remainder.c: Likewise.
8027         * math/w_remainderf.c: Likewise.
8028         * math/w_remainderl.c: Likewise.
8029         * math/w_scalb.c: Likewise.
8030         * math/w_scalbf.c: Likewise.
8031         * math/w_scalbl.c: Likewise.
8032         * math/w_sqrt.c: Likewise.
8033         * math/w_sqrtf.c: Likewise.
8034         * math/w_sqrtl.c: Likewise.
8035         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
8036         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
8037         used.
8038         * math/math_private.h: Declare __kernel_standard_f.
8039         * math/w_cosh.c: Remove cruft and optimize a bit.
8040         * math/w_coshf.c: Likewise.
8041         * math/w_coshl.c: Likewise.
8042         * math/w_exp2.c: Likewise.
8043         * math/w_exp2f.c: Likewise.
8044         * math/w_exp2l.c: Likewise.
8045         * math/w_hypot.c: Likewise.
8046         * math/w_hypotf.c: Likewise.
8047         * math/w_hypotl.c: Likewise.
8048         * math/w_lgamma.c: Likewise.
8049         * math/w_lgamma_r.c: Likewise.
8050         * math/w_lgammaf.c: Likewise.
8051         * math/w_lgammaf_r.c: Likewise.
8052         * math/w_lgammal.c: Likewise.
8053         * math/w_lgammal_r.c: Likewise.
8054         * math/w_sinh.c: Likewise.
8055         * math/w_sinhf.c: Likewise.
8056         * math/w_sinhl.c: Likewise.
8057         * math/w_tgamma.c: Likewise.
8058         * math/w_tgammaf.c: Likewise.
8059         * math/w_tgammal.c: Likewise.
8060         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8061         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8062         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
8063         Minor optimizations.  Pretty printing.  Remove cruft.
8064         * sysdeps/i386/fpu/e_acosf.S: Likewise.
8065         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8066         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8067         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8068         * sysdeps/i386/fpu/e_acosl.c: Likewise.
8069         * sysdeps/i386/fpu/e_asin.S: Likewise.
8070         * sysdeps/i386/fpu/e_asinf.S: Likewise.
8071         * sysdeps/i386/fpu/e_atan2.S: Likewise.
8072         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
8073         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
8074         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8075         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8076         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8077         * sysdeps/i386/fpu/e_exp10.S: Likewise.
8078         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
8079         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
8080         * sysdeps/i386/fpu/e_exp2.S: Likewise.
8081         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
8082         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
8083         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8084         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
8085         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8086         * sysdeps/i386/fpu/e_hypot.S: Likewise.
8087         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
8088         * sysdeps/i386/fpu/e_log.S: Likewise.
8089         * sysdeps/i386/fpu/e_log10.S: Likewise.
8090         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8091         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8092         * sysdeps/i386/fpu/e_log2.S: Likewise.
8093         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8094         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8095         * sysdeps/i386/fpu/e_logf.S: Likewise.
8096         * sysdeps/i386/fpu/e_logl.S: Likewise.
8097         * sysdeps/i386/fpu/e_pow.S: Likewise.
8098         * sysdeps/i386/fpu/e_powf.S: Likewise.
8099         * sysdeps/i386/fpu/e_powl.S: Likewise.
8100         * sysdeps/i386/fpu/e_remainder.S: Likewise.
8101         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
8102         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
8103         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8104         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8105         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8106         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
8107         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
8108         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
8109         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8110         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8111         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8112         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8113         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8114         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8115         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8116         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8117         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8118         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8119         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8120         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8121         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8122         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8123         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8124         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8125         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8126         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8127         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8128         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8129         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8130         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8131         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8132         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8133         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8134         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8135         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8136         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8137         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8138         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8139         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8140         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8141         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8142         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8143         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8144         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8145         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8146         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8147         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8148         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8149         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8150         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8151         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8152         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8153         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8154         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8155         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8156         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8157         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8158         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8159         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8160         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8161         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8162         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8163         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8164         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8165         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8166         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8167         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8168         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8169         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8170         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8171         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8172         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8173         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8174         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8175         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8176         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8177         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8178         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8179         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8180         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8181         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8182         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8183         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8184         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8185         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
8186         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8187         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8188         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8189         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8190         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8191         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8192         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8193         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8194         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8195         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8196         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8197         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8198         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8199         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8200         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8201         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8202         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8203         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8204         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8205         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8206         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
8207         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
8208         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
8209         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
8210         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
8211         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
8212         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
8213         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8214         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8215         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8216         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8217         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
8218         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8219         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
8220         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
8221         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
8222         (__isnanf): Likewise.
8223         (__isinf_ns): Likewise.
8224         (__isinf_nsf): Likewise.
8225         (__finite): Likewise.
8226         (__finitef): Likewise.
8227         (__ieee754_sqrt): Define as macro.
8228         (__ieee754_sqrtf): Define as macro.
8229         (__ieee754_sqrtl): Define as macro.
8230         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
8231         inlined copy.
8232         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
8233         __FINITE_MATH_ONLY__ consistent.
8234         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
8235
8236 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
8237
8238         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
8239         of rawmemchr.
8240
8241         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
8242
8243 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
8244
8245         * po/ja.po: Update from translation team.
8246
8247 2011-10-08  Roland McGrath  <roland@hack.frob.com>
8248
8249         * locale/programs/locarchive.c (prepare_address_space): New function.
8250         (create_archive, enlarge_archive, open_archive): Use it.
8251
8252         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
8253         inside [SHARED], where it is used.
8254
8255         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
8256
8257         * nss/getent.c (netgroup_keys): Remove unused variable.
8258         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8259
8260 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
8261
8262         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
8263         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
8264         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
8265         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
8266         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
8267         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
8268         * math/Makefile (libm-calls): Add s_isinf_ns.
8269         * math/divtc3.c: Use __isinf_nsl instead of isinf.
8270         * math/multc3.c: Likewise.
8271         * math/s_casin.c: Likewise.
8272         * math/s_casinf.c: Likewise.
8273         * math/s_casinl.c: Likewise.
8274         * math/s_ccos.c: Likewise.
8275         * math/s_ccosf.c: Likewise.
8276         * math/s_ccosl.c: Likewise.
8277         * math/s_ctan.c: Likewise.
8278         * math/s_ctanf.c: Likewise.
8279         * math/s_ctanh.c: Likewise.
8280         * math/s_ctanhf.c: Likewise.
8281         * math/s_ctanhl.c: Likewise.
8282         * math/s_ctanl.c: Likewise.
8283         * math/w_fmod.c: Likewise.
8284         * math/w_fmodf.c: Likewise.
8285         * math/w_fmodl.c: Likewise.
8286         * math/w_remainder.c: Likewise.
8287         * math/w_remainderf.c: Likewise.
8288         * math/w_remainderl.c: Likewise.
8289         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
8290         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
8291         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
8292         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
8293         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
8294         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
8295         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
8296         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
8297
8298         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
8299         of the number.
8300         * stdio-common/printf_fphex.c: Likewise.
8301         * stdio-common/printf_size.c: Likewise.
8302
8303         * math/e_exp10.c: Include math_private.h using <...> not "...".
8304         * math/e_exp10f.c: Likewise.
8305         * math/e_exp10l.c: Likewise.
8306         * math/e_exp2l.c: Likewise.
8307         * math/e_j0l.c: Likewise.
8308         * math/e_j1l.c: Likewise.
8309         * math/e_jnl.c: Likewise.
8310         * math/e_lgammal_r.c: Likewise.
8311         * math/e_rem_pio2l.c: Likewise.
8312         * math/e_scalb.c: Likewise.
8313         * math/e_scalbf.c: Likewise.
8314         * math/e_scalbl.c: Likewise.
8315         * math/k_cosl.c: Likewise.
8316         * math/k_sinl.c: Likewise.
8317         * math/k_tanl.c: Likewise.
8318         * math/s_cacoshf.c: Likewise.
8319         * math/s_catan.c: Likewise.
8320         * math/s_catanf.c: Likewise.
8321         * math/s_catanh.c: Likewise.
8322         * math/s_catanhf.c: Likewise.
8323         * math/s_catanhl.c: Likewise.
8324         * math/s_catanl.c: Likewise.
8325         * math/s_ccosh.c: Likewise.
8326         * math/s_ccoshf.c: Likewise.
8327         * math/s_ccoshl.c: Likewise.
8328         * math/s_cexp.c: Likewise.
8329         * math/s_cexpf.c: Likewise.
8330         * math/s_cexpl.c: Likewise.
8331         * math/s_clog.c: Likewise.
8332         * math/s_clog10.c: Likewise.
8333         * math/s_clog10f.c: Likewise.
8334         * math/s_clog10l.c: Likewise.
8335         * math/s_clogf.c: Likewise.
8336         * math/s_clogl.c: Likewise.
8337         * math/s_csin.c: Likewise.
8338         * math/s_csinf.c: Likewise.
8339         * math/s_csinh.c: Likewise.
8340         * math/s_csinhf.c: Likewise.
8341         * math/s_csinhl.c: Likewise.
8342         * math/s_csinl.c: Likewise.
8343         * math/s_csqrt.c: Likewise.
8344         * math/s_csqrtf.c: Likewise.
8345         * math/s_csqrtl.c: Likewise.
8346         * math/s_ctan.c: Likewise.
8347         * math/s_ctanf.c: Likewise.
8348         * math/s_ctanh.c: Likewise.
8349         * math/s_ctanhf.c: Likewise.
8350         * math/s_ctanhl.c: Likewise.
8351         * math/s_ctanl.c: Likewise.
8352         * math/s_ldexp.c: Likewise.
8353         * math/s_ldexpf.c: Likewise.
8354         * math/s_ldexpl.c: Likewise.
8355         * math/s_significand.c: Likewise.
8356         * math/s_significandf.c: Likewise.
8357         * math/s_significandl.c: Likewise.
8358         * math/w_acos.c: Likewise.
8359         * math/w_acosf.c: Likewise.
8360         * math/w_acosh.c: Likewise.
8361         * math/w_acoshf.c: Likewise.
8362         * math/w_acoshl.c: Likewise.
8363         * math/w_acosl.c: Likewise.
8364         * math/w_asin.c: Likewise.
8365         * math/w_asinf.c: Likewise.
8366         * math/w_asinl.c: Likewise.
8367         * math/w_atan2.c: Likewise.
8368         * math/w_atan2f.c: Likewise.
8369         * math/w_atan2l.c: Likewise.
8370         * math/w_atanh.c: Likewise.
8371         * math/w_atanhf.c: Likewise.
8372         * math/w_atanhl.c: Likewise.
8373         * math/w_cosh.c: Likewise.
8374         * math/w_coshf.c: Likewise.
8375         * math/w_coshl.c: Likewise.
8376         * math/w_dremf.c: Likewise.
8377         * math/w_exp10.c: Likewise.
8378         * math/w_exp10f.c: Likewise.
8379         * math/w_exp10l.c: Likewise.
8380         * math/w_exp2.c: Likewise.
8381         * math/w_exp2f.c: Likewise.
8382         * math/w_fmod.c: Likewise.
8383         * math/w_fmodf.c: Likewise.
8384         * math/w_fmodl.c: Likewise.
8385         * math/w_hypot.c: Likewise.
8386         * math/w_hypotf.c: Likewise.
8387         * math/w_hypotl.c: Likewise.
8388         * math/w_j0.c: Likewise.
8389         * math/w_j0f.c: Likewise.
8390         * math/w_j0l.c: Likewise.
8391         * math/w_j1.c: Likewise.
8392         * math/w_j1f.c: Likewise.
8393         * math/w_j1l.c: Likewise.
8394         * math/w_jn.c: Likewise.
8395         * math/w_jnf.c: Likewise.
8396         * math/w_jnl.c: Likewise.
8397         * math/w_lgamma.c: Likewise.
8398         * math/w_lgamma_r.c: Likewise.
8399         * math/w_lgammaf.c: Likewise.
8400         * math/w_lgammaf_r.c: Likewise.
8401         * math/w_lgammal.c: Likewise.
8402         * math/w_lgammal_r.c: Likewise.
8403         * math/w_log.c: Likewise.
8404         * math/w_log10.c: Likewise.
8405         * math/w_log10f.c: Likewise.
8406         * math/w_log10l.c: Likewise.
8407         * math/w_log2.c: Likewise.
8408         * math/w_log2f.c: Likewise.
8409         * math/w_log2l.c: Likewise.
8410         * math/w_logf.c: Likewise.
8411         * math/w_logl.c: Likewise.
8412         * math/w_pow.c: Likewise.
8413         * math/w_powf.c: Likewise.
8414         * math/w_powl.c: Likewise.
8415         * math/w_remainder.c: Likewise.
8416         * math/w_remainderf.c: Likewise.
8417         * math/w_remainderl.c: Likewise.
8418         * math/w_scalb.c: Likewise.
8419         * math/w_scalbf.c: Likewise.
8420         * math/w_scalbl.c: Likewise.
8421         * math/w_sinh.c: Likewise.
8422         * math/w_sinhf.c: Likewise.
8423         * math/w_sinhl.c: Likewise.
8424         * math/w_sqrt.c: Likewise.
8425         * math/w_sqrtf.c: Likewise.
8426         * math/w_sqrtl.c: Likewise.
8427         * math/w_tgamma.c: Likewise.
8428         * math/w_tgammaf.c: Likewise.
8429         * math/w_tgammal.c: Likewise.
8430
8431         * po/ja.po: Update from translation team.
8432
8433 2011-09-29  Andreas Jaeger  <aj@suse.de>
8434
8435         [BZ #13179]
8436         * sunrpc/netname.c (netname2host): Fix logic.
8437
8438         [BZ #6779]
8439         [BZ #6783]
8440         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
8441         correctly.
8442         * math/w_remainder.c (__remainder): Likewise.
8443         * math/w_remainderf.c (__remainderf): Likewise.
8444         * math/libm-test.inc (remainder_test): Add test cases.
8445
8446 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8447
8448         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
8449         sdiv_qrnnd.
8450
8451 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8452
8453         * string/test-memcmp.c: Avoid unncessary #defines.
8454         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8455
8456 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8457
8458         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
8459         Use new sse2 version for core i3 - i7 as it's faster
8460         than sse42 version.
8461         (bit_Prefer_PMINUB_for_stringop): New.
8462         * sysdeps/x86_64/rawmemchr.S: Update.
8463         Replace with faster SSE2 version.
8464         * sysdeps/x86_64/memrchr.S: New file.
8465         * sysdeps/x86_64/memchr.S: Update.
8466         Replace with faster SSE2 version.
8467
8468 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
8469
8470         * elf/dl-load.c (lose): Add cast to avoid warning.
8471
8472 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8473
8474         * po/ca.po: Update from translation team.
8475
8476         * inet/getnetgrent_r.c: Hook up nscd.
8477         * nscd/Makefile (routines): Add nscd_netgroup.
8478         (nscd-modules): Add netgroupcache.
8479         (CFLAGS-netgroupcache.c): Define.
8480         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
8481         (cache_search): Add const to second parameter.
8482         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
8483         INNETGR.
8484         (dbs): Add netgrdb entry.
8485         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
8486         (verify_persistent_db): Handle netgrdb.
8487         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
8488         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
8489         GETFDNETGR.
8490         (netgroup_response_header): Define.
8491         (innetgroup_response_header): Define.
8492         (datahead): Add netgroup_response_header and innetgroup_response_header
8493         elements.
8494         * nscd/nscd.conf: Add entries for netgroup cache.
8495         * nscd/nscd.h (dbtype): Add netgrdb.
8496         (_PATH_NSCD_NETGROUP_DB): Define.
8497         (netgroup_iov_disabled): Declare.
8498         (xmalloc, xcalloc, xrealloc): Move declarations here.
8499         (cache_search): Adjust prototype.
8500         Add netgroup-related prototypes.
8501         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
8502         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
8503         (__nscd_innetgr): Declare.
8504         * nscd/selinux.c (perms): Use access_vector_t as element type and
8505         add netgroup-related initializers.
8506         * nscd/netgroupcache.c: New file.
8507         * nscd/nscd_netgroup.c: New file.
8508         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
8509         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
8510         For four parameters use innetgr.
8511         * nss/nss_files/files-init.c: Add definition and callback for netgr.
8512         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
8513         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
8514         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
8515
8516         * nscd/connections.c (register_traced_file): Don't register file
8517         for disabled databases.
8518
8519 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
8520
8521         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
8522
8523         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
8524         from tree and freeing node.
8525
8526 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
8527
8528         * nss/nsswitch.c (__nss_database_lookup): Handle
8529         nss_parse_service_list out of memory case.
8530
8531 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
8532
8533         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
8534         out of memory case.
8535
8536 2011-10-04  Andreas Schwab  <schwab@redhat.com>
8537
8538         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
8539         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
8540         pass it down.
8541         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
8542         elf_machine_rela, elf_machine_lazy_rel.
8543         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
8544         (ELF_DYNAMIC_DO_REL): Likewise.
8545         (ELF_DYNAMIC_DO_RELA): Likewise.
8546         (ELF_DYNAMIC_RELOCATE): Likewise.
8547         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
8548         to ELF_DYNAMIC_DO_REL.
8549         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
8550         (dl_main): In trace mode always set __RTLD_NOIFUNC.
8551         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
8552         elf_machine_rela.
8553         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
8554         skip_ifunc, don't call ifunc function if non-zero.
8555         (elf_machine_rela): Likewise.
8556         (elf_machine_lazy_rel): Likewise.
8557         (elf_machine_lazy_rela): Likewise.
8558         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
8559         (elf_machine_lazy_rel): Likewise.
8560         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
8561         Likewise.
8562         (elf_machine_lazy_rel): Likewise.
8563         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8564         Likewise.
8565         (elf_machine_lazy_rel): Likewise.
8566         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
8567         (elf_machine_lazy_rel): Likewise.
8568         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8569         (elf_machine_lazy_rel): Likewise.
8570         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8571         (elf_machine_lazy_rel): Likewise.
8572         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8573         (elf_machine_lazy_rel): Likewise.
8574         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8575         (elf_machine_lazy_rel): Likewise.
8576         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8577         (elf_machine_lazy_rel): Likewise.
8578
8579 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
8580
8581         * nss/nss_files/files-init.c (_nss_files_init): Use static
8582         initialization for all the *_traced_file variables.
8583
8584 2011-09-28  Andreas Schwab  <schwab@redhat.com>
8585
8586         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8587
8588 2011-09-27  Roland McGrath  <roland@hack.frob.com>
8589
8590         [BZ #13226]
8591         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
8592
8593 2011-09-27  Andreas Schwab  <schwab@redhat.com>
8594
8595         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8596         Reread the line before reparsing it.
8597
8598 2011-09-26  Andreas Schwab  <schwab@redhat.com>
8599
8600         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
8601
8602 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
8603             Maxim Kuvyrkov  <maxim@codesourcery.com>
8604             Joseph Myers  <joseph@codesourcery.com>
8605
8606         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
8607         if needed for __stack_chk_guard.
8608
8609 2011-09-19  Roland McGrath  <roland@hack.frob.com>
8610
8611         * sysdeps/posix/spawni.c (script_execute): Always define it.
8612         It will be optimized away if unused.
8613         (maybe_script_execute): New function.
8614         (__spawni): Call it.
8615
8616         * Makerules: Don't include tls.make.
8617         (config-tls): Always set to thread.
8618         * tls.make.c: File removed.
8619
8620 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
8621
8622         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
8623         * config.make.in (CPPFLAGS-config): New substituted variable.
8624
8625 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8626
8627         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
8628
8629         [BZ #13192]
8630         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
8631         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
8632
8633 2011-09-15  Roland McGrath  <roland@hack.frob.com>
8634
8635         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
8636         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
8637         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
8638         (CALL_FAIL): Likewise.
8639         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
8640         (CALL_FAIL): Macro removed.
8641         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
8642
8643 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8644
8645         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
8646         for __FINITE_MATH_ONLY__ == 1.
8647
8648 2011-09-15  Andreas Schwab  <schwab@redhat.com>
8649
8650         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
8651         __ieee754_sqrt instead of sqrt.
8652         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
8653         __ieee754_sqrtf instead of sqrtf.
8654         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
8655         __floorf instead of floorf.
8656         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
8657         __floorf, __truncf instead of floorf, truncf.
8658
8659 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
8660
8661         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
8662
8663         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
8664         __extern_always_inline.
8665         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
8666         32-bit.
8667
8668 2011-09-14  Andreas Schwab  <schwab@redhat.com>
8669
8670         * elf/rtld.c (dl_main): Also relocate in dependency order when
8671         doing symbol dependency testing.
8672
8673 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
8674
8675         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8676         Always define `refsym'.
8677
8678 2011-09-13  Andreas Schwab  <schwab@redhat.com>
8679
8680         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
8681         (__FD_ELT): Renamed from __FDELT.
8682         * misc/bits/select2.h (__FD_ELT): Likewise.
8683         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
8684         __FD_MASK instead of __FDELT, __FDMASK.
8685         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8686         Likewise.
8687         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8688         Likewise.
8689
8690         * elf/Makefile (gen-ldd): Fix pattern.
8691
8692         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
8693         (init_tls): Likewise.
8694
8695 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
8696
8697         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
8698
8699 2011-09-12  Andreas Schwab  <schwab@redhat.com>
8700
8701         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
8702         `struct cmsghdr *' instead of `void *'.
8703         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
8704         Likewise.
8705
8706 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
8707
8708         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
8709         if non-absolute.
8710         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
8711         ldd_rewrite_script.
8712
8713 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
8714
8715         * configure.in: Remove --with-tls option.
8716         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
8717         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
8718         out in case it is missing.
8719         * sysdeps/ia64/elf/configure.in: Likewise.
8720         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
8721         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
8722         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
8723         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
8724         * sysdeps/sh/elf/configure.in: Likewise.
8725         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
8726         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8727         * sysdeps/x86_64/elf/configure.in: Likewise.
8728         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
8729         * sysdeps/mach/hurd/tls.h: Likewise.
8730
8731         [BZ #13067]
8732         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
8733
8734         [BZ #13090]
8735         * configure.in: Fix use of AC_INIT.
8736
8737         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
8738
8739 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
8740
8741         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
8742         __set_errno.
8743         * malloc/hooks.c: Likewise.
8744
8745         [BZ #11929]
8746         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
8747         variables statically.
8748         (narenas): Initialize.
8749         (list_lock): Initialize.
8750         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
8751         initializtion of main_arena and list_lock.  Small cleanups.
8752         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
8753         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
8754         Add initializers to main_arena and mp_.
8755         (malloc_state): Remove pagesize member.  Change all users to use
8756         GLRO(dl_pagesize).
8757
8758         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
8759         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
8760         is always initialized.
8761
8762         * malloc/malloc.c: Removed unused configurations and dead code.
8763         * malloc/arena.c: Likewise.
8764         * malloc/hooks.c: Likewise.
8765         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
8766
8767         * include/tls.h: Removed.  USE___THREAD must always be defined.
8768         * bits/libc-tsd.h: Don't handle !USE___THREAD.
8769         * elf/dl-libc.c: Likewise.
8770         * elf/dl-tsd.c: Likewise.
8771         * include/errno.h: Likewise.
8772         * include/netdb.h: Likewise.
8773         * include/resolv.h: Likewise.
8774         * inet/herrno-loc.c: Likewise.
8775         * inet/herrno.c: Likewise.
8776         * malloc/arena.c: Likewise.
8777         * malloc/hooks.c: Likewise.
8778         * malloc/malloc.c: Likewise.
8779         * resolv/res-state.c: Likewise.
8780         * resolv/res_libc.c: Likewise.
8781         * sysdeps/i386/dl-machine.h: Likewise.
8782         * sysdeps/ia64/dl-machine.h: Likewise.
8783         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8784         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8785         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8786         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8787         * sysdeps/sh/dl-machine.h: Likewise.
8788         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8789         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8790         * sysdeps/unix/i386/sysdep.S: Likewise.
8791         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8792         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
8793         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
8794         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8795         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
8796         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8797         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
8798         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8799         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8800         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8801         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8802         * sysdeps/x86_64/dl-machine.h: Likewise.
8803         * tls.make.c: Likewise.
8804
8805         * configure.in: Remove --with-__thread option.  Make tests for
8806         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
8807         tls_model attribute fail if no support is available.  Remove
8808         USE_IN_LIBIO.
8809         * Makeconfig: Adjust for dropped configure option.  All features are
8810         now mandatory.
8811         * Makerules: Likewise.
8812         * Versions.def: Likewise.
8813         * argp/argp-fmtstream.c: Likewise.
8814         * argp/argp-fmtstream.h: Likewise.
8815         * argp/argp-help.c: Likewise.
8816         * assert/assert.c: Likewise.
8817         * config.h.in: Likewise.
8818         * config.make.in: Likewise.
8819         * configure: Likewise.
8820         * configure.in: Likewise.
8821         * csu/Versions: Likewise.
8822         * csu/init.c: Likewise.
8823         * elf/tst-audit2.c: Likewise.
8824         * elf/tst-tls10.c: Likewise.
8825         * elf/tst-tls10.h: Likewise.
8826         * elf/tst-tls11.c: Likewise.
8827         * elf/tst-tls12.c: Likewise.
8828         * elf/tst-tls14.c: Likewise.
8829         * elf/tst-tlsmod11.c: Likewise.
8830         * elf/tst-tlsmod12.c: Likewise.
8831         * elf/tst-tlsmod13.c: Likewise.
8832         * elf/tst-tlsmod13a.c: Likewise.
8833         * elf/tst-tlsmod14a.c: Likewise.
8834         * elf/tst-tlsmod15b.c: Likewise.
8835         * elf/tst-tlsmod16a.c: Likewise.
8836         * elf/tst-tlsmod16b.c: Likewise.
8837         * elf/tst-tlsmod7.c: Likewise.
8838         * elf/tst-tlsmod8.c: Likewise.
8839         * elf/tst-tlsmod9.c: Likewise.
8840         * gmon/gmon.c: Likewise.
8841         * grp/fgetgrent_r.c: Likewise.
8842         * grp/putgrent.c: Likewise.
8843         * hurd/fopenport.c: Likewise.
8844         * include/libc-symbols.h: Likewise.
8845         * include/tls.h: Likewise.
8846         * intl/gettextP.h: Likewise.
8847         * intl/loadinfo.h: Likewise.
8848         * locale/global-locale.c: Likewise.
8849         * locale/localeinfo.h: Likewise.
8850         * mach/devstream.c: Likewise.
8851         * malloc/arena.c: Likewise.
8852         * malloc/set-freeres.c: Likewise.
8853         * misc/err.c: Likewise.
8854         * misc/getttyent.c: Likewise.
8855         * misc/mntent_r.c: Likewise.
8856         * posix/getopt.c: Likewise.
8857         * posix/wordexp.c: Likewise.
8858         * pwd/fgetpwent_r.c: Likewise.
8859         * resolv/Versions: Likewise.
8860         * resolv/res_hconf.c: Likewise.
8861         * shadow/fgetspent_r.c: Likewise.
8862         * shadow/putspent.c: Likewise.
8863         * stdio-common/printf_fphex.c: Likewise.
8864         * stdio-common/tmpfile.c: Likewise.
8865         * stdlib/abort.c: Likewise.
8866         * stdlib/fmtmsg.c: Likewise.
8867         * sunrpc/auth_unix.c: Likewise.
8868         * sunrpc/clnt_perr.c: Likewise.
8869         * sunrpc/clnt_tcp.c: Likewise.
8870         * sunrpc/clnt_udp.c: Likewise.
8871         * sunrpc/clnt_unix.c: Likewise.
8872         * sunrpc/openchild.c: Likewise.
8873         * sunrpc/svc_simple.c: Likewise.
8874         * sunrpc/svc_tcp.c: Likewise.
8875         * sunrpc/svc_udp.c: Likewise.
8876         * sunrpc/svc_unix.c: Likewise.
8877         * sunrpc/xdr.c: Likewise.
8878         * sunrpc/xdr_array.c: Likewise.
8879         * sunrpc/xdr_rec.c: Likewise.
8880         * sunrpc/xdr_ref.c: Likewise.
8881         * sunrpc/xdr_stdio.c: Likewise.
8882
8883 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8884
8885         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8886
8887 2011-07-03  Andreas Jaeger  <aj@suse.de>
8888
8889         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
8890         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
8891         regenerate with gen-libm-tests.pl.
8892
8893 2010-05-12  Petr Baudis  <pasky@suse.cz>
8894
8895         [BZ #11589]
8896         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
8897         around j0() zero points by switching to j1().
8898         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8899         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8900         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8901         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8902
8903 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8904
8905         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
8906         instead of 0.
8907         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
8908         instead of 0.                              .
8909         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8910         Patch in part by Pavel Roskin <proski@gnu.org>.
8911
8912         [BZ #13138]
8913         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
8914         realloc.
8915         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
8916         Free memory block if necessary.
8917
8918         [BZ #12847]
8919         * libio/genops.c (INTDEF): For string streams the _lock pointer can
8920         be NULL.  Don't lock in this case.
8921
8922 2011-09-09  Roland McGrath  <roland@hack.frob.com>
8923
8924         * elf/elf.h (ELFOSABI_GNU): New macro.
8925         (ELFOSABI_LINUX): Define to that.
8926
8927 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
8928
8929         * string/strncat.c (strncat): Undef the symbol in case it has been
8930         defined in bits/string.h.
8931
8932 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8933
8934         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
8935
8936         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
8937         link map.
8938
8939 2011-08-17  Andreas Jaeger  <aj@suse.de>
8940
8941         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
8942
8943 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8944             Ian Lance Taylor  <iant@google.com>
8945
8946         * math/libm-test.inc (lround_test): New testcase.
8947         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
8948
8949 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
8950
8951         * Makefile: Remove support for automatic cvs check-ins.
8952         * Makerules: Likewise.
8953         * config.make.in: Likewise.
8954         * configure.in: Likewise.
8955         * intl/Makefile: Likewise.
8956         * locale/Makefile: Likewise.
8957         * po/Makefile: Likewise.
8958         * posix/Makefile: Likewise.
8959         * sysdeps/gnu/Makefile: Likewise.
8960         * sysdeps/mach/hurd/Makefile: Likewise.
8961         * sysdeps/sparc/sparc32/Makefile: Likewise.
8962
8963         [BZ #13118]
8964         * posix/Makefile (bug-regex32-ENV): Define.
8965         Patch by John Stanley <jpsinthemix@verizon.net>.
8966
8967         * misc/Makefile (headers): Add bits/select2.h.
8968         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
8969         * misc/bits/select2.h: New file.
8970         * include/bits/select2.h: New file.
8971         * debug/Makefile (routines): Add fdelt_chk.
8972         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
8973         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
8974         FD_ISSET.
8975         * debug/fdelt_chk.c: New file.
8976
8977         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
8978         * wcsmbs/test-wmemcmp.c: Likewise.
8979         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
8980         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
8981
8982 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8983
8984         * string/Makefile (strop-tests): Add memcmp.
8985         * string/test-wmemcmp.c: New file.
8986         * string/test-memcmp.c: Add wmemcmp support.
8987
8988 2011-09-08  Roland McGrath  <roland@hack.frob.com>
8989
8990         [BZ #13153]
8991         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
8992         2011-07-19 change.
8993
8994         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
8995         garbage value in a __mach_port_mod_refs call in the cases of the
8996         task-self and thread-self ports.
8997
8998 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8999
9000         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
9001
9002 2011-09-08  Andreas Schwab  <schwab@redhat.com>
9003
9004         * elf/dl-load.c (lose): Check for non-null L.
9005
9006 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9007
9008         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
9009
9010         * elf/dl-libc.c (dlerror_run): Pass back error code from
9011         dl_catch_error.
9012
9013         [BZ #13123]
9014         * elf/dl-load.c (lose): Free l_origin if it is valid.
9015
9016         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
9017         names.
9018         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
9019         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9020         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9021         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9022         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
9023         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
9024
9025 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9026
9027         * sysdeps/powerpc/fpu/e_hypot.c: New file.
9028         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
9029         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
9030         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
9031         * sysdeps/powerpc/fpu/k_cosf.c: New file.
9032         * sysdeps/powerpc/fpu/k_sinf.c: New file.
9033         * sysdeps/powerpc/fpu/s_cosf.c: New file.
9034         * sysdeps/powerpc/fpu/s_sinf.c: New file.
9035         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
9036         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
9037
9038 2011-08-15  Alan Modra  <amodra@gmail.com>
9039
9040         [BZ #13092]
9041         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
9042         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
9043         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
9044         ppc_mcount to static-only-routines.
9045         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
9046         __mcount_internal.
9047         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
9048         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
9049
9050 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
9051
9052         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
9053         for finite and infinity parameters.
9054
9055 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9056
9057         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
9058         and add nop instructions for throughput optimization.
9059         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9060
9061 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
9062
9063         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
9064         aligned copy for power7 with vector-scalar instructions.
9065         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
9066
9067 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9068
9069         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
9070         AVX check.
9071
9072 2011-09-07  Andreas Schwab  <schwab@redhat.com>
9073
9074         [BZ #13144]
9075         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
9076         last change.
9077
9078 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9079
9080         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9081         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
9082         syscall wrapper around clock_gettime in __vdso_clock_gettime.
9083         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
9084         clock_gettime.
9085
9086 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9087
9088         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
9089         Forgot to demangle the pointer.
9090
9091         * sysdeps/i386/sysdep.h: Define atom_text_section.
9092         * sysdeps/x86_64/sysdep.h: Likewise.
9093         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
9094         section with atom_text_section.
9095         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9096         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9097         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
9098         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9099         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
9100
9101         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
9102         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
9103         already be defined.  Change to take two parameters and don't assign
9104         result to variable.  Adjust all users.
9105         Define INTERNAL_GETTIME if not already defined.
9106         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
9107         call.
9108         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
9109         HAVE_CLOCK_GETTIME_VSYSCALL.
9110         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
9111
9112         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
9113         gettimeofday vsyscall, just use time.
9114
9115 2011-09-06  Andreas Schwab  <schwab@redhat.com>
9116
9117         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
9118         <errno.h>.
9119
9120 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9121
9122         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
9123         syscall on x86-64.
9124         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
9125         syscall.
9126         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
9127         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
9128         syscall if possible.
9129
9130 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9131
9132         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
9133         e_ident.  Don't pass to find_mapsXX.
9134         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
9135
9136 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9137
9138         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9139         strchr-sse2-no-bsf strrchr-sse2-no-bsf
9140         * sysdeps/x86_64/multiarch/strchr.S: Update.
9141         Check bit_slow_BSF bit.
9142         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9143         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
9144         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
9145
9146 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9147
9148         [BZ #13134]
9149         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
9150         before glibc 2.15.
9151         (tryshell): Define.
9152         (__spawni): Change last parameter to be flag.  Test
9153         SPAWN_XFLAGS_USE_PATH flag to use path or not.
9154         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
9155         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
9156         * posix/spawni.c: Likewise.
9157         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
9158         * posix/spawnp.c: Likewise.  Change normal version to use
9159         SPAWN_XFLAGS_USE_PATH.
9160         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
9161         SPAWN_XFLAGS_TRY_SHELL.
9162
9163         [BZ #13150]
9164         * posix/glob.h: Remove gcc 1.x support.
9165
9166         [BZ #13068]
9167         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
9168
9169 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9170
9171         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9172         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
9173         strrchr-sse2-bsf
9174         * sysdeps/i386/i686/multiarch/strchr.S: New file.
9175         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
9176         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
9177         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
9178         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
9179         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
9180
9181 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9182
9183         * sysdeps/x86_64/wcscmp.S: New file.
9184
9185         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
9186         wcscmp-c wcscmp-sse2
9187         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
9188         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
9189         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
9190         * wcsmbs/wcscmp.c: Allow renaming.
9191
9192 2011-09-05  David S. Miller  <davem@davemloft.net>
9193
9194         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
9195         stack slot, rather than the struct return pointer slot.
9196         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
9197         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
9198         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
9199         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
9200
9201 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9202
9203         * po/ja.po: Update from translation team.
9204
9205         [BZ #13144]
9206         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
9207         kernel in 64-bit binaries.
9208
9209 2011-09-01  David S. Miller  <davem@davemloft.net>
9210
9211         * elf/elf.h (HWCAP_SPARC_*): Move to..
9212         * sysdeps/sparc/sysdep.h: this new file and add new values.
9213         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
9214         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
9215         _DL_HWCAP_COUNT to 24.
9216         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9217         entries.
9218         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
9219         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
9220         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
9221         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
9222         instead of magic constants.
9223         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9224
9225 2011-08-31  David S. Miller  <davem@davemloft.net>
9226
9227         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
9228         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
9229         Reimplement to do errno handling inline.
9230         (SYSCALL_ERROR_HANDLER): New macro.
9231         (__SYSCALL_STRING): Do not do errno handling in asm.
9232         (__CLONE_SYSCALL_STRING): Delete.
9233         (__INTERNAL_SYSCALL_STRING): Delete.
9234         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9235         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
9236         (PSEUDO): Reimplement to do errno handling inline.
9237         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
9238         (SYSCALL_ERROR_HANDLER): New macro.
9239         (__SYSCALL_STRING): Do not do errno handling in asm.
9240         (__CLONE_SYSCALL_STRING): Delete.
9241         (__INTERNAL_SYSCALL_STRING): Delete.
9242         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
9243         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
9244         i386.
9245         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
9246         (inline_syscall*): Add 'err' argument.
9247         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
9248         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
9249         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
9250         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
9251
9252         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
9253         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9254
9255 2011-08-30  Andreas Schwab  <schwab@redhat.com>
9256
9257         * elf/rtld.c (dl_main): Relocate objects in dependency order.
9258
9259 2011-08-29  Jiri Olsa <jolsa@redhat.com>
9260
9261         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
9262         directive.
9263
9264 2011-08-24  David S. Miller  <davem@davemloft.net>
9265
9266         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
9267
9268 2011-08-24  Andreas Schwab  <schwab@redhat.com>
9269
9270         * elf/Makefile: Add rules to build and run unload8 test.
9271         * elf/unload8.c: New file.
9272         * elf/unload8mod1.c: New file.
9273         * elf/unload8mod1x.c: New file.
9274         * elf/unload8mod2.c: New file.
9275         * elf/unload8mod3.c: New file.
9276
9277         * elf/dl-close.c (_dl_close_worker): Reset private search list if
9278         it wasn't used.
9279
9280 2011-08-23  David S. Miller  <davem@davemloft.net>
9281
9282         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
9283         subtract stack bias.
9284         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
9285         %sp not %fp in calculations.
9286         (_JMPBUF_UNWINDS_ADJ): Likewise.
9287
9288         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
9289         (aio_suspend): Call it to force an exception region around the
9290         AIO_MISC_WAIT() invocation.
9291
9292 2011-08-23  Andreas Schwab  <schwab@redhat.com>
9293
9294         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
9295         backslash.
9296
9297 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
9298
9299         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
9300         protection macro.
9301         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
9302         and <dl-machine.h>.
9303         (Elf64_FuncDesc): Remove.
9304
9305 2011-08-22  David S. Miller  <davem@davemloft.net>
9306
9307         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
9308         sigaltstack check, add missing cfi directives.
9309         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
9310         missing cfi directives, and sigaltstack handling.
9311
9312 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9313
9314         [BZ #11724]
9315         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
9316         object is seen twice.
9317         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9318
9319         * elf/Makefile (distribute): Add tst-initorder2.c.
9320         (tests): Add tst-initorder2.
9321         (modules-names): Add tst-initorder2a tst-initorder2b
9322         tst-initorder2c tst-initorder2d.  Add rules to build them.
9323         ($(objpfx)tst-initorder2.out): New rule.
9324         * elf/tst-initorder2.c: New file.
9325         * elf/tst-initorder2.exp: New file.
9326
9327 2011-08-22  Andreas Schwab  <schwab@redhat.com>
9328
9329         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
9330
9331         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
9332         dependencies back to end of function.
9333
9334         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
9335         $(elfobjdir)/ld.so.
9336
9337 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
9338
9339         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
9340         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
9341         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9342         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9343         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
9344         of __vdso_gettimeofday.
9345         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
9346         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
9347         attribute_hidden.
9348         (_libc_vdso_platform_setup): Remove initialization of
9349         __vdso_gettimeofday and __vdso_time.
9350
9351 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9352
9353         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
9354         and fgetc_unlocked.
9355         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
9356         getc_unlocked.
9357
9358         * elf/dl-open.c (add_to_global): Report additions to the global scope
9359         for LD_DEBUG=scopes.
9360         (dl_open_worker): Also print scope of newly loaded dependencies.
9361         (_dl_show_scope): Indicate if there is no scope.
9362
9363         [BZ #13114]
9364         * stdio-common/Makefile (tests): Add bug24.
9365         * stdio-common/bug24.c: New file.
9366
9367 2011-08-19  Andreas Jaeger  <aj@suse.de>
9368
9369         [BZ #13114]
9370         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
9371         non-existant file when using close-on-exec mode.
9372
9373 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9374
9375         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
9376         the very first instruction.
9377
9378         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
9379         the CFI state in the end.
9380         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
9381         inclusion of dl-trampoline.h.
9382         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
9383
9384 2011-08-19  Andreas Schwab  <schwab@redhat.com>
9385
9386         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
9387         expectations for long double.
9388
9389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
9390         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
9391
9392 2011-08-14  David S. Miller  <davem@davemloft.net>
9393
9394         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
9395         artificual limit depends upon the system page size.
9396
9397 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9398
9399         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
9400         * resolv/Makefile: Define CFLAGS-libresolv.
9401
9402 2011-08-17  Andreas Schwab  <schwab@redhat.com>
9403
9404         * nss/makedb.c (compute_tables): Make variables used in nested
9405         function static.
9406
9407 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9408
9409         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
9410         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
9411         if buffer was too small.
9412
9413         * elf/pldd.c (main): Attach to all threads in the process.
9414         Rewrite /proc handling to use *at functions.
9415
9416 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
9417
9418         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
9419         specifies first scope to show.
9420         (dl_open_worker): Update callers.  Move printing scope of new
9421         object to before the relocation.
9422         * elf/rtld.c (dl_main): Update _dl_show_scope call.
9423         * sysdeps/generic/ldsodefs.h: Update declaration.
9424
9425         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
9426         string for the scope number.
9427
9428 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
9429
9430         * nscd/servicescache.c (cache_addserv): Make sure written is always
9431         initialized.
9432
9433 2011-08-14  Roland McGrath  <roland@hack.frob.com>
9434
9435         * sysdeps/i386/i486/bits/atomic.h
9436         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
9437         statement expression, so as to suppress "set but not used" warning.
9438         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
9439
9440         * string/strncat.c (STRNCAT): Use prototype definition.
9441
9442         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
9443         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
9444         -Iprograms here.
9445         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
9446         (localedef-modules): Add localedef.
9447         (locale-modules): Add locale.
9448
9449         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
9450         * elf/rtld.c (dl_main): Invert order of assignment in last change,
9451         to avoid a warning.
9452
9453 2011-08-14  David S. Miller  <davem@davemloft.net>
9454
9455         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
9456         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
9457
9458 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
9459
9460         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
9461         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
9462         * elf/rtld.c (dl_main): Set l_name of vDSO.
9463         Call _dl_show_scope when DL_DEBUG_SCOPES.
9464         (process_dl_debug): Recognize scopes flag and also set it for all.
9465         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
9466         Declare _dl_show_scope.
9467
9468         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
9469         (do_dlopen): Pass caller_dlopen to dl_open.
9470         (__libc_dlopen_mode): Initialize caller_dlopen.
9471
9472         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
9473         of libc.  Make tolower call locale-independent.  Optimize a bit by
9474         using isdigit instead of isalnum.
9475         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
9476
9477 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
9478
9479         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
9480         was a dependency or dynamically loaded.
9481
9482 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
9483
9484         * intl/l10nflist.c: Allow architecture-specific pop function.
9485         * sysdeps/x86_64/l10nflist.c: New file.
9486
9487         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
9488         classification.
9489
9490 2011-08-10  Andreas Schwab  <schwab@redhat.com>
9491
9492         * include/dirent.h: Add libc_hidden_proto for scandirat and
9493         scandirat64.  Don't declare __scandirat64.
9494         * dirent/scandirat.c: Add libc_hidden_def.
9495         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
9496         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
9497
9498 2011-08-10  David S. Miller  <davem@davemloft.net>
9499
9500         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
9501         enum.
9502         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9503         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9504         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9505
9506 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
9507
9508         * Versions.def [libc]: Add GLIBC_2.15.
9509         * dirent/Makefile (routines): Add scandirat and scandirat64.
9510         * dirent/Versions [libc]: Export scandirat and scandirat64 for
9511         GLIBC_2.15.
9512         * dirent/dirent.h: Declare scandirat and scandirat64.
9513         * dirent/scandirat.c: New file.
9514         * dirent/scandirat64.c: New file.
9515         * sysdeps/wordsize-64/scandirat.c: New file.
9516         * sysdeps/wordsize-64/scandirat64.c: New file.
9517         * dirent/opendir.c: Define opendirat.
9518         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
9519         using scandirat.
9520         * dirent/scandir64.c: Adjust for scandir.c change.
9521         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
9522         __scandirat64, and __scandir_cancel_handler.
9523         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
9524         additional parameter and use openat instead of open (outside of ld.so).
9525         Add new __opendir as wrapper around __opendirat.
9526         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
9527         here without requiring old scandirat implementation.
9528
9529 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
9530
9531         * dirent/scandir.c (cancel_handler): Renamed to
9532         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
9533         defined.  Adjust users.
9534         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
9535         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9536
9537 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
9538
9539         * string/test-string.h (IMPL): Use __STRING to expand name and then
9540         stringify it.
9541
9542         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
9543         of cleanups.
9544
9545 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9546
9547         * string/Makefile: Update.
9548         (strop-tests): Append strncat.
9549         * string/test-wcscmp.c: New file.
9550         New comprehensive test for wcscmp.
9551         * string/test-strcmp.c: Update.
9552         (WIDE): New define.
9553
9554 2011-07-22  Andreas Schwab  <schwab@redhat.com>
9555
9556         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
9557         line.
9558
9559 2011-07-26  Andreas Schwab  <schwab@redhat.com>
9560
9561         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
9562         encoding to ACE if AI_IDN.
9563
9564 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
9565
9566         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
9567         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
9568
9569 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9570
9571         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
9572         Fix overflow bug in strncat.
9573         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
9574
9575         * string/test-strncat.c: Update.
9576         Add new tests for checking overflow bugs.
9577
9578 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9579
9580         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9581         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
9582         * sysdeps/i386/i686/multiarch/strcat.S: New file.
9583         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
9584         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
9585         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
9586         * sysdeps/i386/i686/multiarch/strncat.S: New file.
9587         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
9588         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
9589
9590         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
9591         (USE_AS_STRCAT): Define.
9592         Add strcat and strncat support.
9593         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9594
9595 2011-07-25  Andreas Schwab  <schwab@redhat.com>
9596
9597         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
9598         __n bigger than INT_MAX+1.
9599         (__strncmp_g): Likewise.
9600
9601 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
9602
9603         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
9604         * libio/stido.h: Likewise.
9605
9606         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
9607         (AF_NFC): Define.
9608         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
9609         (AF_NFC): Define.
9610
9611         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
9612         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9613         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9614         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9615         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9616
9617         [BZ #13021]
9618         * scripts/test-installation.pl: Don't expect libnss_test1 to be
9619         installed.
9620
9621         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
9622         typo.
9623         (_dl_x86_64_save_sse): Likewise.
9624
9625 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
9626
9627         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
9628         OSXSAVE.
9629         (_dl_x86_64_save_sse): Likewise.
9630
9631         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
9632
9633         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
9634
9635 2011-07-21  Andreas Schwab  <schwab@redhat.com>
9636
9637         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
9638         change.
9639         (_dl_x86_64_save_sse): Use correct AVX check.
9640
9641 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9642
9643         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
9644         bug in strncpy/strncat.
9645         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
9646
9647 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
9648
9649         * string/tester.c (test_strcat): Add tests for different alignments
9650         of source and destination.
9651         (test_strncat): Likewise.
9652
9653 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9654
9655         [BZ #12852]
9656         * posix/glob.c (glob): Check passed in values before using them in
9657         expressions to avoid some overflows.
9658         (glob_in_dir): Likewise.
9659
9660         [BZ #13007]
9661         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
9662         check for AVX enablement so that we don't crash with old kernels and
9663         new hardware.
9664         * elf/tst-audit4.c: Add same checks here.
9665         * elf/tst-audit6.c: Likewise.
9666
9667         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
9668
9669 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
9670
9671         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
9672
9673 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9674
9675         * po/cs.po: Update from translation team.
9676         * po/bg.po: Likewise.
9677
9678 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
9679
9680         * misc/sys/cdefs.h: Add support for const attribute.
9681         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
9682         to gnu_dev_{major,minor,makedev} functions.
9683
9684 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
9685
9686         * intl/dcigettext.c (get_output_charset): Add missing bracket.
9687
9688 2011-07-20  Andreas Schwab  <schwab@redhat.com>
9689
9690         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
9691         strlen results.
9692
9693 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9694
9695         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
9696         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
9697         register in order to avoid conflicts with the soft frame pointer
9698         being held in r11 when necessary.
9699         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
9700         (INTERNAL_VSYSCALL_NCS): Likewise.
9701
9702 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
9703
9704         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
9705         * elf/dl-fini.c (_dl_fini): Adjust caller.
9706         * elf/dl-close.c (_dl_close_worker): Likewise.
9707         * sysdeps/generic/ldsodefs.h: Adjust declaration.
9708
9709 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
9710
9711         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
9712         "aux_cache->nlibs < 0".
9713
9714         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
9715         in the reload-count case.
9716
9717 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9718
9719         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9720         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
9721         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
9722         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
9723         * sysdeps/x86_64/multiarch/strcat.S: New file.
9724         * sysdeps/x86_64/multiarch/strncat.S: New file.
9725         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
9726         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
9727         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
9728         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
9729         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
9730         (USE_AS_STRCAT): Define.
9731         Add strcat and strncat support.
9732         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9733         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
9734         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
9735         * string/strncat.c: Update.
9736         (USE_AS_STRNCAT): Define.
9737         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9738         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
9739         and i7.
9740         * sysdeps/x86_64/multiarch/init-arch.h
9741         (bit_Prefer_PMINUB_for_stringop): New.
9742         (index_Prefer_PMINUB_for_stringop): Likewise.
9743         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
9744         bit_Prefer_PMINUB_for_stringop.
9745
9746 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
9747
9748         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
9749         buffer64.
9750         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
9751         of casting of buffer.
9752         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
9753         buffer32 and buffer64.
9754         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
9755         writes instead of casting of buffer.
9756         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
9757         buffer32.
9758         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
9759         casting of buffer.
9760
9761 2011-07-19  Andreas Schwab  <schwab@redhat.com>
9762
9763         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
9764
9765 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
9766
9767         * nscd/nscd.c (termination_handler): Don't do anything for a database
9768         if it has not yet been initialized.
9769
9770 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
9771
9772         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
9773
9774 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
9775
9776         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
9777
9778 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
9779
9780         * po/nl.po: Update from translation team.
9781         * po/sv.po: Likewise.
9782
9783 2011-07-16  Roland McGrath  <roland@hack.frob.com>
9784
9785         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
9786         now disallowed by GCC.
9787
9788         * configure.in (use-default-link): Default to yes if a test -shared
9789         link meets our qualifications.
9790         * configure: Regenerated.
9791
9792         * config.make.in (output-format): New variable.
9793         * configure.in: Check for ld --print-output-format support.
9794         * configure: Regenerated.
9795         * Makerules ($(common-objpfx)format.lds)
9796         [$(output-format) != unknown]: Just use $(output-format),
9797         instead of the linker-script munging.
9798
9799 2011-07-14  Roland McGrath  <roland@hack.frob.com>
9800
9801         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
9802         of $(common-objpfx)shlib.lds.
9803         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
9804
9805         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
9806         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
9807
9808         * configure.in (-z relro check): Adjust test code to add a large
9809         writable data section after it.
9810         * configure: Regenerated.
9811
9812 2011-07-11  Roland McGrath  <roland@hack.frob.com>
9813
9814         * configure.in (-z relro check): Fix test code to make the variable
9815         truly const.
9816         * configure: Regenerated.
9817
9818 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
9819
9820         * nscd/nscd.h (struct traced_file): Define.
9821         (struct database_dyn): Remove inotify_descr, reset_res, and filename
9822         elements.  Add traced_files.
9823         (inotify_fd): Declare.
9824         (register_traced_file): Declare.
9825         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
9826         (inotify_fd): Export.
9827         (resolv_conf_descr): Remove.
9828         (nscd_init): Move inotify descriptor creation to main.
9829         Don't register files for notification here.
9830         (register_traced_file): New function.
9831         (invalidate_cache): Don't use reset_res to determine whether to call
9832         res_init, go through the list of registered files.
9833         (main_loop_poll): The inotify descriptors are now stored in the
9834         structures for the traced files.
9835         (main_loop_epoll): Likewise
9836         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
9837         to __nss_disable_nscd.
9838         * nscd/cache.c (prune_cache): There is no single inotify descriptor
9839         for a database anymore.  Check the records for all the registered
9840         files instead.
9841         * nss/Makefile (libnss_files-routines): Add files-init.
9842         (libnss_db-routines): Add db-init.
9843         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
9844         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
9845         * nss/nss_db/db-init.c: New file.
9846         * nss/nss_files/files-init.c: New file.
9847         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
9848         __nss_lookup_function.
9849         (__nss_lookup_function): Call nss_load_library.
9850         (nss_load_all_libraries): New function.
9851         (__nss_disable_nscd): Take parameter with callback function for files
9852         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
9853         used for the cached services.
9854         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
9855         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
9856         options for features to all the files in nscd.
9857
9858         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
9859
9860 2011-07-10  Roland McGrath  <roland@hack.frob.com>
9861
9862         * csu/elf-init.c (__libc_csu_init): Comment typo.
9863
9864 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
9865
9866         * po/pl.po: Update from translation team.
9867         * po/ja.po: Likewise.
9868         * po/ru.po: Likewise.
9869         * po/ko.po: Likewise.
9870         * po/fr.po: Likewise.
9871
9872 2011-07-09  Roland McGrath  <roland@hack.frob.com>
9873
9874         * configure.in (.ctors/.dtors header and trailer check):
9875         Use an empirical test on a built program.
9876         * configure: Regenerated.
9877
9878         * configure.in (-z relro check): Use an empirical test on a built DSO.
9879         Detect, but do not require, on ia64.
9880         * configure: Regenerated.
9881
9882         * configure.in (READELF): Find it with AC_CHECK_TOOL.
9883         Update tests that use readelf to use $READELF instead.
9884         * configure: Regenerated.
9885
9886 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
9887
9888         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
9889         if the result is not used.
9890
9891 2011-07-05  Andreas Jaeger  <aj@suse.de>
9892
9893         [BZ#9696]
9894         * stdlib/tst-strtod.c: Add testcase.
9895
9896 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9897
9898         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
9899         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
9900         The latter has a higher limit.  Take additional parameter to pass to
9901         the new function.
9902         (__pathconf): Pass file to __statfs_link_max.
9903         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
9904         __statfs_link_max.
9905         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
9906         __statfs_link_max.
9907
9908         [BZ #12868]
9909         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
9910         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9911         Handle Lustre.
9912         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
9913         (__statfs_filesize_max): Likewise.
9914         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
9915
9916 2011-07-05  Andreas Jaeger  <aj@suse.de>
9917
9918         * resolv/res_comp.c (dn_skipname): Remove unused variable.
9919
9920 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
9921
9922         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
9923         `status' variable.
9924         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
9925         Likewise.
9926
9927 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
9928
9929         * Makefile (strop-tests): Add strncat.
9930         * string/test-strncat.c: New file.
9931
9932 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
9933
9934         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
9935
9936 2011-06-21  Andreas Jaeger  <aj@suse.de>
9937
9938         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
9939         Copy rule from iconvdata/Makefile.
9940
9941 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9942
9943         [BZ #12922]
9944         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
9945         but no long options are defined, just return 'W'.
9946
9947 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
9948
9949         [BZ #9696]
9950         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
9951
9952 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9953
9954         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
9955         netgroups to read.
9956         (innetgr): Likewise.
9957
9958 2011-07-05  Roland McGrath  <roland@hack.frob.com>
9959
9960         * config.make.in (install_root): Default to $(DESTDIR).
9961
9962 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
9963
9964         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
9965
9966 2011-07-02  Roland McGrath  <roland@hack.frob.com>
9967
9968         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
9969
9970         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
9971         containing directory rather than embedding absolute directory names.
9972
9973         * scripts/check-local-headers.sh: Rewritten using awk.
9974         Match by word, not by line.  Print error messages for matches.
9975         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
9976
9977         * Makerules [shlib-lds-flags empty]:
9978         ($(common-objpfx)libc_pic.opts): New target.
9979         ($(common-objpfx)libc_pic.os.clean): New target.
9980         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
9981
9982         * config.make.in (OBJCOPY): New variable.
9983         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
9984         * configure: Regenerated.
9985
9986         * config.make.in (use-default-link): New variable.
9987         * configure.in (use_default_link): Grok --with-default-link to set it.
9988         * configure: Regenerated.
9989         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
9990         (shlib-lds, shlib-lds-flags): Define to empty.
9991
9992         * Makerules (shlib-lds): New variable.
9993         (shlib-lds-flags): New variable.
9994         (build-shlib, build-moduile, build-module-asneeded): Use it.
9995         ($(common-objpfx)libc.so): Use $(shlib-lds).
9996         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
9997         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
9998
9999         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
10000         DT_FLAGS/DT_FLAGS_1 with zero flags.
10001
10002         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
10003         linker script munging.
10004
10005 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
10006
10007         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
10008         as 128-bit value.
10009         * crypt/sha512.c (sha512_process_block): Perform total addition using
10010         128-bit if possible.
10011         (__sha512_finish_ctx): Likewise.
10012         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
10013         as 64-bit value.
10014         * crypt/sha256.c (SWAP64): Define.
10015         (sha256_process_block): Perform total addition using 64-bit if
10016         possible.
10017         (__sha256_finish_ctx): Likewise.
10018
10019 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
10020
10021         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
10022         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10023         * nscd/hstcache.c (cache_addhst): Likewise.
10024         * nscd/grpcache.c (cache_addgr): Likewise.
10025         * nscd/aicache.c (addhstaiX): Likewise
10026         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
10027
10028 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
10029
10030         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
10031         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10032         * nscd/hstcache.c (cache_addhst): Likewise.
10033         * nscd/grpcache.c (cache_addgr): Likewise.
10034         * nscd/aicache.c (addhstaiX): Likewise
10035
10036 2011-07-01  Andreas Schwab  <schwab@redhat.com>
10037
10038         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
10039         domain only when needed.
10040
10041 2011-06-30  Andreas Schwab  <schwab@redhat.com>
10042
10043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
10044         is always restored.
10045
10046 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
10047
10048         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
10049         are re-adding the entry.
10050         * nscd/servicescache.c (cache_addserv): Likewise.
10051
10052 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
10053
10054         * sysdeps/generic/dl-irel.h: fix protection against multiple
10055         inclusions.
10056         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
10057
10058 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
10059
10060         [BZ #12935]
10061         * malloc/memusage.sh: Fix quoting in message.
10062         * debug/xtrace.sh: Likewise.
10063
10064         * configure.in: Remove support for --experimental-malloc option, make
10065         it the default.
10066         * config.make.in: Likewise.
10067         * malloc/Makefile: Likewise.
10068
10069 2011-06-27  Andreas Schwab  <schwab@redhat.com>
10070
10071         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
10072         two-byte characters.
10073
10074 2011-06-27  Roland McGrath  <roland@hack.frob.com>
10075
10076         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
10077         AC_CACHE_CHECK invocation.
10078         * configure: Regenerated.
10079
10080         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
10081
10082 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
10083
10084         [BZ #12350]
10085         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
10086         bit from old_res_options.
10087
10088         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
10089
10090         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
10091         value type for setfct.
10092
10093 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10094
10095         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10096         __gettimeofday instead of gettimeofday.
10097
10098 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
10099
10100         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
10101
10102 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10103
10104         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
10105
10106         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
10107         info.
10108
10109 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10110
10111         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10112         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10113         strcpy-sse2-unaligned strncpy-sse2-unaligned
10114         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
10115         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
10116         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
10117         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
10118         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
10119         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
10120         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
10121         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
10122         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
10123         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
10124         (STRCPY): Support SSE2 and SSSE3 versions.
10125
10126 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
10127
10128         [BZ #12874]
10129         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
10130         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
10131         kernels which artificially limit size of requests.
10132
10133 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10134
10135         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10136         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10137         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
10138         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
10139         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
10140         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
10141         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
10142         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
10143         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
10144         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
10145         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
10146         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
10147         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
10148         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
10149         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
10150         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10151         Enable unaligned load optimization for Intel Core i3, i5 and i7
10152         processors.
10153         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
10154         Define.
10155         (index_Fast_Unaligned_Load): Define.
10156         (HAS_FAST_UNALIGNED_LOAD): Define.
10157
10158 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
10159
10160         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
10161
10162 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10163
10164         [BZ #12907]
10165         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
10166         until it is clear that the information is realy needed.
10167         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
10168
10169 2011-06-22  Andreas Schwab  <schwab@redhat.com>
10170
10171         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
10172
10173 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10174
10175         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10176         /sys/devices/system/cpu/online if it is usable.
10177
10178         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
10179         reading the information from the /proc filesystem to once a second.
10180
10181 2011-06-21  Andreas Jaeger  <aj@suse.de>
10182
10183         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
10184         NULL after inclusion of kernel headers.
10185
10186 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
10187
10188         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
10189         calls to internal_setent.
10190
10191         [BZ #12885]
10192         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
10193         addresses using gethostbyname4_r ignore IPv4 addresses.
10194
10195         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
10196         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
10197
10198         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
10199
10200 2011-06-20  David S. Miller  <davem@davemloft.net>
10201
10202         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
10203         inclusions.
10204         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
10205
10206         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
10207         (elf_irel): Use it.
10208         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
10209         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
10210         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
10211         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
10212         * sysdeps/x86_64/dl-irel.h: Likewise.
10213
10214         * elf/dl-runtime.c: Use elf_ifunc_invoke.
10215         * elf/dl-sym.c: Likewise.
10216
10217 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10218
10219         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
10220         need to dereference resplen2.
10221
10222 2011-06-14  Andreas Schwab  <schwab@redhat.com>
10223
10224         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
10225
10226 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10227
10228         * Makeconfig: Define vardbdir and inst_vardbdir.
10229         * nss/Makefile: Add rules to install db-Makefile.
10230
10231         * nss/nss_db/db-XXX.c: Cleanup.
10232
10233         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
10234         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
10235         GLIBC_PRIVATE.
10236         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
10237         * nss/makedb.c: Implement -g option to specify that value strings
10238         are generated and should not be added to table iterated over for
10239         get*ent calls.
10240         * nss/nss_db/db-initgroups.c: New file.
10241
10242         * nss/getent.c: Add support for initgroups lookups through getgrouplist
10243         interface.
10244
10245         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
10246         (internal_getgrouplist): Adjust to name change.
10247         Update use_initgroups_entry if this is not the first call.
10248         * nss/databases.def: Add initgroups entry.
10249
10250         * nss/makedb.c (compute_tables): Check result of multiple hash table
10251         sizes to minimize maximum chain length.
10252
10253 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
10254
10255         * Versions.def: Add entry for libnss_db.
10256         * shlib-versions: Likewise.
10257         * nss/Makefile: Add rules to build libnss_db.
10258         * nss/Versions: Add libnss_db information.  Organize libnss_files
10259         entries better.
10260         * nss/db-Makefile: Add gshadow support.  Change rules for the new
10261         makedb progra.  Some minor improvements to generate smaller files.
10262         * nss/nss_db/nss_db.h: Move NSS database header data structures to
10263         here from...
10264         * nss/makedb.c: ...here.
10265         Improve database format to be smaller and require less memory at
10266         runtime.
10267         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
10268         db anymore.
10269         * nss/nss_db/db-netgrp.c: Likewise.
10270         * nss/nss_db/db-open.c: Likewise.
10271         * nss/nss_files/flies-XXX.x: Adjust comments.
10272         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
10273         * nss/nss_files/files-grp.c: Likewise.
10274         * nss/nss_files/files-hosts.c: Likewise.
10275         * nss/nss_files/files-network.c: Likewise.
10276         * nss/nss_files/files-proto.c: Likewise.
10277         * nss/nss_files/files-pwd.c: Likewise.
10278         * nss/nss_files/files-rpc.c: Likewise.
10279         * nss/nss_files/files-service.c: Likewise.
10280         * nss/nss_files/files-sgrp.c: Likewise.
10281         * nss/nss_files/files-spwd.c: Likewise.
10282         * nss/nss_db/db-alias.c: Removed.
10283         * nss/nss_db/dummy-db.h: Removed.
10284
10285 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
10286
10287         * nss/makedb.c: Rewritten to not use database library.
10288         * nss/Makefile: Update to build new makedb program.
10289
10290 2011-06-14  Andreas Jaeger  <aj@suse.de>
10291
10292         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
10293         memset declaration.
10294
10295 2011-06-10  Andreas Schwab  <schwab@redhat.com>
10296
10297         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
10298         tmpbuf.
10299
10300 2011-06-10  Roland McGrath  <roland@hack.frob.com>
10301
10302         * Makerules (shlib.lds): Fail if the linker script comes out empty.
10303         * elf/Makefile ($(objpfx)ld.so): Likewise.
10304
10305         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
10306         Don't list ld.so twice in dependencies.
10307
10308         * posix/bug-regex31.c: Include <stdlib.h>.
10309
10310         * nscd/hstcache.c (cache_addhst): Remove unused variable.
10311
10312         * nis/nss_compat/compat-spwd.c
10313         (getspent_next_nss_netgr): Remove unused variable.
10314         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
10315
10316         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
10317         nonmembers" output to use the right array.
10318
10319         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
10320
10321         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
10322
10323         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
10324         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
10325         * catgets/gencat.c (read_input_file): Likewise.
10326         * locale/programs/locarchive.c (enlarge_archive): Likewise.
10327
10328         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
10329         variable definition inside #if's controlling its use.
10330
10331         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
10332
10333         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
10334
10335         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
10336
10337         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
10338         unreachable code.
10339
10340         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
10341
10342         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
10343         * configure: Regenerated.
10344
10345         * Makerules: Revert last change.
10346         * elf/Makefile: Likewise.
10347
10348 2011-06-09  Roland McGrath  <roland@hack.frob.com>
10349
10350         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
10351         * elf/Makefile ($(objpfx)librtld.os): Likewise.
10352         (reloc-link): Likewise.
10353
10354 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
10355
10356         * elf/Makefile: Add rules to build pldd.
10357         * elf/pldd.c: New file.
10358         * elf/pldd-xx.c: New file.
10359
10360 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
10361
10362         * version.h: Update for 2.15 development version.
10363
10364 2011-06-07  David S. Miller  <davem@davemloft.net>
10365
10366         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
10367         ifuncs.
10368         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
10369         elf_machine_lazy_rel): Likewise.
10370         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
10371         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
10372         elf_machine_lazy_rel): Likewise.
10373         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
10374         dl_hwcap via passed in argument.
10375         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
10376         Likewise.
10377
10378 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10379
10380         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
10381
10382 2011-06-06  Roland McGrath  <roland@hack.frob.com>
10383
10384         [BZ #12849]
10385         * manual/fdl-1.1.texi: New file, verbatim from:
10386         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
10387         * manual/lgpl-2.1.texi: New file, verbatim from:
10388         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
10389         * manual/Makefile (licenses): New variable, list those new file names.
10390         (texis): Use it.
10391         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
10392
10393         * manual/fdl.texi: File removed.
10394         * manual/lesser.texi: File removed.
10395         * manual/libc.texinfo (Copying, Documentation License):
10396         Use new @include file names, put @appendix directive before @include.
10397
10398 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10399
10400         [BZ #12841]
10401         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
10402         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
10403         (mq_open): Add __NTH.
10404
10405 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10406
10407         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10408         Assume Intel Core i3/i5/i7 processor if AVX is available.
10409
10410 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10411
10412         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10413         typo.
10414
10415 2011-05-31  Andreas Schwab  <schwab@redhat.com>
10416
10417         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
10418         memory.  Use alloca_account.  Fix memory leak when retrying.
10419
10420 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10421
10422         * version.h (RELEASE): Bump for 2.14 release.
10423         * include/features.h (__GLIBC_MINOR__): Bump to 14.
10424
10425         * config.make.in (RANLIB): Remove entry.
10426
10427 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
10428
10429         * po/Makefile (po-sed-cmd): Add ksh to extensions.
10430         (libc.pot): Work around missing support for .ksh extension in xgettext.
10431
10432         [BZ #12684]
10433         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
10434         if both request failed.
10435         (send_dg): In case of server errors clear resplen or *resplen2.
10436
10437         [BZ #12454]
10438         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
10439         when there are multiple maps.
10440         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
10441         (_dl_fini): Remove test here.
10442
10443         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
10444
10445 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
10446
10447         [BZ #12350]
10448         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
10449         bit from old_res_options.
10450         (gaih_inet): Likewise.
10451
10452         [BZ #11099]
10453         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
10454         as signed.
10455
10456         * resolv/res_init.c (res_setoptions): Make the code more compact.
10457
10458         [BZ #11558]
10459         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
10460         set RES_USEVC.
10461
10462         [BZ #11634]
10463         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
10464
10465         * malloc/malloc.h: Mark malloc hook variables as deprecated.
10466
10467         [BZ #11781]
10468         * malloc/malloc.h: Declare malloc hook variables as volatile.
10469
10470         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
10471         in last patch.
10472
10473         [BZ #11799]
10474         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
10475         raise in the comment.
10476         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10477         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10478         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10479
10480 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
10481
10482         [BZ #12811]
10483         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
10484         grow the buffers more if it already has to be sufficient.
10485         (build_wcs_upper_buffer): Likewise.
10486         * posix/regexec.c (check_matching): Likewise.
10487         (clean_state_log_if_needed): Likewise.
10488         (extend_buffers): Don't enlarge buffers beyond size of the input
10489         buffer.
10490         Patches mostly by Emil Wojak <emil@wojak.eu>.
10491         * posix/bug-regex32.c: New file.
10492         * posix/Makefile (tests): Add bug-regex32.
10493
10494         * locale/findlocale.c (_nl_find_locale): Return right away if
10495         _nl_explode_name failed.
10496         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10497
10498         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
10499
10500         * debug/xtrace.sh: Unify messages.
10501         * malloc/memusage.sh: Likewise.
10502
10503         [BZ #12813]
10504         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
10505         time symbol from vDSO.  Substitute with vsyscall if not available.
10506         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
10507         __vdso_time.
10508
10509         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
10510         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
10511         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
10512         Add sendmmsg and internal_sendmmsg.
10513         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
10514         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
10515         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
10516
10517         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
10518         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
10519         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
10520
10521 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
10522
10523         [BZ #12813]
10524         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
10525         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
10526         available.
10527         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
10528         __vdso_getcpu.
10529
10530         [BZ #12814]
10531         * iconvdata/Makefile (tests): Add bug-iconv9.
10532         * iconvdata/bug-iconv9.c: New file.
10533
10534 2011-05-27  Andreas Schwab  <schwab@redhat.com>
10535
10536         [BZ #12814]
10537         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
10538
10539 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
10540
10541         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10542         (struct user_regs_struct): Change intcs field back to cs.
10543
10544 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
10545
10546         * po/ja.po: Update from translation team.
10547
10548 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
10549
10550         [BZ #12795]
10551         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
10552         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
10553
10554 2011-05-20  Andreas Schwab  <schwab@redhat.com>
10555
10556         * stdlib/longlong.h: Update from GCC.
10557
10558 2011-05-23  Andreas Schwab  <schwab@redhat.com>
10559
10560         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
10561         parameter name.
10562         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
10563         Add parameter name.
10564         (__sysconf): Pass it down.
10565
10566 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
10567
10568         [BZ #12671]
10569         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
10570         some situations.
10571         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10572         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
10573         add in in __libc_use_alloca calls.  Adjust callers.
10574         (glob): Use malloc in some situations.
10575
10576         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
10577         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
10578         pltexit.
10579
10580 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
10581
10582         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
10583         and CLOCK_BOOTTIME_ALARM.
10584
10585         [BZ #12782]
10586         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
10587         is returned.
10588
10589         * string/_strerror.c (__strerror_r): Print negative errors as signed
10590         numbers.
10591
10592         [BZ #12777]
10593         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
10594         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
10595         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
10596
10597         * configure.in: Fix typo in redirection and correct removal of test
10598         files in two cases.
10599
10600         [BZ #12788]
10601         * locale/setlocale.c (new_composite_name): Fix test to check for
10602         identical name of all categories.
10603
10604         [BZ #12792]
10605         * libio/filedoalloc.c (local_isatty): New function.
10606         (_IO_file_doallocate): Use local_isatty.
10607         * stdio-common/perror.c (perror): In case a new stream is used
10608         forward the stream error.
10609         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
10610         error flag.
10611
10612 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
10613
10614         [BZ #11869]
10615         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
10616         alloca.
10617         * include/alloca.h (extend_alloca_account): Define.
10618
10619         [BZ #11857]
10620         * posix/regex.h: Fix comments with documentation of user-accessible
10621         fields after compilation and describe correct free'ing of pattern
10622         after re_compile_pattern.
10623         Patch by Reuben Thomas <rrt@sc3d.org>.
10624
10625 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
10626
10627         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
10628         and -mno-altivec to prevent the compiler from using Altivec and/or
10629         VSX instructions when the corresponding registers are not available.
10630
10631 2011-05-19  Andreas Schwab  <schwab@redhat.com>
10632
10633         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
10634
10635 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
10636
10637         * libio/freopen.c (freopen): Use __dup2, not dup2.
10638         * libio/freopen64.c (freopen64): Likewise.
10639
10640 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
10641
10642         [BZ #12775]
10643         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
10644         * math/Makefile (tests): Add test-powl.
10645         (CFLAGS-test-powl.c): Define.
10646         * math/test-powl.c: New file.
10647
10648 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10649
10650         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
10651
10652 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
10653
10654         [BZ #11837]
10655         * iconvdata/gb18030.c: Update to GB18020-2005.
10656
10657 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
10658
10659         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
10660         RE_SYNTAX_POSIX_AWK): Update to match recent development.
10661         Patch by Aharon Robbins <arnold@skeeve.com>.
10662
10663         [BZ #11892]
10664         * stdlib/putenv.c (putenv): Don't always create copy of the variable
10665         on the stack.
10666
10667         [BZ #11895]
10668         * misc/pselect.c (__pselect): Handle timeout value errors hidden
10669         through underflows.
10670
10671         [BZ #12766]
10672         * misc/error.c (error_at_line): Ensure file_name and old_file_name
10673         point to strings before performing equality test for error_one_per_line
10674         mode.
10675
10676         [BZ #11697]
10677         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
10678
10679         [BZ #11820]
10680         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10681         (struct user_fpregs_struct): Avoid __uint*_t types.
10682
10683         [BZ #6420]
10684         * malloc/mtrace.c (tr_where): Add additional parameter to point to
10685         symbol info.  Use it instead of calling _dl_addr locally.
10686         (lock_and_info): New function.
10687         (tr_freehook): Call lock_and_info and pass symbol info as additional
10688         parameter to tr_where.
10689         (tr_mallochook): Likewise.
10690         (tr_reallochook): Likewise.
10691         (tr_memalignhook): Likewise.
10692
10693         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
10694         used and couldn't be at all thread-safe.
10695
10696 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
10697
10698         * libio/freopen.c (freopen): Don't close old file descriptor
10699         before the new one is opened.  Instead dup the new file descriptor
10700         to the old one after the new stream is created.
10701         * libio/freopen64.c (freopen64): Likewise.
10702         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
10703         * libio/fileops.c (_IO_new_file_close_it): Handle new
10704         _IO_FLAGS2_NOCLOSE flag.
10705         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
10706         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
10707         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
10708         _IO_FLAGS2_NOCLOSE flag.
10709         * include/unistd.h: Add hidden_proto for dup3.
10710         Define __have_dup3.
10711         * io/dup3.c: Define hidden symbol.
10712         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
10713
10714         [BZ #7101]
10715         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
10716         when an incomplete long option is used.
10717         * posix/tst-getopt_long1.c: New file.
10718         * posix/Makefile (tests): Add tst-getopt_long1.
10719
10720         [BZ #10138]
10721         * scripts/config.guess: Update from autoconf-2.68.
10722         * scripts/config.sub: Likewise.
10723
10724         [BZ #10157]
10725         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
10726         tests into ...
10727         (has_cpuclock): ...this.  New function.
10728         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
10729         macro here based on has_cpuclock code.
10730
10731         [BZ #10149]
10732         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10733         First byte (not low byte) is now always NUL.
10734         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
10735
10736         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10737         Use non-cancelable interfaces.
10738
10739         [BZ #9809]
10740         * locale/iso-639.def: Add entry for Sorani.
10741
10742         [BZ #11901]
10743         * include/stdlib.h: Move include protection to the right place.
10744         Define abort_msg_s.  Declare __abort_msg with it.
10745         * stdlib/abort.c (__abort_msg): Adjust type.
10746         * assert/assert.c (__assert_fail_base): New function.  Majority
10747         of code from __assert_fail.  Allocate memory for __abort_msg with
10748         mmap.
10749         (__assert_fail): Now call __assert_fail_base.
10750         * assert/assert-perr.c: Remove bulk of implementation.  Use
10751         __assert_fail_base.
10752         * include/assert.hL Declare __assert_fail_base.
10753         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
10754         mmap.
10755         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
10756
10757 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
10758
10759         [BZ #11952]
10760         [BZ #12453]
10761         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
10762         until all modules are registered in the DTV.
10763         * elf/Makefile: Add rules to build and run tst-tls19.
10764         * elf/tst-tls19.c: New file.
10765         * elf/tst-tls19mod1.c: New file.
10766         * elf/tst-tls19mod2.c: New file.
10767         * elf/tst-tls19mod3.c: New file.
10768         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
10769
10770         [BZ #12083]
10771         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
10772         correctly.
10773
10774         [BZ #12601]
10775         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
10776         two-byte sequence errors.
10777         * iconvdata/Makefile (tests): Add bug-iconv8.
10778         * iconvdata/bug-iconv8.c: New file.
10779
10780         [BZ #12626]
10781         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
10782         buf2 definition.
10783
10784         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
10785
10786         [BZ #12432]
10787         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
10788         (dummy_getcfa): New function.
10789         (init): Get _Unwind_GetCFA address, use dummy if not found.
10790         (backtrace_helper): In recursion check, also check whether CFA changes.
10791         (__backtrace): Completely initialize arg.
10792
10793         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
10794         storing incomplete byte sequence in state object.  Avoid testing for
10795         guaranteed too small input if we know there is enough data available.
10796
10797 2011-05-11  Andreas Schwab  <schwab@redhat.com>
10798
10799         * Makeconfig (+link-pie): Indent.
10800         * Rules (binaries-pie): Define if $(have-fpie) and
10801         $(build-shared).
10802         (binaries-shared): Also filter out $(binaries-pie).
10803         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
10804         * nscd/Makefile (others-pie): Add nscd.
10805         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
10806         ($(objpfx)nscd): Remove command override.
10807         * login/Makefile (others-pie): Add pt_chown.
10808         ($(objpfx)pt_chown): Remove command override.
10809         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
10810         remove command overrides.
10811
10812 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
10813
10814         * libio/tst_putwc.c: Fix error messages.
10815
10816         [BZ #12724]
10817         * libio/fileops.c (_IO_new_file_close_it): Always flush when
10818         currently writing and seek to current position when not.
10819         * libio/Makefile (tests): Add bug-fclose1.
10820         * libio/bug-fclose1.c: New file.
10821
10822 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
10823
10824         [BZ #12511]
10825         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
10826         don't set DF_1_NODELETE here.
10827         (do_lookup_x): When entering new entry test for copy relocation
10828         and if necessary set DF_1_NODELETE flag.
10829         * elf/tst-unique4.cc: New file.
10830         * elf/tst-unique4.h: New file.
10831         * elf/tst-unique4lib.cc: New file.
10832         * elf/Makefile: Add rules to build and run tst-unique4.
10833         Patch by Piotr Bury <pbury@goahead.com>.
10834
10835 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10836
10837         [BZ #12052]
10838         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
10839
10840         [BZ #12625]
10841         * misc/mntent_r.c (addmntent): Flush the stream after the output
10842
10843         [BZ #12393]
10844         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
10845         (is_trusted_path_normalize): Skip initial colon.  Append slash
10846         to empty buffer.  Duplicate is_trusted_path code but allow
10847         constructed patch to be prefix.
10848         (is_dst): Allow $ORIGIN followed by /.
10849         (_dl_dst_substitute): Correct clearing of check_for_trusted.
10850         Correct testing of result of is_trusted_path_normalize
10851         (decompose_rpath): Fix warning.
10852
10853 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
10854
10855         [BZ #11257]
10856         * grp/initgroups.c (internal_getgrouplist): When we found the service
10857         list through the initgroups entry in nsswitch.conf do not always
10858         continue on a successful lookup.  Don't always use the
10859         __nss_group_database value if it is set.
10860         * nss/nsswitch.conf (initgroups): Change action for successful db
10861         lookup to continue for compatibility.
10862
10863 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
10864
10865         [BZ #11532]
10866         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
10867         and CP774 modules.
10868         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
10869         and CP774 modules.
10870         * iconvdata/tst-tables.sh: Likewise.
10871         * iconvdata/cp770.c: New file.
10872         * iconvdata/cp771.c: New file.
10873         * iconvdata/cp772.c: New file.
10874         * iconvdata/cp773.c: New file.
10875         * iconvdata/cp774.c: New file.
10876         * iconvdata/testdata/CP770: New file.
10877         * iconvdata/testdata/CP770..UTF8: New file.
10878         * iconvdata/testdata/CP771: New file.
10879         * iconvdata/testdata/CP771..UTF8: New file.
10880         * iconvdata/testdata/CP772: New file.
10881         * iconvdata/testdata/CP772..UTF8: New file.
10882         * iconvdata/testdata/CP773: New file.
10883         * iconvdata/testdata/CP773..UTF8: New file.
10884         * iconvdata/testdata/CP774: New file.
10885         * iconvdata/testdata/CP774..UTF8: New file.
10886
10887         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
10888         END CHARMAP line.
10889         * iconvdata/gen-8bit-gap.sh: Likewise.
10890         * iconvdata/gen-8bit.sh: Likewise.
10891
10892         * locale/iso-639.def: Add ary entry.
10893
10894         [BZ #11258]
10895         * locale/C-translit.h.in: Add U20A1 transliteration.
10896
10897         [BZ #12178]
10898         * locale/iso-639.def: Add wae entry.
10899         Patch by Kevin Bortis <bortis@translate-wae.ch>.
10900
10901         [BZ #12545]
10902         * locale/programs/localedef.c (construct_output_path): Use ssize_t
10903         for n.
10904
10905         [BZ #12711]
10906         * locale/C-translit.h.in: Add entry for U20B9.
10907         Patch by pravin.d.s@gmail.com.
10908
10909 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
10910
10911         [BZ #12713]
10912         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
10913         ENAMETOOLONG use generic getcwd.
10914         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
10915         in rtld.  Use *stat64.
10916         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
10917         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
10918         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
10919         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
10920         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
10921         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
10922         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
10923         __fstatat64 macros.
10924         * include/dirent.h: Add libc_hidden_proto for rewinddir.
10925         * dirent/rewinddir.c: Add libc_hidden_def.
10926         * sysdeps/mach/hurd/rewinddir.c: Likewise.
10927         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
10928
10929         * include/dirent.h (__alloc_dir): Add flags parameter.
10930         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
10931         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
10932         __alloc_dir.
10933         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
10934         from fdopendir if O_CLOEXEC is already set.
10935
10936 2011-03-15  Alan Modra  <amodra@gmail.com>
10937
10938         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
10939         l_tls_firstbyte_offset non-zero.  Save padding offset in
10940         l_tls_firstbyte_offset for later use.
10941         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
10942         freeing static tls block.
10943
10944 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
10945
10946         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
10947         where #ifdef was intended.  The intent is to prevent ARG_MAX from
10948         being defined by the kernel headers.
10949
10950 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
10951
10952         [BZ #12734]
10953         * resolv/resolv.h: Define RES_NOTLDQUERY.
10954         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
10955         no-tld-query and set RES_NOTLDQUERY.
10956         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
10957         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
10958         modern BIND to search name as TLD unless forbidden.
10959
10960 2011-05-07  Petr Baudis  <pasky@suse.cz>
10961             Ulrich Drepper  <drepper@gmail.com>
10962
10963         [BZ #12393]
10964         * elf/dl-load.c (fillin_rpath): Move trusted path check...
10965         (is_trusted_path): ...to here.
10966         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
10967         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
10968         using is_trusted_path_normalize() in setuid scripts.
10969
10970 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10971
10972         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
10973         __BEGIN/__END_DECLS.
10974
10975 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
10976
10977         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
10978         NSS_STATUS_NOTFOUND if no record was found.
10979
10980 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10981
10982         * sunrpc/Makefile (headers): Add rpc/netdb.h.
10983         (headers-not-in-tirpc): Remove rpc/netdb.h
10984         * resolv/netdb.h: Revert last change.
10985
10986 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10987
10988         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
10989         circular dependency between libgcc.a and libc.a.
10990
10991 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10992
10993         * resolv/netdb.h: Don't include <rpc/netdb.h>.
10994         * nis/Makefile: Don't install rpcsvc/*.
10995         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
10996         instead of <rpc/types.h>.
10997         (MAXHOSTNAMELEN): Define.
10998
10999 2011-05-03  Andreas Schwab  <schwab@redhat.com>
11000
11001         * elf/ldconfig.c (add_dir): Don't crash on empty path.
11002
11003 2011-04-28  Maciej Babinski  <mbabinski@google.com>
11004
11005         [BZ #12714]
11006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
11007         gethostbyname4_r when IPv6 results are possible.
11008
11009 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
11010
11011         [BZ #12723]
11012         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
11013         _PC_PIPE_BUF handling.
11014
11015 2011-04-30  Bruno Haible  <bruno@clisp.org>
11016
11017         [BZ #12717]
11018         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
11019         * resolv/netdb.h (getnameinfo): Change type of flags parameter
11020         to 'int'.
11021         * inet/getnameinfo.c (getnameinfo): Likewise.
11022
11023 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
11024
11025         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
11026         to groups setting in database lookup.
11027         * nss/nsswitch.conf: Add initgroups entry.
11028
11029 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
11030
11031         [BZ #12685]
11032         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
11033         mode string.
11034         Patch by Eric Blake <eblake@redhat.com>.
11035
11036 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11037
11038         * sunrpc/Makefile (need-export-routines): Add svc_run.
11039         (routines): Remove svc_run.
11040         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
11041         * sunrpc/clnt_perr.c (clnt_perrno): Export.
11042         * sunrpc/svc_run.c (svc_run): Likewise.
11043         * sunrpc/svc_udp.c (svcudp_create): Likewise.
11044
11045 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
11046
11047         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
11048         problem in reallocation in last patch.
11049
11050 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
11051
11052         * sunrpc/Makefile: Move inclusion of Rules.
11053
11054 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11055
11056         * nss/nss_files/files-initgroups.c: New file.
11057         * nss/Makefile (libnss_files-routines): Add files-initgroups.
11058         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
11059         _nss_files_initgroups_dyn.
11060
11061 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
11062
11063         * elf/elf.h (R_ARM_IRELATIVE): Define.
11064
11065 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11066
11067         * po/ru.po: Update from translation team.
11068
11069 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11070
11071         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
11072         dependencies.
11073
11074 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
11075
11076         [BZ #12653]
11077         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
11078         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
11079         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11080         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11081         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11082
11083 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
11084
11085         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
11086         differing bytes.
11087         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11088         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11089         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11090
11091 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11092
11093         [BZ #12420]
11094         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
11095         storing it.
11096         * stdlib/bug-getcontext.c: New file.
11097         * stdlib/Makefile: Add rules to build and run bug-getcontext.
11098
11099 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11100
11101         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
11102         instructions into .machine "z9-109".
11103         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
11104         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
11105
11106 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11107
11108         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
11109         between environment variables and auxiliary vector.
11110
11111 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
11112
11113         * Makefile: Add rules to build linkobj/libc.so.
11114         * include/libc-symbols.h: Define libc_hidden_nolink.
11115         * include/rpc/auth.h: Mark functions which are to be hidden.
11116         * include/rpc/auth_des.h: Likewise.
11117         * include/rpc/auth_unix.h: Likewise.
11118         * include/rpc/clnt.h: Likewise.
11119         * include/rpc/des_crypt.h: Likewise.
11120         * include/rpc/key_prot.h: Likewise.
11121         * include/rpc/pmap_clnt.h: Likewise.
11122         * include/rpc/pmap_prot.h: Likewise.
11123         * include/rpc/pmap_rmt.h: Likewise.
11124         * include/rpc/rpc_msg.h: Likewise.
11125         * include/rpc/svc.h: Likewise.
11126         * include/rpc/svc_auth.h: Likewise.
11127         * include/rpc/xdr.h: Likewise.
11128         * nis/Makefile: Link all DSOs against linkobj/libc.so.
11129         * nss/Makefile: Likewise.
11130         * sunrpc/Makefile: Don't install headers.  Build library with normal
11131         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
11132         * sunrpc/auth_des.c: Hide exported symbols by default, export some
11133         for the compat linking library.  Remove use of INTDEF/INTUSE.
11134         * sunrpc/auth_none.c: Likewise.
11135         * sunrpc/auth_unix.c: Likewise.
11136         * sunrpc/authdes_prot.c: Likewise.
11137         * sunrpc/authuxprot.c: Likewise.
11138         * sunrpc/clnt_gen.c: Likewise.
11139         * sunrpc/clnt_perr.c: Likewise.
11140         * sunrpc/clnt_raw.c: Likewise.
11141         * sunrpc/clnt_simp.c: Likewise.
11142         * sunrpc/clnt_tcp.c: Likewise.
11143         * sunrpc/clnt_udp.c: Likewise.
11144         * sunrpc/clnt_unix.c: Likewise.
11145         * sunrpc/des_crypt.c: Likewise.
11146         * sunrpc/des_soft.c: Likewise.
11147         * sunrpc/get_myaddr.c: Likewise.
11148         * sunrpc/key_call.c: Likewise.
11149         * sunrpc/key_prot.c: Likewise.
11150         * sunrpc/netname.c: Likewise.
11151         * sunrpc/pm_getmaps.c: Likewise.
11152         * sunrpc/pm_getport.c: Likewise.
11153         * sunrpc/pmap_clnt.c: Likewise.
11154         * sunrpc/pmap_prot.c: Likewise.
11155         * sunrpc/pmap_prot2.c: Likewise.
11156         * sunrpc/pmap_rmt.c: Likewise.
11157         * sunrpc/publickey.c: Likewise.
11158         * sunrpc/rpc_cmsg.c: Likewise.
11159         * sunrpc/rpc_common.c: Likewise.
11160         * sunrpc/rpc_dtable.c: Likewise.
11161         * sunrpc/rpc_prot.c: Likewise.
11162         * sunrpc/rpc_thread.c: Likewise.
11163         * sunrpc/rtime.c: Likewise.
11164         * sunrpc/svc.c: Likewise.
11165         * sunrpc/svc_auth.c: Likewise.
11166         * sunrpc/svc_authux.c: Likewise.
11167         * sunrpc/svc_raw.c: Likewise.
11168         * sunrpc/svc_run.c: Likewise.
11169         * sunrpc/svc_simple.c: Likewise.
11170         * sunrpc/svc_tcp.c: Likewise.
11171         * sunrpc/svc_udp.c: Likewise.
11172         * sunrpc/svc_unix.c: Likewise.
11173         * sunrpc/svcauth_des.c: Likewise.
11174         * sunrpc/xcrypt.c: Likewise.
11175         * sunrpc/xdr.c: Likewise.
11176         * sunrpc/xdr_array.c: Likewise.
11177         * sunrpc/xdr_float.c: Likewise.
11178         * sunrpc/xdr_intXX_t.c: Likewise.
11179         * sunrpc/xdr_mem.c: Likewise.
11180         * sunrpc/xdr_rec.c: Likewise.
11181         * sunrpc/xdr_ref.c: Likewise.
11182         * sunrpc/xdr_sizeof.c: Likewise.
11183         * sunrpc/xdr_stdio.c: Likewise.
11184
11185 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
11186
11187         [BZ #12650]
11188         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
11189         * sysdeps/ia64/dl-tls.h: Likewise.
11190         * sysdeps/powerpc/dl-tls.h: Likewise.
11191         * sysdeps/s390/dl-tls.h: Likewise.
11192         * sysdeps/sh/dl-tls.h: Likewise.
11193         * sysdeps/sparc/dl-tls.h: Likewise.
11194         * sysdeps/x86_64/dl-tls.h: Likewise.
11195         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
11196
11197 2011-03-14  Andreas Schwab  <schwab@redhat.com>
11198
11199         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
11200         rpath element also skip the following colon.
11201         (expand_dynamic_string_token): Add is_path parameter and pass
11202         down to DL_DST_REQUIRED and _dl_dst_substitute.
11203         (decompose_rpath): Call expand_dynamic_string_token with
11204         non-zero is_path.  Ignore empty rpaths.
11205         (_dl_map_object_from_fd): Call expand_dynamic_string_token
11206         with zero is_path.
11207
11208 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
11209
11210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11211         Make cancelable.
11212
11213 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
11214
11215         [BZ #12655]
11216         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
11217         Patch by Filipe David Manana <fdmanana@apache.org>.
11218
11219 2011-04-07  Andreas Schwab  <schwab@redhat.com>
11220
11221         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
11222         Maintain aligned stack.
11223         (CHECK_RSP): Remove unused macro.
11224
11225 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
11226
11227         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
11228         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
11229
11230 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
11231
11232         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
11233
11234         * include/features.h: Mention __USE_XOPEN2K8 in comment.
11235
11236 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11237
11238         [BZ #12518]
11239         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
11240         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
11241         * sysdeps/x86_64/memmove.c: New file.
11242         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
11243         (memcpy): Renamed to ...
11244         (__new_memcpy): This.
11245         (memcpy): Provide GLIBC_2_14 memcpy.
11246         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
11247         (memcpy): Provide GLIBC_2_2_5 memcpy.
11248
11249 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11250
11251         [BZ #12631]
11252         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
11253
11254 2011-03-30  Andreas Schwab  <schwab@redhat.com>
11255
11256         * misc/syncfs.c: New file.
11257         * misc/Makefile (routines): Add syncfs.
11258         * posix/unistd.h: Declare syncfs.
11259         * sysdeps/unix/syscalls.list: Add syncfs.
11260
11261 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11262
11263         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
11264         open_by_handle_at.
11265         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11266         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11267         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11268         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11269         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11270         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11271         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11272
11273 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11274
11275         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
11276         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11277         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11278         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11279         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11280         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11281         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11282
11283         * io/Makefile: Compile fallocate.c, fallocate64.c, and
11284         sync_file_range.c with -fexceptions.
11285         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
11286         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
11287         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
11288         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
11289         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
11290         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11291         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
11292         sync_file_range as cancellation point
11293         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
11294         now a wrapper around __call_sync_file_range with cancellation handling.
11295         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
11296         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
11297         function name to __call_sync_file_range.
11298         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
11299         Add call_sync_file_range.
11300
11301 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11302
11303         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11304         bits/timex.h.
11305
11306 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11307
11308         * iconv/iconv.h: Fix typo in comment.
11309         * io/fcntl.h: Likewise.
11310         * libio/stdio.h: Likewise.
11311         * posix/spawn.h: Likewise.
11312         * posix/unistd.h: Likewise.
11313         * stdlib/stdlib.h: Likewise.
11314         * time/time.h: Likewise.
11315         * wcsmbs/wchar.h: Likewise.
11316
11317         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
11318         open_by_handle): Add.
11319         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
11320         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
11321         Augment a few comments.
11322         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11323         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11324         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11325         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11326         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11327         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
11328         open_by_handle.
11329
11330         * io/fcntl.h (AT_EMPTY_PATH): Define.
11331
11332 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
11333
11334         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
11335         * sysdeps/unix/sysv/linux/bits/time.h: New file.
11336         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
11337         to...
11338         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
11339         * Versions.def: Add GLIBC_2.14.
11340         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
11341         Export.
11342
11343 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
11344
11345         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
11346         round counter.
11347         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11348
11349 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11350
11351         [BZ #12597]
11352         * string/test-strncmp.c (do_page_test): New function.
11353         (check2): Likewise.
11354         (test_main): Call check2.
11355         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
11356
11357 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
11358
11359         [BZ #12587]
11360         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11361         Handle cache information in CPU leaf 4.
11362         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11363
11364 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
11365
11366         [BZ #12583]
11367         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
11368         character representation.
11369         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
11370
11371 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
11372
11373         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
11374         END(__isnan) to END(__isnanf) to match function entry point/label
11375         EALIGN(__isnanf,...).
11376
11377 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11378
11379         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
11380
11381 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
11382
11383         [BZ #12510]
11384         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
11385         copy from the symbol referenced in the relocation to initialize the
11386         used variable.
11387         Patch by Piotr Bury <pbury@goahead.com>.
11388         * elf/Makefile: Add rules to build and tst-unique3.
11389         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
11390         * elf/tst-unique3.cc: New file.
11391         * elf/tst-unique3.h: New file.
11392         * elf/tst-unique3lib.cc: New file.
11393         * elf/tst-unique3lib2.cc: New file.
11394
11395         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
11396
11397 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
11398
11399         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
11400         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
11401         to _start.
11402
11403 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
11404
11405         * elf/dl-load.c (_dl_map_object): If we are looking for the first
11406         to-be-loaded object along a path to loader is ld.so.
11407
11408 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11409             Ulrich Drepper  <drepper@gmail.com>
11410
11411         * sysdeps/x86_64/memset.S: After aligning destination, code
11412         branches to different locations depending on the value of
11413         misalignment, when multiarch is enabled. Fix this.
11414
11415 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11416
11417         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
11418         Set _x86_64_preferred_memory_instruction for AMD processsors.
11419         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11420         Set bit_Prefer_SSE_for_memop for AMD processors.
11421
11422 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
11423
11424         * libio/fmemopen.c (fmemopen): Optimize a bit.
11425
11426 2011-03-03  Andreas Schwab  <schwab@redhat.com>
11427
11428         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
11429
11430 2011-03-03  Roland McGrath  <roland@redhat.com>
11431
11432         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
11433
11434 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
11435
11436         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
11437         __bzero_ultra1 instead of __memset_ultra1.
11438
11439 2011-02-23  Andreas Schwab  <schwab@redhat.com>
11440             Ulrich Drepper  <drepper@gmail.com>
11441
11442         [BZ #12509]
11443         * include/link.h (struct link_map): Add l_orig_initfini.
11444         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
11445         returning unsuccessfully.
11446         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
11447         close of a file loaded at startup, restore the original l_initfini
11448         list.
11449         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
11450         list, store the pointer.
11451         * elf/Makefile ($(objpfx)noload-mem): New rule.
11452         (noload-ENV): Define.
11453         (tests): Add $(objpfx)noload-mem.
11454         * elf/noload.c: Include <memcheck.h>.
11455         (main): Call mtrace.  Close all opened handles.
11456
11457 2011-02-17  Andreas Schwab  <schwab@redhat.com>
11458
11459         [BZ #12454]
11460         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
11461         dependencies are missing.
11462
11463 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11464
11465         Fix __if_freereq crash: Unlike the generic version which uses free,
11466         Hurd needs munmap.
11467         * sysdeps/mach/hurd/ifreq.h: New file.
11468
11469 2011-01-27  Petr Baudis  <pasky@suse.cz>
11470             Ulrich Drepper  <drepper@gmail.com>
11471
11472         [BZ 12445]#
11473         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
11474         to extend_alloca().
11475         * stdio-common/bug23.c: New file.
11476         * stdio-common/Makefile (tests): Add bug23.
11477
11478 2010-09-28  Andreas Schwab  <schwab@redhat.com>
11479             Ulrich Drepper  <drepper@gmail.com>
11480
11481         [BZ #12489]
11482         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
11483         before performing relro protection.  At old place add assertion
11484         to make sure nothing changed.
11485
11486 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
11487             Glauber de Oliveira Costa  <glommer@gmail.com>
11488
11489         * elf/elf.h: Add new ARM TLS relocs.
11490
11491 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
11492
11493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11494         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
11495         cast from r3.
11496         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
11497         'tests' variable.
11498         * sysdeps/wordsize-64/tst-writev.c: New file.
11499
11500 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
11501
11502         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
11503         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
11504         insns in _dl_start to prevent a TOC reference before relocs are
11505         resolved.
11506
11507 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
11508
11509         [BZ #12469]
11510         * Makeconfig: Remove RANLIB definition.
11511         * Makerules: Don't use RANLIB.
11512         * aclocal.m4: Remove ranlib test.
11513         * configure.in: No need to check for ranlib.
11514         * elf/rtld-Rules: Don't use RANLIB.
11515
11516 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11517
11518         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
11519         protection macro.
11520         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
11521         inclusion protection macro.
11522
11523         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
11524         SIGRTMIN and SIGRTMAX and print information in that case only when
11525         SIGRTMIN is defined.
11526
11527 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11528
11529         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
11530         arginfo fn returning -1.
11531
11532         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
11533         and thousands string is zero terminated.
11534
11535 2011-02-03  Andreas Schwab  <schwab@redhat.com>
11536
11537         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
11538         sysdeps/unix/sysv/linux/bits/socket.h.
11539
11540 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11541
11542         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
11543         (__CPU_COUNT): Remove old macros.
11544         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
11545         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
11546         (__CPU_ALLOC, __CPU_FREE): Add macros.
11547         (__sched_cpualloc, __sched_cpufree): Add declarations.
11548
11549 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
11550
11551         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
11552         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
11553         * nscd/aicache.c (addhstaiX): Return timeout of added value.
11554         (readdhstai): Return value of addhstaiX call.
11555         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
11556         (addgrbyX): Return value returned by cache_addgr.
11557         (readdgrbyname): Return value returned by addgrbyX.
11558         (readdgrbygid): Likewise.
11559         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
11560         (addpwbyX): Return value returned by cache_addpw.
11561         (readdpwbyname): Return value returned by addhstbyX.
11562         (readdpwbyuid): Likewise.
11563         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
11564         (addservbyX): Return value returned by cache_addserv.
11565         (readdservbyname): Return value returned by addservbyX:
11566         (readdservbyport): Likewise.
11567         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
11568         (addhstbyX): Return value returned by cache_addhst.
11569         (readdhstbyname): Return value returned by addhstbyX.
11570         (readdhstbyaddr): Likewise.
11571         (readdhstbynamev6): Likewise.
11572         (readdhstbyaddrv6): Likewise.
11573         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
11574         (readdinitgroups): Return value returned by addinitgroupsX.
11575         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
11576         (prune_cache): Keep track of timeout value of re-added entries.
11577         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
11578         * nscd/nscd.h: Adjust prototypes of readd* functions.
11579
11580 2011-02-04  Roland McGrath  <roland@redhat.com>
11581
11582         * nis/nis_server.c (nis_servstate): Use the right name for 0.
11583         (nis_stats): Likewise.
11584         * nis/nis_modify.c (nis_modify): Likewise.
11585         * nis/nis_remove.c (nis_remove): Likewise.
11586         * nis/nis_add.c (nis_add): Likewise.
11587
11588         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
11589
11590         * posix/fnmatch_loop.c: Add some consts.
11591
11592         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
11593
11594 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
11595
11596         [BZ #12460]
11597         * config.make.in (config-cflags-novzeroupper): Define.
11598         * configure.in: Substitute libc_cv_cc_novzeroupper.
11599         * elf/Makefile (AVX-CFLAGS): Define.
11600         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
11601         (CFLAGS-tst-auditmod4a.c): Likewise.
11602         (CFLAGS-tst-auditmod4b.c): Likewise.
11603         (CFLAGS-tst-auditmod6b.c): Likewise.
11604         (CFLAGS-tst-auditmod6c.c): Likewise.
11605         (CFLAGS-tst-auditmod7b.c): Likewise.
11606         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
11607
11608 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
11609
11610         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
11611         function to the callback.
11612         Patch partly by Jiri Olsa <jolsa@redhat.com>.
11613
11614 2011-02-02  Andreas Schwab  <schwab@redhat.com>
11615
11616         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
11617         of errno.
11618
11619 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
11620
11621         [BZ #11724]
11622         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
11623         of constructors.
11624         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
11625         of destructors.
11626         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
11627
11628         [BZ #11724]
11629         * elf/Makefile: Add rules to build and run new test.
11630         * elf/tst-initorder.c: New file.
11631         * elf/tst-initorder.exp: New file.
11632         * elf/tst-initordera1.c: New file.
11633         * elf/tst-initordera2.c: New file.
11634         * elf/tst-initordera3.c: New file.
11635         * elf/tst-initordera4.c: New file.
11636         * elf/tst-initorderb1.c: New file.
11637         * elf/tst-initorderb2.c: New file.
11638         * elf/tst-order-a1.c: New file.
11639         * elf/tst-order-a2.c: New file.
11640         * elf/tst-order-a3.c: New file.
11641         * elf/tst-order-a4.c: New file.
11642         * elf/tst-order-b1.c: New file.
11643         * elf/tst-order-b2.c: New file.
11644         * elf/tst-order-main.c: New file.
11645         New test case by George Gensure <werkt0@gmail.com>.
11646
11647 2010-10-01  Andreas Schwab  <schwab@redhat.com>
11648
11649         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11650         decoding ACE if AI_CANONIDN.
11651
11652 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
11653
11654         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
11655
11656 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
11657
11658         * version.h (RELEASE): Bump for 2.13 release.
11659         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
11660
11661         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
11662
11663         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
11664         MADV_NOHUGEPAGE.
11665         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
11666         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11667         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11668         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11669         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11670         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11671
11672         * posix/getconf.c: Update copyright year.
11673         * catgets/gencat.c: Likewise.
11674         * csu/version.c: Likewise.
11675         * debug/catchsegv.sh: Likewise.
11676         * debug/xtrace.sh: Likewise.
11677         * elf/ldconfig.c: Likewise.
11678         * elf/ldd.bash.in: Likewise.
11679         * elf/sprof.c (print_version): Likewise.
11680         * iconv/iconv_prog.c: Likewise.
11681         * iconv/iconvconfig.c: Likewise.
11682         * locale/programs/locale.c: Likewise.
11683         * locale/programs/localedef.c: Likewise.
11684         * malloc/memusage.sh: Likewise.
11685         * malloc/mtrace.pl: Likewise.
11686         * nscd/nscd.c (print_version): Likewise.
11687         * nss/getent.c: Likewise.
11688
11689         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
11690         PF_CAIF, and PF_ALG.
11691         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11692
11693 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
11694
11695         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
11696         (modules-names): Use them.
11697         (ifunc-test-modules, ifunc-pie-tests): Define.
11698         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
11699         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
11700         (test-extras): Likewise.
11701         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
11702         $(compile-command.c).
11703         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
11704         (all-built-dso): Define.
11705         (check-textrel.out, check-execstack.out): Depend on it.
11706
11707         * configure.in: Don't override --enable-multi-arch.
11708
11709 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
11710
11711         [BZ #6812]
11712         * nscd/hstcache.c (tryagain): Define.
11713         (cache_addhst): Return tryagain not notfound for temporary errors.
11714         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
11715         failed.
11716
11717 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
11718
11719         [BZ #10563]
11720         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
11721         to make the syscall.
11722         * sysdeps/unix/sysv/linux/setgroups.c: New file.
11723
11724         [BZ #12378]
11725         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
11726         and fall back to matching as normal character if the string ends before
11727         the matching ']' is found.  This is what POSIX requires.
11728         * posix/testfnm.c: Adjust test result.
11729         * posix/globtest.sh: Adjust test result.  Add new test.
11730         * posix/tst-fnmatch.input: Likewise.
11731         * posix/tst-fnmatch2.c: Add new test.
11732
11733 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
11734
11735         * elf/Makefile (check-execstack): Revert last change.  Depend on
11736         check-execstack.h.
11737         (check-execstack.h): New target.
11738         (generated): Add check-execstack.h.
11739         * elf/check-execstack.c: Include "check-execstack.h".
11740         (main): Revert last change.
11741         (handle_file): Return zero if GNU_STACK is absent and
11742         DEFAULT_STACK_PERMS doesn't include PF_X.
11743
11744 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
11745
11746         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
11747         in child fails because the descriptor is already closed.
11748         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
11749         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
11750         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
11751
11752         [BZ #12397]
11753         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
11754         syscall.
11755
11756         [BZ #10484]
11757         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
11758         temporary buffer used to handle multi lookups locally.
11759         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
11760
11761 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
11762
11763         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
11764         loader is ld.so.
11765
11766 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
11767
11768         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
11769         alignment for SSE2.
11770
11771 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
11772
11773         [BZ #12394]
11774         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
11775         characters.  When rounding increased number of integer digits recompute
11776         number of groups.
11777         * stdio-common/tst-grouping.c: New file.
11778         * stdio-common/Makefile: Add rules to build and run tst-grouping.
11779
11780 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
11781
11782         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
11783         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
11784
11785         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
11786         void.
11787         * bits/select.h: Likewise.
11788
11789 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
11790
11791         * po/ja.po: Update from translation team.
11792
11793 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
11794
11795         [BZ #11155]
11796         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
11797         implementation just like for lxstat, fxstatat, et al.
11798
11799 2010-12-27  Jim Meyering  <meyering@redhat.com>
11800
11801         [BZ #12348]
11802         * posix/regexec.c (build_trtable): Return failure indication upon
11803         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11804
11805 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
11806
11807         [BZ #12201]
11808         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
11809         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
11810         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
11811         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
11812
11813         [BZ #12207]
11814         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
11815
11816         [BZ #12204]
11817         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
11818         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
11819
11820 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
11821
11822         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
11823         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
11824         script has SORT_BY_INIT_PRIORITY.
11825         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
11826         NO_CTORS_DTORS_SECTIONS is defined.
11827         * elf/soinit.c: Likewise.
11828         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
11829         NO_CTORS_DTORS_SECTIONS is defined.
11830         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
11831         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
11832         * sysdeps/sh/init-first.c: Likewise.
11833         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
11834
11835 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
11836
11837         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
11838         always use the slow path.
11839
11840 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
11841
11842         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
11843         similar rule which adds the sysdep directories to the header search in
11844         order to pick up the correct platform stackinfo.h.
11845         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
11846         perform test if it is, otherwise return successfully without testing.
11847         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
11848         DEFAULT_STACK_PERMS define in stackinfo.h.
11849         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
11850         defined in stackinfo.h.
11851         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
11852         DEFAULT_STACK_PERMS defined in stackinfo.h.
11853         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
11854         * sysdeps/ia64/stackinfo.h: Likewise.
11855         * sysdeps/s390/stackinfo.h: Likewise.
11856         * sysdeps/sh/stackinfo.h: Likewise.
11857         * sysdeps/sparc/stackinfo.h: Likewise.
11858         * sysdeps/x86_64/stackinfo.h: Likewise.
11859         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
11860         PF_X for powerpc64.  Retain PF_X for powerpc32.
11861
11862 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
11863
11864         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
11865         accurately.
11866         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
11867         GETDENTS_64BIT_ALIGNED.
11868
11869 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
11870
11871         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
11872
11873 2010-12-10  Andreas Schwab  <schwab@redhat.com>
11874
11875         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
11876         _GNU_SOURCE.
11877
11878         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
11879         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
11880         Remove __restrict.
11881         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
11882         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
11883
11884 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
11885
11886         [BZ #11655]
11887         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
11888         are initialized.
11889
11890 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
11891
11892         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
11893
11894 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
11895
11896         * po/it.po: Update from translation team.
11897
11898 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
11899
11900         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
11901         unused codes.
11902
11903 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
11904
11905         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
11906
11907 2010-11-24  Andreas Schwab  <schwab@redhat.com>
11908
11909         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
11910         specially.
11911         (gaih_getanswer_slice): Likewise.
11912
11913 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
11914
11915         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
11916
11917 2010-05-31  Petr Baudis  <pasky@suse.cz>
11918
11919         [BZ #11149]
11920         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
11921         silently even in the chroot mode.
11922
11923 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
11924
11925         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
11926         last patch a bit.  Pretty printing
11927
11928 2010-05-31  Petr Baudis <pasky@suse.cz>
11929
11930         [BZ #10085]
11931         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
11932         initialization of skip_initgroups_dyn.
11933
11934 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
11935
11936         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
11937         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11938
11939 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
11940
11941         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
11942
11943 2010-11-11  Andreas Schwab  <schwab@redhat.com>
11944
11945         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
11946         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
11947         (tst-fnmatch-ENV): Set MALLOC_TRACE.
11948         ($(objpfx)tst-fnmatch-mem): New rule.
11949         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
11950         * posix/tst-fnmatch.c (main): Call mtrace.
11951
11952 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
11953
11954         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11955         Support Intel processor model 6 and model 0x2c.
11956
11957 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
11958
11959         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
11960           signed comparison.
11961
11962 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
11963
11964         [BZ #12205]
11965         * string/test-strncasecmp.c (check_result): New function.
11966         (do_one_test): Use it.
11967         (check1): New function.
11968         (test_main): Use it.
11969         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
11970         Support strcasecmp and strncasecmp.
11971
11972 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
11973
11974         [BZ #12194]
11975         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
11976         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11977
11978 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11979
11980         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
11981         IFUNC support.
11982         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11983         memset-x86-64.
11984         * sysdeps/x86_64/multiarch/bzero.S: New file.
11985         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
11986         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
11987         * sysdeps/x86_64/multiarch/memset.S: New file.
11988         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
11989         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11990         Set bit_Prefer_SSE_for_memop for Intel processors.
11991         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
11992         Define.
11993         (index_Prefer_SSE_for_memop): Define.
11994         (HAS_PREFER_SSE_FOR_MEMOP): Define.
11995
11996 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
11997
11998         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
11999         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
12000
12001 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
12002
12003         [BZ #12191]
12004         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12005         (__x86_64_raw_data_cache_size_half): Likewise.
12006         (__x86_64_raw_shared_cache_size): Likewise.
12007         (__x86_64_raw_shared_cache_size_half): Likewise.
12008
12009         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12010         (__x86_64_raw_data_cache_size_half): Likewise.
12011         (__x86_64_raw_shared_cache_size): Likewise.
12012         (__x86_64_raw_shared_cache_size_half): Likewise.
12013         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
12014         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
12015         and __x86_64_raw_shared_cache_size_half.  Round
12016         __x86_64_data_cache_size_half, __x86_64_data_cache_size
12017         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
12018         to multiple of 256 bytes.
12019
12020 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
12021
12022         [BZ #12167]
12023         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
12024         of inacessible symlinks.  Verify result of symlink before returning it.
12025         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
12026         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
12027
12028 2010-10-28  Erich Ritz  <erichritz@gmail.com>
12029
12030         * math/math.h (isinf): Fix typo in comment.
12031
12032 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
12033
12034         * po/da.po: Update from translation team.
12035
12036 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
12037
12038         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
12039         is added to the list.
12040
12041 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12042             Ulrich Drepper  <drepper@gmail.com>
12043
12044         * elf/dl-object.c (_dl_new_object): Don't append the new object to
12045         the global list here.  Move code to...
12046         (_dl_add_to_namespace_list): ...here.  New function.
12047         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
12048         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
12049         * elf/dl-load.c (lose): Don't remove the element from the list.
12050         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
12051         (_dl_map_object): Likewise.
12052
12053 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
12054
12055         [BZ #12159]
12056         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
12057         into all bytes of SSE register.
12058         Patch by Richard Li <richardpku@gmail.com>.
12059
12060 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
12061
12062         [BZ #12140]
12063         * malloc/malloc.c (_int_free): Fill correct number of bytes when
12064         perturbing.
12065
12066 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
12067
12068         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
12069         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
12070         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
12071         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
12073         submachine.
12074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12075
12076 2010-10-22  Andreas Schwab  <schwab@redhat.com>
12077
12078         * include/dlfcn.h (__RTLD_SECURE): Define.
12079         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
12080         mode & __RTLD_SECURE instead.
12081         (open_path): Rename preloaded parameter to secure.
12082         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
12083         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
12084         * elf/dl-deps.c (openaux): Likewise.
12085         * elf/rtld.c (struct map_args): Remove is_preloaded.
12086         (map_doit): Don't use it.
12087         (dl_main): Likewise.
12088         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
12089         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
12090
12091 2010-09-09  Andreas Schwab  <schwab@redhat.com>
12092
12093         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
12094         (sysd-rules-targets): Remove duplicates.
12095         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
12096         rtld-%.$o dependency.
12097
12098 2010-10-18  Andreas Schwab  <schwab@redhat.com>
12099
12100         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
12101         _dl_map_object do it.
12102
12103 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
12104
12105         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
12106         fast fma builtins, define the macros in the C99 standard.
12107         (FP_FAST_FMAF): Likewise.
12108         (FP_FAST_FMAL): Likewise.
12109         * sysdeps/x86_64/bits/mathdef.h: Likewise.
12110
12111         * bits/mathdef.h: Update copyright year.
12112         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12113
12114 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12115
12116         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
12117         builtins, define the macros in the C99 standard.
12118         (FP_FAST_FMAF): Likewise.
12119         (FP_FAST_FMAL): Likewise.
12120         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
12121         multiply/add.
12122         (FP_FAST_FMAF): Likewise.
12123
12124 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
12125
12126         [BZ #3268]
12127         * math/libm-test.inc (fma_test): Some new testcases.
12128         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
12129         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
12130         y and infinite z.  Do multiplication by C already in long double.
12131         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
12132         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
12133         y and infinite z.  Do bitwise or of inexact bit into u.d.
12134         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
12135         * sysdeps/i386/fpu/s_fmaf.S: Removed.
12136         * sysdeps/i386/fpu/s_fma.S: Removed.
12137         * sysdeps/i386/fpu/s_fmal.S: Removed.
12138
12139 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
12140
12141         [BZ #3268]
12142         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
12143         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
12144         computation is not scheduled after fetestexcept.  Fix value
12145         of minimum denormal long double.
12146
12147 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
12148
12149         [BZ #3268]
12150         * math/libm-test.inc (fma_test): Add some more tests.
12151         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
12152         correctly.
12153
12154 2010-10-15  Andreas Schwab  <schwab@redhat.com>
12155
12156         * scripts/data/localplt-s390-linux-gnu.data: New file.
12157         * scripts/data/localplt-s390x-linux-gnu.data: New file.
12158
12159 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
12160
12161         [BZ #3268]
12162         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
12163         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
12164         instead of dbl-64.
12165         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
12166         inlines.
12167         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
12168         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
12169         if one of x and y is very large and the other is subnormal.
12170         * sysdeps/s390/fpu/s_fmaf.c: New file.
12171         * sysdeps/s390/fpu/s_fma.c: New file.
12172         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
12173         * sysdeps/powerpc/fpu/s_fma.S: New file.
12174         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
12175         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
12176         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
12177
12178 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
12179
12180         [BZ #3268]
12181         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
12182         fma tests.
12183         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
12184         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
12185         * sysdeps/i386/i686/multiarch/s_fma.c: Include
12186         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
12187         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
12188         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
12190
12191 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
12192
12193         [BZ #12078]
12194         * posix/regcomp.c (parse_branch): One more memory leak plugged.
12195         * posix/bug-regex31.input: Add test case.
12196
12197 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12198
12199         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
12200         * posix/bug-regex31.input: New file.
12201
12202         [BZ #12078]
12203         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
12204         (parse_sub_exp): Fix last change, use postorder.
12205
12206         * posix/bug-regex31.c: New file.
12207         * posix/Makefile: Add rules to build and run bug-regex31.
12208
12209         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
12210
12211         [BZ #12078]
12212         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
12213
12214         [BZ #12108]
12215         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
12216         to have entries in sys_siglist.
12217
12218         [BZ #12093]
12219         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
12220         be NULL.
12221
12222 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
12223
12224         [BZ #3268]
12225         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
12226         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
12227         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
12228         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
12229         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12230         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
12231         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
12232         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
12233         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
12234         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
12235         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
12236         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
12237         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
12238         * math/ftestexcept.c (fetestexcept): Likewise.
12239         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
12240         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
12241         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12242         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
12243         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
12244         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
12245         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12246
12247 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12248
12249         [BZ #12107]
12250         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
12251         newline.
12252
12253 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
12254
12255         * string/bug-strstr1.c: New file.
12256         * string/Makefile: Add rules to build and run bug-strstr1.
12257
12258 2010-10-05  Eric Blake  <eblake@redhat.com>
12259
12260         [BZ #12092]
12261         * string/str-two-way.h (two_way_long_needle): Always clear memory
12262         when skipping input due to the shift table.
12263
12264 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
12265
12266         [BZ #12005]
12267         * malloc/mcheck.c: Handle large requests.
12268
12269         [BZ #12077]
12270         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
12271         for strncmp and strncasecmp.
12272         * string/stratcliff.c: Add tests for strcmp and strncmp.
12273         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
12274
12275 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12276
12277         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
12278         __set_fpscr.
12279
12280 2010-09-30  Andreas Jaeger  <aj@suse.de>
12281
12282         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
12283         (CGROUP_SUPER_MAGIC): Define.
12284         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12285         Handle btrfs and cgroup file systems.
12286         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12287         Likewise.
12288
12289 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
12290
12291         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
12292         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
12293
12294 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12295
12296         [BZ #12067]
12297         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
12298         trying to locate the ELF header.
12299
12300 2010-09-27  Andreas Schwab  <schwab@redhat.com>
12301
12302         [BZ #11611]
12303         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
12304         Mask out sign-bit copies when constructing f_fsid.
12305
12306 2010-09-24  Petr Baudis <pasky@suse.cz>
12307
12308         * debug/stack_chk_fail_local.c: Add missing licence exception.
12309         * debug/warning-nop.c: Likewise.
12310
12311 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12312
12313         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
12314         implementing getdents64 using getdents syscall, set d_type if
12315         __ASSUME_GETDENTS32_D_TYPE.
12316
12317 2010-09-16  Andreas Schwab  <schwab@redhat.com>
12318
12319         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
12320         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
12321
12322 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
12323
12324         [BZ #12037]
12325         * posix/unistd.h: Undo change of feature selection for ftruncate from
12326         2010-01-11.
12327
12328 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
12329
12330         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
12331         detection.
12332
12333 2010-09-20  Andreas Schwab  <schwab@redhat.com>
12334
12335         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
12336         fanotify_mark.
12337         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12338
12339 2010-09-14  Andreas Schwab  <schwab@redhat.com>
12340
12341         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
12342         variables after CHECK_SP call.
12343         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
12344
12345 2010-09-13  Andreas Schwab  <schwab@redhat.com>
12346             Ulrich Drepper  <drepper@redhat.com>
12347
12348         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
12349         re-relocationg ld.so.
12350         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
12351         _dl_init_paths call.
12352         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
12353         here anymore.
12354
12355 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
12356
12357         * resolv/res_init.c (__res_vinit): Count the default server we added.
12358
12359 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
12360             Ulrich Drepper  <drepper@redhat.com>
12361
12362         [BZ #11968]
12363         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12364         (____longjmp_chk): Use %ebx for saving value across system call.
12365         Add unwind info.
12366
12367 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12368
12369         * manual/Makefile: Don't mix pattern rules with normal rules.
12370
12371 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
12372
12373         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
12374         operation.
12375         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12376         * libio/iofopncook.c (_IO_cookie_init): Likewise.
12377         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12378         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12379         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12380         Likewise.
12381
12382 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
12383
12384         [BZ #11979]
12385         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
12386         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
12387
12388 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
12389
12390         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
12391         * sysdeps/x86_64/addmul_1.S: Likewise.
12392         * sysdeps/x86_64/lshift.S: Likewise.
12393         * sysdeps/x86_64/mul_1.S: Likewise.
12394         * sysdeps/x86_64/rshift.S: Likewise.
12395         * sysdeps/x86_64/sub_n.S: Likewise.
12396         * sysdeps/x86_64/submul_1.S: Likewise.
12397
12398 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12399
12400         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
12401         Define __sched_param instead of SCHED_* and sched_param when
12402         <bits/sched.h> is included with __need_schedparam defined.
12403         * bits/sched.h [__need_schedparam]
12404         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
12405         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
12406         (__defined_schedparam): Define to 1.
12407         (__sched_param): New structure, identical to sched_param.
12408         (__need_schedparam): Undefine.
12409
12410 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
12411
12412         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
12413         (epoll_create1): Declare.
12414
12415         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
12416
12417 2010-08-31  Andreas Schwab  <schwab@redhat.com>
12418
12419         [BZ #7066]
12420         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
12421         shifting retval into place.
12422
12423 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
12424
12425         * nis/rpcsvc/nis.h: Update copyright notice.
12426         * nis/rpcsvc/nis.x: Likewise.
12427         * nis/rpcsvc/nis_callback.h: Likewise.
12428         * nis/rpcsvc/nis_callback.x: Likewise.
12429         * nis/rpcsvc/nis_object.x: Likewise.
12430         * nis/rpcsvc/nis_tags.h: Likewise.
12431         * nis/rpcsvc/yp.h: Likewise.
12432         * nis/rpcsvc/yp.x: Likewise.
12433         * nis/rpcsvc/ypupd.h: Likewise.
12434         * nis/yp_xdr.c: Likewise.
12435         * nis/ypupdate_xdr.c: Likewise.
12436
12437         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
12438         mainly the body of pmap_getport.  Add parameters to specify timeouts.
12439         (pmap_getport): Use __libc_rpc_getport.
12440         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
12441         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
12442         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
12443
12444 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
12445
12446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
12447         fanotify_mark.
12448
12449 2010-08-27  Roland McGrath  <roland@redhat.com>
12450
12451         * sysdeps/i386/i686/multiarch/Makefile
12452         (CFLAGS-varshift.c): New variable.
12453
12454 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
12455
12456         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
12457         * sysdeps/i386/i686/multiarch/varshift.c: New file.
12458
12459         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
12460
12461         * sysdeps/x86_64/strlen.S: Minimal code improvement.
12462
12463 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12464
12465         * sysdeps/x86_64/strlen.S: Unroll the loop.
12466         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12467         strlen-sse2 strlen-sse2-bsf.
12468         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
12469         __strlen_no_bsf if bit_Slow_BSF is set.
12470         (__strlen_sse42): Removed.
12471         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
12472         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
12473
12474 2010-08-25  Roland McGrath  <roland@redhat.com>
12475
12476         * sysdeps/x86_64/multiarch/varshift.S: File removed.
12477         * sysdeps/x86_64/multiarch/varshift.c: New file.
12478         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
12479         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
12480         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
12481         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12482
12483 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12484
12485         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12486         strlen-sse2 strlen-sse2-bsf.
12487         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
12488         __strlen_sse2_bsf if bit_Slow_BSF is unset.
12489         (__strlen_sse2): Removed.
12490         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
12491         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
12492         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
12493         bit_Slow_BSF for Atom.
12494         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
12495         (index_Slow_BSF): Define.
12496         (HAS_SLOW_BSF): Define.
12497
12498 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
12499
12500         [BZ #10851]
12501         * resolv/res_init.c (__res_vinit): When no server address at all
12502         is given default to loopback.
12503
12504 2010-08-24  Roland McGrath  <roland@redhat.com>
12505
12506         * configure.in: Remove config-name.h generation.
12507         * configure: Regenerated.
12508         * config-name.in: File removed.
12509         * scripts/config-uname.sh: New file.
12510         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
12511         ($(objdir)config-name.h): New target.
12512
12513         * sunrpc/rpc_parse.h: Avoid nested comment.
12514
12515 2010-08-24  Richard Henderson  <rth@redhat.com>
12516             Ulrich Drepper  <drepper@redhat.com>
12517             H.J. Lu  <hongjiu.lu@intel.com>
12518
12519         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
12520         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
12521         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
12522         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
12523         _mm_alignr_epi8 with _mm_loadu_si128.
12524         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
12525         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
12526         (__m128i_shift_right): Removed.
12527         * sysdeps/i386/i686/multiarch/varshift.h: New file.
12528         * sysdeps/i386/i686/multiarch/varshift.S: New file.
12529         * sysdeps/x86_64/multiarch/varshift.h: New file.
12530         * sysdeps/x86_64/multiarch/varshift.S: New file.
12531
12532 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
12533
12534         * configure.in: Move assembler checks to before sysdep dir checking.
12535
12536 2010-08-20  Petr Baudis  <pasky@suse.cz>
12537
12538         * LICENSES: Sync the sunrpc license.
12539
12540 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
12541
12542         * sunrpc/auth_des.c: Update copyright notice once again.
12543         * sunrpc/auth_none.c: Likewise.
12544         * sunrpc/auth_unix.c: Likewise.
12545         * sunrpc/authdes_prot.c: Likewise.
12546         * sunrpc/authuxprot.c: Likewise.
12547         * sunrpc/bindrsvprt.c: Likewise.
12548         * sunrpc/clnt_gen.c: Likewise.
12549         * sunrpc/clnt_perr.c: Likewise.
12550         * sunrpc/clnt_raw.c: Likewise.
12551         * sunrpc/clnt_simp.c: Likewise.
12552         * sunrpc/clnt_tcp.c: Likewise.
12553         * sunrpc/clnt_udp.c: Likewise.
12554         * sunrpc/clnt_unix.c: Likewise.
12555         * sunrpc/des_crypt.c: Likewise.
12556         * sunrpc/des_soft.c: Likewise.
12557         * sunrpc/get_myaddr.c: Likewise.
12558         * sunrpc/getrpcport.c: Likewise.
12559         * sunrpc/key_call.c: Likewise.
12560         * sunrpc/key_prot.c: Likewise.
12561         * sunrpc/openchild.c: Likewise.
12562         * sunrpc/pm_getmaps.c: Likewise.
12563         * sunrpc/pm_getport.c: Likewise.
12564         * sunrpc/pmap_clnt.c: Likewise.
12565         * sunrpc/pmap_prot.c: Likewise.
12566         * sunrpc/pmap_prot2.c: Likewise.
12567         * sunrpc/pmap_rmt.c: Likewise.
12568         * sunrpc/rpc/auth.h: Likewise.
12569         * sunrpc/rpc/auth_unix.h: Likewise.
12570         * sunrpc/rpc/clnt.h: Likewise.
12571         * sunrpc/rpc/des_crypt.h: Likewise.
12572         * sunrpc/rpc/key_prot.h: Likewise.
12573         * sunrpc/rpc/netdb.h: Likewise.
12574         * sunrpc/rpc/pmap_clnt.h: Likewise.
12575         * sunrpc/rpc/pmap_prot.h: Likewise.
12576         * sunrpc/rpc/pmap_rmt.h: Likewise.
12577         * sunrpc/rpc/rpc.h: Likewise.
12578         * sunrpc/rpc/rpc_des.h: Likewise.
12579         * sunrpc/rpc/rpc_msg.h: Likewise.
12580         * sunrpc/rpc/svc.h: Likewise.
12581         * sunrpc/rpc/svc_auth.h: Likewise.
12582         * sunrpc/rpc/types.h: Likewise.
12583         * sunrpc/rpc/xdr.h: Likewise.
12584         * sunrpc/rpc_clntout.c: Likewise.
12585         * sunrpc/rpc_cmsg.c: Likewise.
12586         * sunrpc/rpc_common.c: Likewise.
12587         * sunrpc/rpc_cout.c: Likewise.
12588         * sunrpc/rpc_dtable.c: Likewise.
12589         * sunrpc/rpc_hout.c: Likewise.
12590         * sunrpc/rpc_main.c: Likewise.
12591         * sunrpc/rpc_parse.c: Likewise.
12592         * sunrpc/rpc_parse.h: Likewise.
12593         * sunrpc/rpc_prot.c: Likewise.
12594         * sunrpc/rpc_sample.c: Likewise.
12595         * sunrpc/rpc_scan.c: Likewise.
12596         * sunrpc/rpc_scan.h: Likewise.
12597         * sunrpc/rpc_svcout.c: Likewise.
12598         * sunrpc/rpc_tblout.c: Likewise.
12599         * sunrpc/rpc_util.c: Likewise.
12600         * sunrpc/rpc_util.h: Likewise.
12601         * sunrpc/rpcinfo.c: Likewise.
12602         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
12603         * sunrpc/rpcsvc/key_prot.x: Likewise.
12604         * sunrpc/rpcsvc/klm_prot.x: Likewise.
12605         * sunrpc/rpcsvc/mount.x: Likewise.
12606         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
12607         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
12608         * sunrpc/rpcsvc/rex.x: Likewise.
12609         * sunrpc/rpcsvc/rstat.x: Likewise.
12610         * sunrpc/rpcsvc/rusers.x: Likewise.
12611         * sunrpc/rpcsvc/sm_inter.x: Likewise.
12612         * sunrpc/rpcsvc/spray.x: Likewise.
12613         * sunrpc/rpcsvc/yppasswd.x: Likewise.
12614         * sunrpc/rtime.c: Likewise.
12615         * sunrpc/svc.c: Likewise.
12616         * sunrpc/svc_auth.c: Likewise.
12617         * sunrpc/svc_authux.c: Likewise.
12618         * sunrpc/svc_raw.c: Likewise.
12619         * sunrpc/svc_run.c: Likewise.
12620         * sunrpc/svc_simple.c: Likewise.
12621         * sunrpc/svc_tcp.c: Likewise.
12622         * sunrpc/svc_udp.c: Likewise.
12623         * sunrpc/svc_unix.c: Likewise.
12624         * sunrpc/svcauth_des.c: Likewise.
12625         * sunrpc/xcrypt.c: Likewise.
12626         * sunrpc/xdr.c: Likewise.
12627         * sunrpc/xdr_array.c: Likewise.
12628         * sunrpc/xdr_float.c: Likewise.
12629         * sunrpc/xdr_mem.c: Likewise.
12630         * sunrpc/xdr_rec.c: Likewise.
12631         * sunrpc/xdr_ref.c: Likewise.
12632         * sunrpc/xdr_sizeof.c: Likewise.
12633         * sunrpc/xdr_stdio.c: Likewise.
12634
12635         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
12636         handling.
12637
12638 2010-08-19  Andreas Schwab  <schwab@redhat.com>
12639
12640         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
12641
12642 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
12643
12644         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
12645         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
12646         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
12647         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
12648         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
12649         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
12650         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
12651         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
12652         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
12653         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
12654         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
12655         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
12656         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
12657         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
12658
12659 2010-07-26  Anton Blanchard  <anton@samba.org>
12660
12661         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
12662         * malloc/arena.c (heap_trim): Likewise.
12663
12664 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
12665
12666         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
12667         here.  Not...
12668         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
12669         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
12670
12671 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
12672
12673         * sysdeps/i386/elf/Makefile: New file.
12674
12675 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12676
12677         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
12678         from fanotify_init.
12679         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
12680         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12681
12682 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
12683
12684         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
12685         of strncasecmp_l.
12686         * sysdeps/multiarch/strcmp.S: Likewise.
12687
12688 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
12689
12690         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12691         strncase_l-nonascii.
12692         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12693         Add strncase_l-ssse3.
12694         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
12695         * sysdeps/x86_64/strcmp.S: Likewise.
12696         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
12697         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
12698         * sysdeps/x86_64/strncase.S: New file.
12699         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
12700         * sysdeps/x86_64/strncase_l.S: New file.
12701         * string/Makefile (strop-tests): Add strncasecmp.
12702         * string/test-strncasecmp.c: New file.
12703
12704         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
12705         warning.
12706
12707         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
12708         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
12709
12710 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12711
12712         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
12713
12714 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
12715
12716         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
12717         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
12718         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
12719
12720 2010-05-01  Alan Modra  <amodra@gmail.com>
12721
12722         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
12723         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
12724         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
12725         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
12726         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
12727         tidying.  Don't tail-call __sigjmp_save for static lib.
12728         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
12729         save location.
12730         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
12731         (CALL_MCOUNT): Add eh info, and nop after bl.
12732         (TAIL_CALL_SYSCALL_ERROR): New macro.
12733         (PSEUDO_RET): Use it.
12734         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
12735         Correct save location of integer regs and cr.
12736         (_dl_profile_resolve): Correct cr save location.  Delete nops
12737         after bl when SHARED.  Reduce cfi size a little by better
12738         placement of cfi directives.
12739         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
12740         make a stack frame.  Instead use parm save area as a temp.
12741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
12742         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
12743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
12744         Don't make a stack frame for parent, use parm save area.
12745         Increase child stack frame to 112 bytes.  Don't save unused reg,
12746         and adjust reg usage.  Set up cfi on error recovery and
12747         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
12748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12749         (__makecontext): Add dummy nop after jump to exit.
12750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
12751         Use correct parm save area and cr save, reduce stack frame.
12752         Correct cfi for possible PSEUDO_RET frame setup.
12753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
12754         Branch to local label emitted by PSEUDO_RET rather than
12755         __syscall_error.
12756
12757 2010-08-12  Andreas Schwab  <schwab@redhat.com>
12758
12759         [BZ #11904]
12760         * locale/programs/locale.c (print_assignment): New function.
12761         (show_locale_vars): Use it.
12762
12763 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
12764
12765         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
12766         field.
12767         (struct statfs64): Likewise.
12768         (_STATFS_F_FLAGS): Define.
12769         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
12770         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12771         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
12772         (ST_VALID): Define locally.
12773         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
12774         __statvfs_getflags, use the provided value.
12775         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12776         __ASSUME_STATFS_F_FLAGS.
12777
12778         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
12779
12780         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
12781         Add sys/fanotify.h.
12782         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
12783         fanotify_mask for GLIBC_2.13.
12784         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
12785         fanotify_init and fanotify_mark.
12786         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12787         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
12788
12789         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
12790         Add prlimit.
12791         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
12792         prlimit64 for GLIBC_2.13.
12793         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
12794         prlimit64.
12795         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
12796         syscall.
12797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12798         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12799         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
12800         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
12801         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
12802         add prlimit alias.
12803         * sysdeps/unix/sysv/linux/prlimit.c: New file.
12804
12805         [BZ #11903]
12806         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
12807         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
12808
12809         * nss/Makefile: Add rules to build and run tst-nss-test1.
12810         * shlib-versions: Add entry for libnss_test1.
12811         * nss/nss_test1.c: New file.
12812         * nss/tst-nss-test1.c: New file.
12813
12814         * nss/nsswitch.c (__nss_database_custom): Define new variable.
12815         (__nss_configure_lookup): Set appropriate entry in
12816         __nss_configure_lookup to true.
12817         * nss/nsswitch.h: Define enum with indeces of databases in
12818         databases and __nss_database_custom arrays.  Declare
12819         __nss_database_custom.
12820         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
12821         to avoid using nscd when custom rules are installed.
12822         * nss/getXXbyYY_r.c: Likewise.
12823         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12824
12825         * nss/nss_files/files-parse.c: Whitespace fixes.
12826
12827 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
12828
12829         [BZ #11883]
12830         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
12831         * posix/fnmatch_loop.c: Likewise.
12832
12833 2010-07-17  Andi Kleen  <ak@linux.intel.com>
12834
12835         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
12836         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
12837         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
12838         * Versions.def [GLIBC_2.13]: Add.
12839
12840 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
12841
12842         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12843         Also fail if tpwd after pwuid call is NULL.
12844
12845 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12846
12847         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
12848         when converting to ms.
12849
12850 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12851
12852         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
12853         EOPNOTSUPP errors with ENOTTY.
12854         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
12855         EOPNOTSUPP errors with ENOTTY.
12856
12857 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
12858
12859         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12860         Add strcasecmp_l-ssse3.
12861         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
12862         strcasecmp.
12863         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
12864         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
12865         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
12866
12867 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
12868
12869         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
12870
12871         * string/Makefile (strop-tests): Add strcasecmp.
12872         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12873         strcasecmp_l-nonascii.
12874         (gen-as-const-headers): Add locale-defines.sym.
12875         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
12876         * sysdeps/x86_64/strcasecmp.S: New file.
12877         * sysdeps/x86_64/strcasecmp_l.S: New file.
12878         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
12879         * sysdeps/x86_64/locale-defines.sym: New file.
12880         * string/test-strcasecmp.c: New file.
12881
12882         * string/test-strcasestr.c: Test both ends of the range of characters.
12883         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
12884
12885 2010-07-29  Roland McGrath  <roland@redhat.com>
12886
12887         [BZ #11856]
12888         * manual/locale.texi (Yes-or-No Questions): Fix example code.
12889
12890 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
12891
12892         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
12893         for ld.so.
12894
12895 2010-07-27  Andreas Schwab  <schwab@redhat.com>
12896
12897         * manual/memory.texi (Malloc Tunable Parameters): Document
12898         M_PERTURB.
12899
12900 2010-07-26  Roland McGrath  <roland@redhat.com>
12901
12902         [BZ #11840]
12903         * configure.in (-fgnu89-inline check): Set and substitute
12904         gnu89_inline, not libc_cv_gnu89_inline.
12905         * configure: Regenerated.
12906         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
12907
12908 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
12909
12910         * string/test-strnlen.c: New file.
12911         * string/Makefile (strop-tests): Add strnlen.
12912         * string/tester.c (test_strnlen): Add a few more test cases.
12913         * string/tst-strlen.c: Better error reporting.
12914
12915         * sysdeps/x86_64/strnlen.S: New file.
12916
12917 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
12918
12919         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
12920         lower-latency instructions.
12921
12922 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
12923
12924         * string/test-strcasestr.c: New file.
12925         * string/test-strstr.c: New file.
12926         * string/Makefile (strop-tests): Add strstr and strcasestr.
12927         * string/str-two-way.h: Don't undefine MAX.
12928         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
12929
12930 2010-07-21  Andreas Schwab  <schwab@redhat.com>
12931
12932         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12933         strcasestr-nonascii.
12934         (CFLAGS-strcasestr-nonascii.c): Define.
12935         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
12936         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
12937         Remove unused attribute.
12938
12939 2010-07-20  Roland McGrath  <roland@redhat.com>
12940
12941         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
12942         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
12943         ld.so.cache was broken.  With it, there is no way to disable dsocaps
12944         like LD_HWCAP_MASK can disable hwcaps.
12945
12946 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12947
12948         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
12949
12950 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
12951
12952         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
12953         call in strcasestr.
12954         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
12955         __strcasestr_sse42_nonascii.
12956         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
12957         strcasestr-nonascii.c.
12958         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
12959
12960 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
12961
12962         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
12963         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
12964         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
12965         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
12966
12967 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
12968
12969         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
12970         fcntl.
12971
12972 2010-07-06  Andreas Schwab  <schwab@redhat.com>
12973
12974         [BZ #11577]
12975         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
12976         dl_signal_cerror.
12977
12978 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
12979
12980         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
12981         _PC_PIPE_BUF using F_GETPIPE_SZ.
12982
12983 2010-07-05  Roland McGrath  <roland@redhat.com>
12984
12985         * manual/arith.texi (Rounding Functions): Fix rint description
12986         implicit in round description.
12987
12988 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
12989
12990         * elf/Makefile: Fix linking for a few tests to make recent linker
12991         happy.
12992
12993 2010-06-30  Andreas Schwab  <schwab@redhat.com>
12994
12995         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12996         $(common-objpfx)libc_nonshared.a.
12997
12998 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
12999
13000         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
13001         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
13002         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13003         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13004         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
13005         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
13006         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13007         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
13009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
13010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
13011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
13013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
13015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
13016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
13017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
13018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
13020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
13022         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
13023         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
13024         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
13025         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
13026         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
13027         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
13028         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
13029         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
13030         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
13031         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
13032         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
13033         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
13034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
13035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
13036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
13037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
13038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
13039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
13040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
13041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
13042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
13043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
13044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
13045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
13046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
13047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
13048
13049 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13050
13051         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
13052         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
13053         * string/memmove.c (memmove): Renamed to ...
13054         (MEMMOVE): ...this.  Default to memmove.
13055         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
13056         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
13057         (END_CHK): Define.
13058         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13059         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
13060         mempcpy-ssse3-back memmove-ssse3-back.
13061         * sysdeps/x86_64/multiarch/bcopy.S: New file .
13062         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
13063         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
13064         * sysdeps/x86_64/multiarch/memcpy.S: New file.
13065         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
13066         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
13067         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
13068         * sysdeps/x86_64/multiarch/memmove.c: New file.
13069         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
13070         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
13071         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
13072         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
13073         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
13074         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
13075         Define.
13076         (index_Fast_Copy_Backward): Define.
13077         (HAS_ARCH_FEATURE): Define.
13078         (HAS_FAST_REP_STRING): Define.
13079         (HAS_FAST_COPY_BACKWARD): Define.
13080
13081 2010-06-21  Andreas Schwab  <schwab@redhat.com>
13082
13083         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13084         Restore proper fallback handling.
13085
13086 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
13087
13088         [BZ #11701]
13089         * posix/group_member.c (__group_member): Correct checking loop.
13090
13091         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
13092         OOM in getpwuid_r correctly.  Return error number when the caller
13093         should return, otherwise -1.
13094         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
13095         call returning > 0 value.
13096         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
13097
13098 2010-06-07  Andreas Schwab  <schwab@redhat.com>
13099
13100         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
13101         libc_nonshared.a from targets in modules-names.
13102
13103 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
13104
13105         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
13106         requires it.
13107
13108 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
13109
13110         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
13111         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
13112         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
13113         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
13114
13115 2010-06-02  Andreas Schwab  <schwab@redhat.com>
13116
13117         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
13118
13119 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
13120
13121         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
13122         and F_GETPIPE_SZ.
13123         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13124         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13125         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13126         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13127         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13128         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
13129
13130 2010-06-14  Roland McGrath  <roland@redhat.com>
13131
13132         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
13133
13134 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
13135
13136         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
13137         __REDIRECT followed by __THROW.
13138         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
13139         * posix/getopt.h (getopt): Likewise.
13140
13141 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13142
13143         * hurd/lookup-at.c (__file_name_lookup_at): Accept
13144         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
13145         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
13146         in AT_FLAGS.
13147         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
13148         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
13149
13150 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
13151
13152         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
13153
13154 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
13155
13156         [BZ #11640]
13157         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13158         Properly check family and model.
13159
13160 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
13161
13162         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
13163
13164 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
13165
13166         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
13167
13168 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
13169
13170         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
13171         symbol reference.
13172
13173 2010-05-19  Andreas Schwab  <schwab@redhat.com>
13174
13175         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
13176         symbol reference.
13177
13178 2010-05-21  Andreas Schwab  <schwab@redhat.com>
13179
13180         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
13181         and internal_recvmmsg.
13182         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
13183         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
13184         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
13185         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
13186
13187         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
13188         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
13189         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
13190
13191 2010-05-20  Andreas Schwab  <schwab@redhat.com>
13192
13193         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
13194
13195 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
13196
13197         POWER7 optimizations.
13198         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
13199         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
13200
13201 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
13202
13203         * version.h: Update for 2.13 development version.
13204
13205 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
13206
13207         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
13208         exceptions.  Return 0.
13209
13210 2010-05-07  Roland McGrath  <roland@redhat.com>
13211
13212         * elf/ldconfig.c (main): Add a const.
13213
13214 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
13215
13216         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
13217         (args_options): Add no-idn option.
13218         (ahosts_keys_int): Add idn_flags to ai_flags.
13219         (parse_option): Handle 'i' option to clear idn_flags.
13220
13221         * malloc/malloc.c (_int_free): Possible race in the most recently
13222         added check.  Only act on the data if no current modification
13223         happened.
13224
13225 See ChangeLog.17 for earlier changes.