Do not build manual in the source directory
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-04  Andreas Jaeger  <aj@suse.de>
2
3         [BZ #13750]
4         * manual/.gitignore: Remove, it's not needed anymore.
5         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6         all files in it.
7         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8         directory.
9         (texis): Renamed to $(objpfx)texis.
10         (texis-path): New, contains path to generated files.
11         (chapters.%): Use texis-path for complete path, add extra argument
12         libc-texinfo.sh.
13         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
15         (summary,texi, stamp-summary): Use complete path of
16         files. Generate files in build dir.
17         (dir-add.texi): Build in build dir.
18         (libm-err.texi,stamp-libm-err): Likewise.
19         (version.texi, stamp-version): Likewise.
20         (.%c.texi): Likewise.
21         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
22         (mostlyclean): Remove target.
23         (realclean): Remove target.
24         (generated): Add new variable with contents from mostlyclean and
25         realclean, remove entries duplicated in common-mostlyclean, add
26         stamp-libm-err and stamp-version.
27         (generated-dirs): Add libc directory.
28         ($(inst_infodir)/libc.info): Install files from build dir.
29
30 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31
32         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
33         long double comparison inaccuracies.
34         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
35         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36
37 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
38
39         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
40         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
41
42 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
43
44         [BZ #14049]
45         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
46         nonzero digits before rounding a hex value.
47         * stdlib/tst-strtod.c (tests): Add another test.
48
49 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50
51         * sysdeps/s390/fpu/libm-test-ulps: Update.
52
53 2012-05-03  Andreas Jaeger  <aj@suse.de>
54
55         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
56         does not get optimized out.
57         (malloc_opt_barrier): New.
58
59 2012-05-03  Andreas Jaeger  <aj@suse.de>
60             Roland McGrath <roland@hack.frob.com>
61
62         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63         intermediate file deletion.
64         (generated): Add .symlist files.
65
66 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
67
68         [BZ #13775]
69         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
70         Redirect under this condition.
71         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
72         [__USE_GNU] (__dprintf_chk): Not under this condition.
73         [__USE_GNU] (__vdprintf_chk): Likewise.
74         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
75         under this condition.
76         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77         [__USE_XOPEN2K8] (dprintf): Define under this condition.
78         [__USE_XOPEN2K8] (vdprintf): Likewise.
79         [__USE_GNU] (__dprintf_chk): Not under this condition.
80         [__USE_GNU] (__vdprintf_chk): Likewise.
81         [__USE_GNU] (dprintf): Likewise.
82         [__USE_GNU] (vdprintf): Likewise.
83
84 2012-05-03  Roland McGrath  <roland@hack.frob.com>
85
86         * elf/Makefile (common-generated): Set this instead of generated for
87         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
88         $(all-built-dso)-derived lists.
89
90 2012-05-03  Andreas Jaeger  <aj@suse.de>
91
92         * sysdeps/i386/fpu/libm-test-ulps: Update.
93
94         * FAQ: Removed.
95         * FAQ.in: Likewise.
96         * scripts/gen-FAQ.pl: Likewise.
97         * manual/install.texi (Installation): Point to online location of
98         FAQ.
99         * Makefile (files-for-dist): Remove FAQ.
100         (FAQ): Remove.
101
102 2012-05-02  Allan McRae  <allan@archlinux.org>
103
104         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
105         (LDFLAGS-reldepmod5.so): Likewise.
106         (LDFLAGS-reldep6mod1.so): Likewise.
107         (LDFLAGS-reldep6mod4.so): Likewise.
108         (LDFLAGS-reldep8mod3.so): Likewise.
109         (LDFLAGS-unload4mod1.so): Likewise.
110         (LDFLAGS-unload4mod2.so): Likewise.
111         (LDFLAGS-tst-initorder): Likewise.
112         (LDFLAGS-tst-initordera2.so): Likewise.
113         (LDFLAGS-tst-initordera3.so): Likewise.
114         (LDFLAGS-tst-initordera4.so): Likewise.
115         (LDFLAGS-tst-initorderb2.so): Likewise.
116         (LDFLAGS-noload): Likewise.
117         (LDFLAGS-next): Likewise.
118         (LDFLAGS-order2mod1.so): Likewise.
119         (LDFLAGS-order2mod2.so): Likewise.
120         (LDFLAGS-tst-initorder2): Likewise.
121         (LDFLAGS-tst-initorder2a.so): Likewise.
122         (LDFLAGS-tst-initorder2b.so): Likewise.
123         (LDFLAGS-tst-initorder2c.so): Likewise.
124         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
125
126 2012-05-02  David S. Miller  <davem@davemloft.net>
127
128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
129
130 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
131
132         [BZ #14055]
133         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
134
135 2012-05-02  Andreas Jaeger  <aj@suse.de>
136
137         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
138         since we manipulate rounding mode.
139         (CPPFLAGS-test-idouble.c): Likewise.
140         (CPPFLAGS-test-ifloat.c): Likewise.
141         (CFLAGS-test-ldouble.c): Likewise.
142         (CFLAGS-test-double.c): Likewise.
143         (CFLAGS-test-float.c): Likewise.
144         (CFLAGS-test-misc.c): Likewise.
145         (CFLAGS-test-test-fenv.c): Likewise.
146
147 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
148
149         [BZ #2550]
150         [BZ #2570]
151         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
152         comparisons to determine direction to adjust input.
153
154 2012-05-01  Roland McGrath  <roland@hack.frob.com>
155
156         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
157         output to the target.
158
159         * scripts/localplt.awk: New file.
160         * elf/Makefile ($(objpfx)check-localplt): Target removed.
161         (check-localplt-CFLAGS): Variable removed.
162         ($(all-built-dso:=.jmprel)): New static pattern rule.
163         (generated): Add those targets.
164         (localplt-built-dso): New variable.
165         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
166
167         * elf/check-localplt.c: File removed.
168
169         * scripts/check-execstack.awk: New file.
170         * elf/Makefile ($(objpfx)check-execstack): Target removed.
171         (check-execstack-CFLAGS): Variable removed.
172         ($(objpfx)check-execstack.h): Target removed.
173         ($(objpfx)execstack-default): New target.
174         (generated): Add that instead of check-execstack.h.
175         ($(all-built-dso:=.phdr)): New static pattern rule.
176         (generated): Add those targets.
177         * elf/check-execstack.c: File removed.
178
179         * scripts/check-textrel.awk: New file.
180         * elf/Makefile ($(objpfx)check-textrel): Target removed.
181         (check-textrel-CFLAGS): Variable removed.
182         (all-built-dso): Use := to define.o
183         ($(all-built-dso:=.dyn)): New static pattern rule.
184         (generated): Add those targets.
185         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
186         * config.make.in (READELF): New substituted variable.
187         * elf/check-textrel.c: File removed.
188
189 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
190
191         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
192         allow.
193         * conform/data/ctype.h-data [C99-based standards] (isblank):
194         Expect function.
195         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
196         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
197         [ISO || ISO99 || ISO11] (*_t): Do not allow.
198         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
199         Specify type.  Require positive value.
200         (EILSEQ): Likewise.
201         (ERANGE): Likewise.
202         [ISO || POSIX] (EILSEQ): Do not expect.
203         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
204         Specify type.  Require positive value.
205         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
206         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
207         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
208         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
209         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
210         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
211         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
212         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
213         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
214         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
215         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
216         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
217         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
218         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
219         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
220         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
221         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
222         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
223         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
224         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
225         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
226         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
227         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
228         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
229         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
230         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
231         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
232         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
233         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
234         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
235         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
236         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
237         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
238         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
239         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
240         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
241         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
242         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
243         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
244         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
245         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
246         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
247         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
248         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
249         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
250         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
251         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
252         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
253         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
254         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
255         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
256         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
257         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
258         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
259         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
260         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
261         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
262         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
263         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
264         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
265         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
266         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
267         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
268         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
269         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
270         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
271         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
272         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
273         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
274         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
275         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
276         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
277         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
278         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
279         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
280         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
281         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
282         Require >= 2.
283         (FLT_ROUNDS): Expect as macro, not constant.
284         (FLT_MANT_DIG): Use macro-int-constant.
285         (DBL_MANT_DIG): Likewise.
286         (LDBL_MANT_DIG): Likewise.
287         (FLT_DIG): Likewise.
288         (DBL_DIG): Likewise.
289         (LDBL_DIG): Likewise.
290         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
291         (DBL_MIN_EXP): Likewise.
292         (LDBL_MIN_EXP): Likewise.
293         (FLT_MAX_EXP): Use macro-int-constant.
294         (DBL_MAX_EXP): Likewise.
295         (LDBL_MAX_EXP): Likewise.
296         (FLT_MAX_10_EXP): Likewise.
297         (DBL_MAX_10_EXP): Likewise.
298         (LDBL_MAX_10_EXP): Likewise.
299         (FLT_MAX): Use macro-constant.
300         (DBL_MAX): Likewise.
301         (LDBL_MAX): Likewise.
302         (FLT_EPSILON): Use macro-constant.  Give upper bound.
303         (DBL_EPSILON): Likewise.
304         (LDBL_EPSILON): Likewise.
305         (FLT_MIN): Likewise.
306         (DBL_MIN): Likewise.
307         (LDBL_MIN): Likewise.
308         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
309         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
310         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
311         [ISO11] (FLT_HAS_SUBNORM): Likewise.
312         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
313         [ISO11] (DBL_DECIMAL_DIG): Likewise.
314         [ISO11] (FLT_DECIMAL_DIG): Likewise.
315         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
316         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
317         [ISO11] (FLT_TRUE_MIN): Likewise.
318         [ISO11] (LDBL_TRUE_MIN): Likewise.
319         [ISO || ISO99 || ISO11] (*_t): Do not allow.
320         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
321         (SCHAR_MIN): Use macro-int-constant.  Specify type.
322         (SCHAR_MAX): Likewise.
323         (UCHAR_MAX): Likewise.
324         (CHAR_MIN): Likewise.
325         (CHAR_MAX): Likewise.
326         (MB_LEN_MAX): Use macro-int-constant.
327         (SHRT_MIN): Use macro-int-constant.  Specify type.
328         (SHRT_MAX): Likewise.
329         (USHRT_MAX): Likewise.
330         (INT_MAX): Likewise.
331         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
332         bound negative.
333         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
334         bound with "U".
335         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
336         bound with "L".
337         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
338         bound negative.  Suffix upper bound with "L".
339         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
340         bound with "UL".
341         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
342         Specify type.
343         [C99-based standards] (LLONG_MAX): Likewise.
344         [C99-based standards] (ULLONG_MAX): Likewise.
345         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
346         == 0.
347         [ISO11] (max_align_t): Require type.
348         [ISO || ISO99 || ISO11] (*_t): Do not allow.
349
350         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
351         from $CFLAGS, without defining away __attribute__ calls.
352         (checknamespace): Use $CFLAGS_namespace.
353
354         * conform/conformtest.pl (@keywords): Only include C99 keywords
355         for standards based on C99 or C11.
356
357         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
358         Disable tests.
359         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
360         UNIX98]: Likewise.
361
362         * conform/conformtest.pl: Handle "macro-int-constant" and test for
363         usability of symbols in #if.
364
365         * conform/conformtest.pl: If macro or constant types start
366         "promoted:", expect the symbol to be of the following type
367         promoted by the integer promotions.
368
369         * conform/conformtest.pl: Parse all "constant" and "macro" lines
370         in one place.  Also handle "macro-constant".
371
372         * conform/conformtest.pl: Only accept expected macro values with
373         "==".  Parse all "macro" lines in one place.
374         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
375
376         * conform/conformtest.pl: Handle braced types on "constant" lines
377         instead of handling "typed-constant".
378         * conform/data/signal.h-data: Use "constant" instead of
379         "typed-constant".
380
381         * conform/conformtest.pl: Handle "optional-" at start of lines in
382         one place rather than duplicating several cases.  Handle each
383         format of "macro" line with initial "optional-".
384
385         * conform/conformtest.pl: Only accept expected constant or
386         optional-constant values with "==".  Parse all "constant" lines in
387         one place.  Parse all "optional-constant" lines in one place.
388         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
389         * conform/data/fmtmsg.h-data: Likewise.
390         * conform/data/netinet/in.h-data: Likewise.
391         * conform/data/tar.h-data: Likewise.
392         * conform/data/limits.h-data: Use "==" form on "constant" and
393         "optional-constant" lines.
394
395         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
396         Use -std=c99 for XOPEN2K.
397         (@knownproblems): Remove.
398         (newtoken): Don't check %isknown.
399
400         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
401         Do not expect macro.
402         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
403         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
404         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
405         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
406         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
407         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
408         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
409         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
410         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
411         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
412         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
413         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
414         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
415         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
416         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
417         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
418         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
419         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
420         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
421         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
422         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
423         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
424         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
425         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
426         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
427         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
428         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
429         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
430         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
431         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
432         [XPG3] (acosh): Likewise.
433         [XPG3] (asinh): Likewise.
434         [XPG3] (atanh): Likewise.
435         [XPG3] (cbrt): Likewise.
436         [XPG3] (expm1): Likewise.
437         [XPG3] (ilogb): Likewise.
438         [XPG3] (log1p): Likewise.
439         [XPG3] (logb): Likewise.
440         [XPG3] (nextafter): Likewise.
441         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
442         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
443         [XPG3] (remainder): Likewise.
444         [XPG3] (rint): Likewise.
445         [XPG3 || XPG4 || UNIX98] (round): Likewise.
446         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
447         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
448         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
449         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
450         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
451         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
452         [UNIX98 || XOPEN2K] (scalb): Expect.
453         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
454         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
455         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
456         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
457         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
458         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
459         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
460         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
461         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
462         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
463         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
464         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
465         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
466         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
467         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
468         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
469         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
470         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
471         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
472         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
473         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
474         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
475         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
476         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
477         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
478         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
479         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
480         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
481         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
482         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
483         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
484         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
485         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
486         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
487         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
488         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
489         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
490         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
491         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
492         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
493         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
494         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
495         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
496         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
497         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
498         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
499         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
500         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
501         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
502         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
503         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
504         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
505         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
506         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
507         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
508         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
509         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
510         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
511         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
512         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
513         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
514         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
515         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
516         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
517         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
518         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
519         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
520         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
521         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
522         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
523         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
524         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
525         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
526         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
527         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
528         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
529         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
530         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
531         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
532         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
533         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
534         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
535         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
536         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
537         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
538         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
539         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
540         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
541         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
542         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
543         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
544         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
545         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
546         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
547         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
548         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
549         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
550         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
551         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
552         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
553         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
554         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
555         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
556         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
557         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
558         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
559         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
560         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
561         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
562         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
563         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
564         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
565         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
566         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
567         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
568         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
569         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
570         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
571         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
572         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
573         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
574         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
575         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
576         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
577         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
578         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
579         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
580         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
581         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
582         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
583         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
584         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
585         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
586         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
587         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
588         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
589         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
590
591         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
592         _XOPEN_SOURCE_EXTENDED for XPG4.
593
594         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
595
596         * Makeconfig (localtime): Remove variable.
597         (inst_localtime-file): Likewise.
598
599 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
600
601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
602         Update.
603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
604         Update.
605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
606         Update.
607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
608         Update.
609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
610         Update.
611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
612         Update.
613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
614         Update.
615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
616         Update.
617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
618         Update.
619
620 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
621
622         [BZ #2550]
623         [BZ #2570]
624         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
625         comparisons to determine direction to adjust input.
626         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
627         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
628         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
629         Likewise.
630         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
631         Likewise.
632         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
633         Likewise.
634         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
635         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
636         Likewise.
637         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
638         Likewise.
639         * math/libm-test.inc (nexttoward_test): Add more tests.
640
641 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
642
643         [BZ #14040]
644         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
645         in version GLIBC_2.1, not GLIBC_2.0.
646         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
647         Likewise.
648
649 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
650
651         [BZ #13942]
652         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
653         (1 - x) * (1 + x).
654         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
655         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
656         * math/libm-test.inc (acos_test): Add more tests.
657         (asin_test): Likewise.
658         * sysdeps/i386/fpu/libm-test-ulps: Update.
659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
660
661         [BZ #14034]
662         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
663         of square root.
664         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
665         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
666         * math/libm-test.inc (acos_test_tonearest): New function.
667         (acos_test_towardzero): Likewise.
668         (acos_test_downward): Likewise.
669         (acos_test_upward): Likewise.
670         (asin_test_tonearest): Likewise.
671         (asin_test_towardzero): Likewise.
672         (asin_test_downward): Likewise.
673         (asin_test_upward): Likewise.
674         (main): Call the new functions.
675         * sysdeps/i386/fpu/libm-test-ulps: Update.
676         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
677
678         [BZ #13884]
679         [BZ #13924]
680         * math/e_exp10.c: Include <float.h>.
681         (__ieee754_exp10): Handle underflow here rather than multiplying
682         large negative argument by M_LN10.
683         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
684         of __ieee754_expf.
685         * math/e_exp10l.c: Include <float.h>.
686         (__ieee754_exp10l): Handle underflow here rather than multiplying
687         large negative argument by M_LN10l.
688         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
689         spurious overflow exception on underflow.
690
691 2012-04-29  Marek Polacek  <polacek@redhat.com>
692
693         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
694         (__fortify_function): New macro.
695         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
696         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
697         __extern_always_inline.
698         * libio/bits/stdio2.h: Likewise.
699         * libio/bits/stdio.h: Likewise.
700         * string/string.h: Likewise.
701         * string/bits/string3.h: Likewise.
702         * include/stdio.h: Likewise.
703         * stdlib/bits/stdlib.h: Likewise.
704         * stdlib/stdlib.h: Likewise.
705         * rt/bits/mqueue2.h: Likewise.
706         * rt/mqueue.h: Likewise.
707         * posix/bits/unistd.h: Likewise.
708         * posix/unistd.h: Likewise.
709         * io/bits/poll2.h: Likewise.
710         * io/bits/fcntl2.h: Likewise.
711         * io/fcntl.h: Likewise.
712         * io/sys/poll.h: Likewise.
713         * misc/bits/syslog.h: Likewise.
714         * misc/bits/syslog-ldbl.h: Likewise.
715         * misc/sys/syslog.h: Likewise.
716         * socket/bits/socket2.h: Likewise.
717         * socket/sys/socket.h: Likewise.
718         * debug/tst-chk1.c: Likewise.
719         * wcsmbs/bits/wchar2.h: Likewise.
720         * wcsmbs/bits/wchar-ldbl.h: Likewise.
721         * wcsmbs/wchar.h: Likewise.
722
723 2012-04-29  Andreas Jaeger  <aj@suse.de>
724
725         * Makerules (tests): Remove enable-check-abi protection.
726         (check-abi-warn): Remove.
727         (check-abi-%): Remove check-abi-warn usage.
728
729         * configure.in: Remove check-abi configure option.
730         * configure: Regenerated.
731         * config.make.in (enable-check-abi): Remove.
732
733 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
734
735         [BZ #14033]
736         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
737         double functions to double *_finite functions.
738
739         [BZ #13941]
740         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
741         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
742         LDBL_MIN_EXP.
743         * stdio-common/Makefile (tests): Add tst-sprintf3.
744         * stdio-common/tst-sprintf3.c: New file.
745
746         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
747         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
748
749 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
750
751         * conform/conformtest.pl: Remove duplicate typed-constant
752         handling.
753
754 2012-04-28  David S. Miller  <davem@davemloft.net>
755
756         * Makerules (%.abilist): Add vpath on sysdep_dirs.
757         (check-abi-%): Remove AWK script prerequisite and explicit
758         abilist directory.
759         (check-abi): Rewrite to just diff the symlist with the abilist.
760         (config-tls, config-abi-config): Delete, no longer used.
761         (update-abi-%): Remove AWK script and explicit abilist directory.
762         (update-abi): Rewrite to simply compare and conditionally copy the
763         symlist and the sysdep abilist file.  Remove update-abi-config
764         checks.
765         * abilist/ld.abilist: Remove.
766         * abilist/libBrokenLocale.abilist: Remove.
767         * abilist/libanl.abilist: Remove.
768         * abilist/libcrypt.abilist: Remove.
769         * abilist/libdl.abilist: Remove.
770         * abilist/librt.abilist: Remove.
771         * abilist/libthread_db.abilist: Remove.
772         * abilist/libutil.abilist: Remove.
773         * scripts/extract-abilist.awk: Remove.
774         * scripts/merge-abilist.awk: Remove.
775         * sysdeps/generic/libcidn.abilist: New file.
776         * sysdeps/generic/libnss_compat.abilist: New file.
777         * sysdeps/generic/libnss_db.abilist: New file.
778         * sysdeps/generic/libnss_dns.abilist: New file.
779         * sysdeps/generic/libnss_files.abilist: New file.
780         * sysdeps/generic/libnss_hesiod.abilist: New file.
781         * sysdeps/generic/libnss_nis.abilist: New file.
782         * sysdeps/generic/libnss_nisplus.abilist: New file.
783         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
784         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
785         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
786         file.
787         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
788         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
789         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
790         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
791         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
792         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
793         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
794         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
795         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
796         file.
797         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
798         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
799         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
800         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
801         file.
802         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
803         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
804         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
805         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
806         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
807         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
808         file.
809         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
810         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
811         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
812         file.
813         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
814         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
815         New file.
816         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
817         New file.
818         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
819         New file.
820         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
821         New file.
822         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
823         New file.
824         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
825         New file.
826         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
827         New file.
828         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
829         New file.
830         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
831         New file.
832         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
833         New file.
834         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
835         New file.
836         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
837         New file.
838         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
839         New file.
840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
841         file.
842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
843         New file.
844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
845         New file.
846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
847         file.
848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
849         New file.
850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
851         New file.
852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
853         file.
854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
855         New file.
856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
857         New file.
858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
859         New file.
860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
861         New file.
862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
863         New file.
864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
865         New file.
866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
867         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
868         file.
869         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
870         New file.
871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
872         file.
873         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
874         file.
875         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
876         file.
877         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
878         file.
879         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
880         file.
881         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
882         New file.
883         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
884         file.
885         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
886         file.
887         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
888         New file.
889         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
890         file.
891         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
892         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
893         file.
894         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
895         New file.
896         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
897         file.
898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
899         file.
900         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
901         file.
902         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
903         file.
904         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
905         file.
906         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
907         New file.
908         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
909         file.
910         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
911         file.
912         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
913         New file.
914         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
915         file.
916         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
917         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
918         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
919         file.
920         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
921         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
922         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
923         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
924         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
925         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
926         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
927         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
928         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
929         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
930         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
931         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
932         file.
933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
934         New file.
935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
936         file.
937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
938         file.
939         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
940         file.
941         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
942         file.
943         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
944         file.
945         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
946         New file.
947         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
948         New file.
949         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
950         file.
951         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
952         New file.
953         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
954         file.
955         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
956         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
957         file.
958         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
959         New file.
960         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
961         file.
962         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
963         file.
964         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
965         file.
966         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
967         file.
968         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
969         file.
970         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
971         New file.
972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
973         New file.
974         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
975         file.
976         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
977         New file.
978         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
979         file.
980
981 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
982
983         * conform/conformtest.pl: Fix typo in handling typed-constant from
984         allow-header.
985
986 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
987
988         * README: Cut down references to pre-2.6 Linux kernels and
989         Linuxthreads.  Update lists of configurations in libc and ports
990         and sort alphabetically.  Say "or newer" with Linux kernel version
991         requirements.
992
993         * config.h.in [IS_IN_build]: Allow compiling without optimization.
994
995 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
996
997         [BZ #887]
998         * math/libm-test.inc (logb_test_downward): New test to expose
999         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
1000         rounding mode.
1001
1002 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1003
1004         [BZ #14027]
1005         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
1006         to be done.
1007         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
1008         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
1009
1010 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
1011
1012         * sysdeps/unix/i386/brk.S: Remove file.
1013         * sysdeps/unix/i386/dl-brk.S: Likewise.
1014         * sysdeps/unix/i386/pipe.S: Likewise.
1015         * sysdeps/unix/i386/sigreturn.S: Likewise.
1016         * sysdeps/unix/i386/syscall.S: Likewise.
1017         * sysdeps/unix/i386/vfork.S: Likewise.
1018         * sysdeps/unix/i386/wait.S: Likewise.
1019
1020         * sysdeps/unix/common/tcsendbrk.c: Move to ...
1021         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
1022
1023         * configure.in (arm*-none*): Do not allow without
1024         --enable-hacker-mode.
1025         (netbsd*): Remove case setting base_os.
1026         (386bsd*): Likewise.
1027         (freebsd*): Likewise.
1028         (bsdi*): Likewise.
1029         (osf*): Likewise.
1030         (sunos*): Likewise.
1031         (ultrix*): Likewise.
1032         (newsos*): Likewise.
1033         (dynix*): Likewise.
1034         (*bsd*): Likewise.
1035         (sysv*): Likewise.
1036         (isc*): Likewise.
1037         (esix*): Likewise.
1038         (sco*): Likewise.
1039         (minix*): Likewise.
1040         (irix4*): Likewise.
1041         (irix6*): Likewise.
1042         (solaris[2-9]*): Likewise.
1043         (none): Likewise.
1044         * configure: Regenerated.
1045
1046 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1047
1048         [BZ #11521]
1049         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
1050         overflow or cancellation in calculating denominator.
1051         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
1052         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
1053         down expression to avoid unexpected rounding in newer GCCs.
1054         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
1055
1056 2012-04-26  David S. Miller  <davem@davemloft.net>
1057
1058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
1059         long-double compat symbols.
1060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
1064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1065         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
1066         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
1067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
1068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
1069         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
1070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
1071         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
1072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
1073
1074 2012-04-25  David S. Miller  <davem@davemloft.net>
1075
1076         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
1077         HWCAP_* values only after the memory barriers have been defined.
1078         (atomic_full_barrier): Define.
1079         (atomic_read_barrier): Define.
1080         (atomic_write_barrier): Define.
1081
1082 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1083
1084         * shlib-versions: Add libgcc_s version information.
1085         * sysdeps/generic/libgcc_s.h: Remove.
1086         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
1087         libgcc_s.h.
1088         * sysdeps/gnu/unwind-resume.c: Likewise.
1089         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
1090
1091 2012-04-25  David S. Miller  <davem@davemloft.net>
1092
1093         * sysdeps/unix/sparc/brk.S: Delete.
1094         * sysdeps/unix/sparc/dl-brk.S: Delete.
1095         * sysdeps/unix/sparc/pipe.S: Delete.
1096         * sysdeps/unix/sparc/sysdep.S: Delete.
1097         * sysdeps/unix/sparc/sysdep.h: Delete.
1098         * sysdeps/unix/sparc/vfork.S: Delete.
1099         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
1100         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
1101         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
1102         ret_ERRVAL, r0, r1, MOVE): Define.
1103         (JUMPTARGET): Remove.
1104         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
1105         sysdeps/unix/sparc/sysdep.h
1106         (ENTRY, END): Remove.
1107         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1108
1109 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
1110
1111         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
1112         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
1113         -DIS_IN_build.
1114
1115         * timezone/README: Update upstream location and email address for
1116         tzcode and tzdata.
1117         * timezone/zdump.c: Update from tzcode 2012b.
1118         * timezone/zic.c: Likewise.
1119
1120         * configure.in (libc_cv_as_needed): Remove test.
1121         * configure: Regenerated.
1122         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
1123         conditional definition.
1124         [$(have-as-needed) != yes] (no-as-needed): Likewise.
1125         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
1126         * config.make.in (have-as-needed): Remove variable.
1127
1128 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1129             Paul Pluzhnikov  <ppluzhnikov@google.com>
1130
1131         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
1132         strings correctly.
1133
1134 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
1135
1136         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
1137         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
1138         * sysdeps/sh/strlen.S: Likewise.
1139
1140 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1141
1142         * sysdeps/unix/fork.S: Remove file.
1143         * sysdeps/unix/i386/fork.S: Likewise.
1144         * sysdeps/unix/sparc/fork.S: Likewise.
1145
1146         * sysdeps/unix/system.c: Remove file.
1147         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
1148
1149         * sysdeps/unix/getegid.S: Remove file.
1150         * sysdeps/unix/geteuid.S: Likewise.
1151
1152 2012-04-24  Roland McGrath  <roland@hack.frob.com>
1153
1154         * scripts/check-localplt.awk: New file.
1155         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
1156         of diff.
1157         * scripts/data/localplt-generic.data: Add a comment.
1158
1159         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
1160         NODE when __dir_mkfile failed.
1161         * sysdeps/mach/hurd/symlinkat.c: Likewise.
1162         Reported by Ludovic Courtès <ludo@gnu.org>.
1163
1164 2012-04-24  Andreas Jaeger  <aj@suse.de>
1165
1166         * Makerules (common-clean): Also remove gen-as-const-headers
1167         files.
1168
1169 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * Makerules (native-compile): Do not change working directory for
1172         build.  Use $(OUTPUT_OPTION) in command.
1173         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
1174
1175 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1176
1177         [BZ #13886]
1178         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
1179         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
1180         * math/libm-test.inc (floor_test): Add more tests.
1181         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
1182
1183 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1184
1185         * sysdeps/unix/getdents.c: Remove file.
1186         * sysdeps/unix/sysv/getdents.c: Likewise.
1187         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
1188
1189         * sysdeps/unix/syscalls.list (madvise): Add syscall from
1190         sysdeps/unix/mman/syscalls.list.
1191         (mmap): Likewise.
1192         (mprotect): Likewise.
1193         (msync): Likewise.
1194         (munmap): Likewise.
1195         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
1196         * sysdeps/unix/mman/syscalls.list: Remove.
1197         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
1198
1199         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
1200         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
1201         * configure: Regenerated.
1202         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
1203         $(libgcc_s_suffix).
1204         * config.make.in (libgcc_s_suffix): Remove variable.
1205
1206 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
1207
1208         * sysdeps/unix/sysv/gethostname.c: Move to ...
1209         * sysdeps/posix/gethostname.c: ... here.
1210
1211         * sysdeps/unix/execve.S: Remove file.
1212
1213         * sysdeps/unix/_exit.S: Remove file.
1214
1215 2012-04-23  Andreas Jaeger  <aj@suse.de>
1216
1217         [BZ #13739]
1218         * manual/Makefile: Remove make dist support, there's no
1219         need for a stand-alone documentation tar ball.
1220         (TEXI2DVI): Define always, it's not in Makeconfig.
1221         (dist): Removed.
1222         (tar-it): Removed.
1223         (edition): Removed.
1224         (glibc-doc-$(edition).tar): Removed
1225         (%.Z): Removed.
1226         (%.gz): Removed.
1227         (%.uu): Removed.
1228         (ETAGS): Remove, it's in Makeconfig.
1229         (move-if-change): Remove, it's in Makeconfig.
1230
1231 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1232
1233         [BZ #13970]
1234         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
1235         (strtod, strtof, strtold, strtol, strtoul, strtoq)
1236         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
1237         (strtod_l, strtof_l, strtold_l): Remove __wur.
1238         It is not necessarily an error to ignore strtol's return value.
1239         One can reliably look at the stored endptr to decide whether
1240         the number had valid syntax.
1241
1242 2012-04-21  Andreas Jaeger  <aj@suse.de>
1243
1244         [BZ #13739]
1245         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
1246
1247 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
1248
1249         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
1250         * sysdeps/unix/sysv/Versions: Remove file.
1251
1252 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1253
1254         [BZ #13927]
1255         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1256
1257 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
1258
1259         [BZ #7064]
1260         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
1261         version from __vm86.
1262
1263 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
1264
1265         * sysdeps/unix/common/lxstat.c: Remove file.
1266         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
1267
1268         * sysdeps/unix/sysv/Makefile: Remove file.
1269
1270         * sysdeps/unix/sysv/direct.h: Remove file.
1271
1272         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
1273         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
1274         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
1275         * sysdeps/unix/sysv/bits/signum.h: Likewise.
1276         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1277         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
1278         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
1279
1280         * sysdeps/unix/sysv/setrlimit.c: Remove file.
1281
1282         * sysdeps/unix/xmknod.c: Remove file.
1283         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
1284
1285         * sysdeps/unix/sysv/settimeofday.c: Remove file.
1286
1287         * sysdeps/unix/sysv/i386/time.S: Remove file.
1288
1289         * sysdeps/unix/fxstat.c: Remove file.
1290         * sysdeps/unix/xstat.c: Likewise.
1291         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
1292
1293         * sysdeps/unix/sysv/sigaction.c: Remove file.
1294
1295         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
1296         (sysdep_headers): Remove variable.
1297         [termio.h not in sysdep_headers] (generated): Likewise.
1298         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
1299         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
1300         * sysdeps/unix/sysv/tcdrain.c: Likewise.
1301         * sysdeps/unix/sysv/tcflow.c: Likewise.
1302         * sysdeps/unix/sysv/tcflush.c: Likewise.
1303         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
1304         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
1305         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
1306         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
1307         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
1308
1309         * sysdeps/unix/siglist.c: Remove file.
1310
1311         * sysdeps/unix/getppid.S: Remove file.
1312
1313         * sysdeps/unix/mkdir.c: Remove file.
1314         * sysdeps/unix/rmdir.c: Likewise.
1315
1316 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1317
1318         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
1319         ERR_MAX value.
1320         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
1321         errlist-compat value.
1322
1323 2012-04-18  David S. Miller  <davem@davemloft.net>
1324
1325         * sysdeps/generic/memcopy.h (reg_char): Delete.
1326         * debug/strcat_chk.c: Use char, not reg_char.
1327         * debug/strcpy_chk.c: Likewise.
1328         * debug/strncat_chk.c: Likewise.
1329         * debug/strncpy_chk.c: Likewise.
1330         * string/memchr.c: Likewise.
1331         * string/memrchr.c: Likewise.
1332         * string/rawmemchr.c: Likewise.
1333         * string/strcat.c: Likewise.
1334         * string/strchr.c: Likewise.
1335         * string/strchrnul.c: Likewise.
1336         * string/strcmp.c: Likewise.
1337         * string/strcpy.c: Likewise.
1338         * string/strncat.c: Likewise.
1339         * string/strncmp.c: Likewise.
1340         * string/strncpy.c: Likewise.
1341
1342 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1343
1344         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
1345         __builtin_memcopy is called when src and dest ranges are known to not
1346         overlap.
1347
1348 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1349
1350         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
1351         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
1352         fwd_align_merge macro call.
1353         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
1354         bwd_align_merge macro call.
1355         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1356
1357 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1358
1359         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
1360         bwd_align_merge macros.
1361         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
1362         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
1363         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1364
1365 2012-04-18  David S. Miller  <davem@davemloft.net>
1366
1367         * sysdeps/sparc/sparc64/memcopy.h: Delete.
1368
1369 2012-04-18  Andreas Jaeger  <aj@suse.de>
1370
1371         [BZ# 6794]
1372         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
1373         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
1374         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1375
1376         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
1377         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
1378         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1379
1380         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
1381         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
1382         Adjust for changed ldbl-128 files.
1383
1384         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
1385         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
1386         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1387
1388 2012-04-17  David S. Miller  <davem@davemloft.net>
1389
1390         * sysdeps/sparc/sparc32/memcopy.h: Delete.
1391
1392 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
1393
1394         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
1395         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
1396         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
1397         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
1398         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
1399         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
1400
1401 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1402
1403         [BZ #6794]
1404         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
1405         * math/libm-test.inc: Add ilogb errno and exception tests.
1406         * math/w_ilogb.c: New file: ilogb wrapper.
1407         * math/w_ilogbf.c: New file: ilogbf wrapper.
1408         * math/w_ilogbl.c: New file: ilogbl wrapper.
1409         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
1410         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
1411         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
1412         exception being thrown with 0.0 as argument.
1413         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
1414         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
1415         exception being thrown with 0.0 as argument.
1416         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
1417         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1418         exception being thrown with 0.0 as argument.
1419         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
1420         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1421         exception being thrown with 0.0 as argument.
1422         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
1423         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
1424         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
1425         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
1426         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
1427         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
1428         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
1429         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
1430         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
1431
1432 2012-04-17  Petr Baudis  <pasky@ucw.cz>
1433
1434         * include/sys/uio.h: Change __vector to __iovec to avoid clash
1435         with altivec.
1436
1437 2012-04-16  Marek Polacek  <polacek@redhat.com>
1438
1439         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
1440
1441 2012-04-16  Marek Polacek  <polacek@redhat.com>
1442
1443         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
1444         operands of fdivp instruction.
1445
1446 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1447
1448         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
1449         * elf/tst-auditmod3b.c: Likewise.
1450         * elf/tst-auditmod4b.c: Likewise.
1451         * elf/tst-auditmod5b.c: Likewise.
1452         * elf/tst-auditmod6b.c: Likewise.
1453         * elf/tst-auditmod6c.c: Likewise.
1454         * elf/tst-auditmod7b.c: Likewise.
1455         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
1456         * sysdeps/x86_64/preconfigure.in: Likewise.
1457         * sysdeps/x86_64/preconfigure: Regenerated.
1458
1459 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1460
1461         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
1462         __ILP32__.
1463
1464 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
1465
1466         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1467         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
1468
1469 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
1470
1471         [BZ #13973]
1472         * locale/iso-639.def: Fix gl language name. Spotted by
1473         Yaron Shahrabani.
1474
1475 2012-04-12  Roland McGrath  <roland@hack.frob.com>
1476
1477         [BZ #2074]
1478         * libio/libio.h (__io_write_fn): Update comment.
1479
1480 2012-04-12  Petr Baudis  <pasky@ucw.cz>
1481
1482         [BZ #2074]
1483         * stdio.texi (Hook Functions): The user provided writer function
1484         is not allowed to return -1.
1485
1486 2012-04-11  David S. Miller  <davem@davemloft.net>
1487
1488         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1489
1490 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
1491
1492         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
1493         Add a leading slash to rtkaio.
1494
1495 2012-04-11  Jim Meyering  <meyering@redhat.com>
1496
1497         [BZ #11959]
1498         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
1499         It is not necessarily an error to ignore fwrite's return
1500         value.  One can reliably use ferror to test for errors after
1501         the fact.
1502
1503 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1504
1505         * bits/types.h (__snseconds_t): New type.
1506         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
1507
1508         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
1509         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1510         (__SNSECONDS_T_TYPE): Likewise.
1511         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1512         (__SNSECONDS_T_TYPE): Likewise.
1513         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1514         (__SNSECONDS_T_TYPE): Likewise.
1515
1516 2012-04-10  Andreas Jaeger  <aj@suse.de>
1517
1518         [BZ #2636]
1519         * manual/time.texi (Processor Time): Return type of times is
1520         elapsed real time since an arbitrary point in the past.
1521         (CPU Time): Move CLK_TCK from here...
1522         (Processor Time): ...to here.  Correct description.
1523         * manual/conf.texi (Constants for Sysconf): Correct description of
1524         _SC_CLK_TCK.
1525
1526 2012-04-10  David S. Miller  <davem@davemloft.net>
1527
1528         [BZ #13967]
1529         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
1530         where the is a gap between DT_REL(A) and DT_JMPREL.
1531
1532 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1533
1534         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
1535         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1536         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1537
1538 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1539
1540         * elf/dl-support.c (_dl_inhibit_cache): New variable.
1541         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
1542         (dl_main): Handle --inhibit-cache.
1543         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
1544         _dl_inhibit_cache.
1545         * elf/dl-load.c (_dl_map_object): Use it.
1546         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
1547
1548 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1549
1550         [BZ #13872]
1551         * sysdeps/i386/fpu/e_powl.S (p78): New object.
1552         (__ieee754_powl): Saturate large exponents rather than testing for
1553         overflow of y*log2(x).
1554         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1555         * math/libm-test.inc (pow_test): Do not permit spurious overflow
1556         exceptions.
1557
1558         [BZ #11521]
1559         * math/s_ctan.c: Include <float.h>.
1560         (__ctan): Avoid internal overflow or cancellation in calculating
1561         denominator.
1562         * math/s_ctanf.c: Likewise.
1563         * math/s_ctanl.c: Likewise.
1564         * math/s_ctanh.c: Likewise.
1565         * math/s_ctanhf.c: Likewise.
1566         * math/s_ctanhl.c: Likewise.
1567         * math/libm-test.inc (ctan_test): Add more tests.
1568         (ctanh_test): Likewise.
1569         * sysdeps/i386/fpu/libm-test-ulps: Update.
1570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1571
1572 2012-04-09  Andreas Jaeger  <aj@suse.de>
1573
1574         [BZ #6894]
1575         * manual/filesys.texi (Directory Entries): Mention that d_namlen
1576         is an optional BSD extension.
1577
1578         [BZ #10254]
1579         * manual/stdio.texi (Opening Streams): Document additional fopen
1580         parameters.
1581
1582 2012-04-09  Roland McGrath  <roland@hack.frob.com>
1583
1584         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
1585         %eax without telling the compiler.
1586
1587 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
1588
1589         [BZ # 13963]
1590         * manual/install.texi: Use sourceware.org.
1591
1592 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1593
1594         [BZ #13873]
1595         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
1596         (__ieee754_pow): Generate overflow and underflow using huge*huge
1597         and tiny*tiny rather than just returning constant infinity or zero
1598         for large exponents.
1599         * math/libm-test.inc (pow_test): Require overflow exceptions for
1600         applicable cases of large exponents.
1601
1602         [BZ #706]
1603         * sysdeps/i386/fpu/e_pow.S (p10): New object.
1604         (__ieee754_pow): Use iterative multiplication algorithm only for
1605         integer exponents with absolute value below 1024.  Check for odd
1606         integer exponents when using algorithm for real exponents.
1607         * math/libm-test.inc (pow_test): Add more tests.
1608         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1609
1610 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
1611
1612         [BZ #13705]
1613         * math/libm-test.inc (exp_test): Do not allow overflow exception
1614         on underflow test.
1615
1616 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
1617
1618         [BZ #13705]
1619         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
1620         instead of __kernel_standard_f.
1621
1622 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
1623
1624         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
1625         * sysdeps/x86_64/memset_chk.S: Likewise.
1626
1627 2012-04-08  Andreas Jaeger  <aj@suse.de>
1628
1629         [BZ #10153]
1630         * manual/startup.texi (Environment Access): Describe return value
1631         for putenv and setenv.
1632
1633         [BZ #6895]
1634         * manual/filesys.texi (Directory Entries): Add description for
1635         DT_LNK.
1636
1637         [BZ #6890]
1638         * manual/filesys.texi (Directory Entries): Clarify that it's file
1639         system not operating system in the description of DT_UNKNOWN.
1640
1641         [BZ #6578]
1642         * manual/syslog.texi (closelog): Fix reference, it's openlog.
1643
1644 2012-04-08  Stephen Compall  <s11@member.fsf.org>
1645
1646         [BZ #6649]
1647         * manual/llio.texi (Opening and Closing Files): Add cross
1648         reference to explain mode argument.
1649
1650 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
1651
1652         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
1653         * sysdeps/x86_64/memset_chk.S: Likewise.
1654
1655 2012-04-07  David S. Miller  <davem@davemloft.net>
1656
1657         * elf/elf.h (R_SPARC_WDISP10): Define.
1658         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
1659         R_SPARC_SIZE32.
1660         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
1661         R_SPARC_SIZE64 and R_SPARC_H34.
1662
1663 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
1664
1665         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
1666         conditions and remove no longer applicable assertion.
1667
1668 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1669
1670         * bits/byteswap.h: Include <features.h>.
1671         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1672         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1673
1674 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1675
1676         * bits/byteswap.h (__bswap_16): Removed.
1677         Include <bits/byteswap-16.h> to get __bswap_16.
1678         * sysdeps/i386/bits/byteswap.h: Likewise.
1679         * sysdeps/s390/bits/byteswap.h: Likewise.
1680         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1681         * bits/byteswap-16.h: New file.
1682         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1683         * sysdeps/s390/bits/byteswap-16.h: Likewise.
1684         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
1685         * string/Makefile (headers): Add bits/byteswap-16.h.
1686
1687 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1688
1689         [BZ #13895]
1690         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
1691         extra indirection.
1692         * nss/Makefile (tests-static, tests): Add tst-nss-static.
1693         * nss/tst-nss-static.c: New.
1694
1695 2012-04-06  Robert Millan  <rmh@gnu.org>
1696
1697         [BZ #6486]
1698         * manual/llio.texi (File Position Primitive): lseek
1699         refers to WHENCE when it really means OFFSET.
1700
1701 2012-04-06  Andreas Jaeger  <aj@suse.de>
1702
1703         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
1704         strncmp declarations.
1705
1706         * abilist/libc.abilist: Add __poll and __ppoll.
1707
1708 2012-04-05  David S. Miller  <davem@davemloft.net>
1709
1710         * scripts/check-local-headers.sh: Accept a host triplet in the
1711         path matched by the exclude regexp.
1712
1713         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
1714         definition.
1715         * sysdeps/powerpc/powerpc32/dl-machine.h
1716         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
1717         * sysdeps/s390/s390-32/dl-machine.h
1718         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1719         * sysdeps/sparc/sparc32/dl-machine.h
1720         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1721         * sysdeps/sparc/sparc64/dl-machine.h
1722         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1723
1724         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
1725         lazy binding.
1726         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
1727         undefined symbol errors.
1728
1729         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
1730         DT_NEEDED entries.
1731
1732 2012-04-05  Michael Matz  <matz@suse.de>
1733
1734         [BZ #13592]
1735         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
1736
1737 2012-04-05  Andreas Jaeger  <aj@suse.de>
1738
1739         [BZ #13908]
1740         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
1741         comment.
1742
1743 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1744
1745         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
1746         which ROUND is no valid rounding mode.
1747
1748 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1749
1750         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
1751         read again.
1752         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
1753
1754 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1755
1756         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
1757         an exception using FPU order intentionally.
1758
1759 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1760
1761         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
1762         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
1763         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
1764         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
1765
1766 2012-04-05  Simon Josefsson  <simon@josefsson.org>
1767
1768         [BZ #12340]
1769         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
1770         EINVAL when BUFLEN is too smal.
1771
1772 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1773
1774         [BZ #13553]
1775         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
1776         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1777
1778 2012-04-03  Andreas Jaeger  <aj@suse.de>
1779
1780         [BZ #13938]
1781         * manual/setjmp.texi (System V contexts): Fix sentence.
1782
1783         [BZ #13926]
1784         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
1785         New macro for this case.
1786         [!__GNUC__] (__bswap_64): New inline function for this case.
1787         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1788         * bits/byteswap.h: Likewise.
1789         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
1790         ull, guard with __GLIBC_HAVE_LONG_LONG.
1791
1792         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
1793         __GLIBC_HAVE_LONG_LONG.
1794
1795         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
1796         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
1797
1798 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1799
1800         [BZ #13691]
1801         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
1802         inptr and inend, rather than using last_ch.
1803
1804 2012-04-02  David S. Miller  <davem@davemloft.net>
1805
1806         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
1807         * stdio-common/printf-parse.h (read_int): Change return type to
1808         'int', return -1 on INT_MAX overflow.
1809         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
1810         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
1811         overflows INT_MAX.  Check for overflow of in-format-string precision
1812         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
1813         SIZE_MAX not INT_MAX for integer overflow test.
1814         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
1815         skip the construct in the format string but do not record anything.
1816         * stdio-common/bug22.c: Adjust to test both width/prevision
1817         INT_MAX overflow as well as total length INT_MAX overflow.  Check
1818         explicitly for proper errno values.
1819
1820 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1821
1822         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
1823         CHAR_MAX.
1824         * string/test-strcmp.c [! WIDE]: Likewise.
1825         * time/tst-mktime2.c: Likewise for INT_MAX.
1826         * string/test-string.h: #include <sys/param.h> for MIN.
1827
1828         * csu/init-first.c (__libc_init_first): Call __ctype_init.
1829         * sysdeps/i386/init-first.c (init): Likewise.
1830         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
1831         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
1832         * sysdeps/sh/init-first.c (init): Likewise.
1833
1834 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
1835
1836         * po/ru.po: Update from translation team.
1837         * po/vi.po: Likewise.
1838
1839 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
1840
1841         * resolv/nss_dns/dns-host.c: Merge copyright years.
1842
1843 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1844
1845         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
1846         Optimize memcpy with prefetch if
1847         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
1848         src, dst pointers have unequal 16 byte alignments.
1849
1850 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1851
1852         [BZ #13928]
1853         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
1854         from a CNAME entry and return the minimum ttl for the query.
1855         (gaih_getanswer_slice): Likewise.
1856
1857 2012-03-30  Jeff Law  <law@redhat.com>
1858
1859         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
1860         due to long keys.
1861         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
1862         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1863
1864         * resolv/nss_dns/dns-host.c: Update copyright year.
1865
1866 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
1867
1868         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
1869         requests to save a system call.  Fix check that all bytes are sent.
1870
1871         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
1872         comments for sendmmsg.
1873
1874 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1875
1876         [BZ #13691]
1877         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
1878         with only 1 character between 0x0041 and 0x01b0.
1879         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
1880         * wcsmbs/tst-mbsnrtowcs.c: New file.
1881
1882 2012-03-29  David S. Miller  <davem@davemloft.net>
1883
1884         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
1885         small copies by hand.
1886
1887 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1888
1889         [BZ #13761]
1890         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
1891         _nss_compat_initgroups_dyn): Fall back to malloc/free
1892         for large group memberships.
1893
1894 2012-03-28  David S. Miller  <davem@davemloft.net>
1895
1896         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
1897         that branches into memcpy.
1898         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1899         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
1900         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1901         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
1902         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
1903         bits.
1904         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
1905         implementation too.
1906         * sysdeps/sparc/mempcpy.S: New file.
1907
1908         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
1909         the IFUNC routine in the libc case.
1910         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
1911
1912         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
1913         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
1914         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
1915         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
1916         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
1917         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
1918         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
1919         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
1920
1921         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
1922         loop to 256 bytes instead of 64 bytes and fix test signedness.
1923
1924         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
1925         * sysdeps/sparc/sparc32/Makefile: rather than here...
1926         * sysdeps/sparc/sparc64/Makefile: and here.
1927
1928 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
1929
1930         * malloc/mallocbug.c: Avoid warnings about unused variables.
1931
1932 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1933
1934         [BZ #13760]
1935         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
1936         in the right place. Discard and retry query if response is
1937         larger than input buffer size.
1938
1939 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
1940
1941         [BZ #369]
1942         [BZ #2678]
1943         [BZ #3866]
1944         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
1945         x for large integer exponent.
1946         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
1947         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
1948         sign of result as needed afterwards.
1949         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1950         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
1951         result for underflowing pow the same as for overflow.
1952         (__kernel_standard_l): Handle powl overflow and underflow here
1953         rather than calling __kernel_standard.
1954         * math/libm-test.inc (pow_test): Add more tests.
1955
1956         [BZ #3868]
1957         [BZ #13879]
1958         [BZ #13910]
1959         [BZ #13911]
1960         [BZ #13912]
1961         [BZ #13913]
1962         [BZ #13915]
1963         [BZ #13916]
1964         [BZ #13917]
1965         [BZ #13918]
1966         [BZ #13919]
1967         [BZ #13920]
1968         [BZ #13921]
1969         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
1970         * sysdeps/ieee754/k_standard.c: Include <float.h>.
1971         (__kernel_standard_l): New function.
1972         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
1973         __kernel_standard.
1974         * math/w_acosl.c (__acosl): Likewise.
1975         * math/w_asinl.c (__asinl): Likewise.
1976         * math/w_atan2l.c (__atan2l): Likewise.
1977         * math/w_atanhl.c (__atanhl): Likewise.
1978         * math/w_coshl.c (__coshl): Likewise.
1979         * math/w_exp10l.c (__exp10l): Likewise.
1980         * math/w_exp2l.c (__exp2l): Likewise.
1981         * math/w_fmodl.c (__fmodl): Likewise.
1982         * math/w_hypotl.c (__hypotl): Likewise.
1983         * math/w_j0l.c (__j0l, __y0l): Likewise.
1984         * math/w_j1l.c (__j1l, __y1l): Likewise.
1985         * math/w_jnl.c (__jnl, __ynl): Likewise.
1986         * math/w_lgammal.c (__lgammal): Likewise.
1987         * math/w_log10l.c (__log10l): Likewise.
1988         * math/w_log2l.c (__log2l): Likewise.
1989         * math/w_logl.c (__logl): Likewise.
1990         * math/w_powl.c (__powl): Likewise.
1991         * math/w_remainderl.c (__remainderl): Likewise.
1992         * math/w_scalbl.c (sysv_scalbl): Likewise.
1993         * math/w_sinhl.c (__sinhl): Likewise.
1994         * math/w_sqrtl.c (__sqrtl): Likewise.
1995         * math/w_tgammal.c (__tgammal): Likewise.
1996         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
1997         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
1998         * math/libm-test.inc (acos_test): Add more tests.
1999         (acosh_test): Likewise.
2000         (asin_test): Likewise.
2001         (atanh_test): Likewise.
2002         (exp_test): Likewise.
2003         (exp10_test): Likewise.
2004         (exp2_test): Likewise.
2005         (expm1_test): Likewise.
2006         (lgamma_test): Likewise.
2007         (log_test): Likewise.
2008         (log10_test): Likewise.
2009         (log1p_test): Likewise.
2010         (log2_test): Likewise.
2011         (pow_test): Do not allow some spurious overflow exceptions.
2012         (sqrt_test): Add more tests.
2013         (tgamma_test): Likewise.
2014         (y0_test): Likewise.
2015         (y1_test): Likewise.
2016         (yn_test): Likewise.
2017
2018 2012-03-27  Anton Blanchard  <anton@samba.org>
2019
2020         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
2021         MAP_HUGETLB.
2022         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2023         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2024         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2025
2026 2012-03-27  David S. Miller  <davem@davemloft.net>
2027
2028         * conform/Makefile: Run run-conformtest.sh using $(BASH).
2029
2030         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
2031         have-as-vis3 check.
2032
2033 2012-03-27  Andreas Jaeger  <aj@suse.de>
2034
2035         * sysdeps/x86_64/elf/configure.in: Moved to ...
2036         * sysdeps/x86_64/configure.in: ... here.
2037         * sysdeps/x86_64/elf/start.S: Moved to ...
2038         * sysdeps/x86_64/start.S: ... here.
2039         * sysdeps/x86_64/elf/configure: Delete.
2040
2041         * sysdeps/x86_64/configure.in: Merge contents from
2042         sysdeps/i386/configure.in (without i686 check).
2043
2044         * sysdeps/i386/elf/Versions: Merge into ...
2045         * sysdeps/i386/Versions: ... this.
2046         * sysdeps/i386/elf/Versions: Delete file.
2047         * sysdeps/i386/elf/start.S: Moved to ...
2048         * sysdeps/i386/start.S: ...here.
2049         * sysdeps/i386/elf/configure.in: Merge into...
2050         * sysdeps/i386/configure.in: ...here.
2051         * sysdeps/i386/elf/configure.in: Delete file.
2052         * sysdeps/i386/elf/configure: Delete file.
2053
2054         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
2055         * debug/backtracesyms.c: ... here.
2056         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
2057         * debug/backtracesymsfd.c: ... here.
2058         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
2059         * sysdeps/generic/ifunc-sel.h: ... here.
2060
2061         * sysdeps/unix/i386/start.c: Delete file.
2062         * sysdeps/unix/sparc/start.c: Delete file.
2063         * sysdeps/unix/start.c: Delete file.
2064
2065         * sysdeps/sh/elf/configure.in: Moved to ...
2066         * sysdeps/sh/configure.in: ... here.
2067         * sysdeps/sh/elf/start.S: Moved to ...
2068         * sysdeps/sh/start.S: ... here.
2069         * sysdeps/sh/elf/configure: Delete file.
2070
2071         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
2072         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
2073         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
2074         * sysdeps/powerpc/powerpc64/entry.h: ... here.
2075         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
2076         * sysdeps/powerpc/powerpc64/start.S: here.
2077         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
2078         * sysdeps/powerpc/powerpc64/Makefile: ... this.
2079         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
2080         * sysdeps/powerpc/powerpc64/configure.in: ... this.
2081         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
2082
2083         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
2084         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
2085         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
2086         * sysdeps/powerpc/powerpc32/start.S: ... here.
2087         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
2088         * sysdeps/powerpc/powerpc32/configure.in: ... this.
2089         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
2090
2091         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
2092         * sysdeps/powerpc/ifunc-sel.h: ... here.
2093         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
2094         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
2095
2096         * sysdeps/sparc/elf/configure.in: Moved to ...
2097         * sysdeps/sparc/configure.in: ... here.
2098         * sysdeps/sparc/elf/configure: Delete file.
2099         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
2100         * sysdeps/sparc/sparc32/start.S: ... here.
2101         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
2102         * sysdeps/sparc/sparc64/start.S: ... here.
2103         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
2104         * sysdeps/sparc/sparc32/Makefile: ... this.
2105         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
2106         * sysdeps/sparc/sparc64/Makefile: ... this.
2107
2108         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
2109         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
2110         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
2111         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
2112         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
2113         * sysdeps/s390/s390-32/setjmp.S: ... here.
2114         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
2115         * sysdeps/s390/s390-32/configure.in: ... here.
2116         * sysdeps/s390/s390-32/elf/configure: Delete file.
2117         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
2118         * sysdeps/s390/s390-32/start.S: ... here.
2119
2120         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
2121         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
2122         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
2123         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
2124         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
2125         * sysdeps/s390/s390-64/setjmp.S: ... here.
2126         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
2127         * sysdeps/s390/s390-64/configure.in: ... here
2128         * sysdeps/s390/s390-64/elf/configure: Delete file.
2129         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
2130         * sysdeps/s390/s390-64/start.S: ... here.
2131         * sysdeps/s390/s390-64/elf/configure: Delete.
2132
2133         * configure.in: Remove support for elf directories in sysdeps.
2134
2135         * configure: Regenerated.
2136         * sysdeps/i386/configure: Regenerated.
2137         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2138         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2139         * sysdeps/s390/s390-32/configure: Regenerated.
2140         * sysdeps/s390/s390-64/configure: Regenerated.
2141         * sysdeps/sh/configure: Regenerated.
2142         * sysdeps/sparc/configure: Regenerated.
2143         * sysdeps/x86_64/configure: Regenerated.
2144
2145 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
2146
2147         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2148
2149         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
2150         denormal result into account.
2151
2152 2012-03-25  Roland McGrath  <roland@hack.frob.com>
2153
2154         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
2155         Reported by Allan McRae <allan@archlinux.org>.
2156
2157 2012-03-23  Jeff Law  <law@redhat.com>
2158
2159         * nss/getnssent.c (__nss_getent): Fix typo.
2160
2161 2012-03-23  David S. Miller  <davem@davemloft.net>
2162
2163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2164
2165 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2166
2167         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
2168         to pad to uint64_t for each field.
2169         (dl_tls_index): Replace unsigned long with uint64_t.
2170
2171 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
2172         Paul Pluzhnikov  <ppluzhnikov@google.com>
2173
2174         [BZ #6528]
2175         * grp/Makefile (otherlibs): Don't set it.
2176         * inet/Makefile (otherlibs): Likewise.
2177         * login/Makefile (otherlibs): Likewise.
2178         * nscd/Makefile (otherlibs): Likewise.
2179         * posix/Makefile (otherlibs): Likewise.
2180         * pwd/Makefile (otherlibs): Likewise.
2181         * rt/Makefile (otherlibs): Likewise.
2182         * sunrpc/Makefile (otherlibs): Likewise.
2183         * nss/Makefile (otherlibs): Likewise.
2184         Add libnss_files to routines and static-only-routines.
2185         ($(objpfx)getent): Remove rule.
2186         * resolv/Makefile: Add libnss_dns and libresolv to routines and
2187         static-only-routines.
2188
2189 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2190
2191         [BZ #13892]
2192         * math/s_cexp.c: Include <float.h>.
2193         (__cexp): Handle exp result overflowing not necessarily
2194         overflowing both real and imaginary parts of result.
2195         * math/s_cexpf.c: Likewise.
2196         * math/s_cexpl.c: Likewise.
2197         * math/libm-test.inc (cexp_test): Add more tests.
2198         * sysdeps/i386/fpu/libm-test-ulps: Update.
2199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2200
2201 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2202
2203         * include/link.h (ELFW): New macro.
2204         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
2205         Replace ELF64_R_TYPE with ELFW(R_TYPE).
2206
2207 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2208
2209         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
2210         with uint64_t.
2211
2212 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2213
2214         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
2215         declaration.
2216         (struct La_x32_retval): Likewise.
2217
2218 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         * sysdeps/x86_64/preconfigure.in: New file.
2221         * sysdeps/x86_64/preconfigure: New generated file.
2222
2223 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2224
2225         [BZ #13824]
2226         * math/e_exp2l.c: Include <float.h>.
2227         (__ieee754_exp2l): Handle overflow and underflow cases
2228         separately.  Only pass fractional part of argument to
2229         __ieee754_expl.
2230         * math/libm-test.inc (exp2_test): Add more tests.
2231
2232         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
2233         negating x to take absolute value.
2234         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
2235         Likewise.
2236         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
2237         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
2238         Likewise.
2239         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
2240         computing low part if x was negated.
2241         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
2242
2243 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2244
2245         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
2246         la_x32_gnu_pltexit.
2247         (pltexit): Cast int_retval to ptrdiff_t.
2248         * elf/tst-auditmod3b.c: Likewise.
2249         * elf/tst-auditmod4b.c: Likewise.
2250         * elf/tst-auditmod5b.c: Likewise.
2251         * elf/tst-auditmod6b.c: Likewise.
2252         * elf/tst-auditmod6c.c: Likewise.
2253         * elf/tst-auditmod7b.c: Likewise.
2254
2255         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
2256         and x32_gnu_pltexit.
2257
2258         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
2259         __ELF_NATIVE_CLASS.
2260         (La_x32_regs): New macro.
2261         (La_x32_retval): Likewise.
2262         (la_x32_gnu_pltenter): New function prototype.
2263         (la_x32_gnu_pltexit): Likewise.
2264
2265 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
2266
2267         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
2268         exponent.
2269
2270         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2271
2272         * configure.in (libc_cv_cc_nofma): Check for option to disable
2273         generation of FMA instructions.
2274         * configure: Regenerate.
2275         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
2276         * sysdeps/ieee754/dbl-64/Makefile: New file.
2277         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2278         Remove brandred-fma4.
2279         (CFLAGS-brandred-fma4.c): Remove.
2280         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
2281         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
2282         define.
2283         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
2284         define.
2285
2286 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2287
2288         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2289         LLONG_MAX != LONG_MAX.
2290         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2291         (_fitoa_word): Likewise.
2292         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
2293         LLONG_MAX != LONG_MAX.
2294         * stdio-common/_itowa.h: Include <_itoa.h>.
2295         (_itowa_word): Use _ITOA_WORD_TYPE on value.
2296         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
2297         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
2298         only if not defined.
2299         (_ITOA_WORD_TYPE): Likewise.
2300         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2301         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
2302
2303 2012-03-21  David S. Miller  <davem@davemloft.net>
2304
2305         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2306
2307 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2308
2309         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
2310         of x86_64 when setting libc_cv_slibdir, libdir and
2311         libc_cv_localedir.
2312         * sysdeps/unix/sysv/linux/configure: Regenerated.
2313
2314 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2315
2316         * manual/lang.texi (Old Varargs): Remove section.
2317         (How Variadic): Update menu.
2318         (va_start): Do not mention varargs.h.
2319
2320 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2321             Joseph Myers  <joseph@codesourcery.com>
2322
2323         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
2324         link test.
2325         * configure: Regenerated.
2326
2327 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2328
2329         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
2330         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
2331         conformtest.pl
2332
2333 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2334
2335         * NOTES: Remove.
2336         * Makefile (files-for-dist): Remove NOTES.
2337         (NOTES): Remove rule.
2338         * README: Don't refer to NOTES.
2339         * manual/creature.texi: Don't include macros.texi.
2340         * manual/intro.texi (creature.texi): Remove comment referring to
2341         NOTES.
2342
2343         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
2344         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
2345         * configure: Regenerated.
2346         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
2347         LIBC_TRY_CC_OPTION.
2348         (libc_cv_as_i686): Likewise.
2349         (libc_cv_cc_avx): Likewise.
2350         (libc_cv_cc_sse2avx): Likewise.
2351         (libc_cv_cc_fma4): Likewise.
2352         (libc_cv_cc_novzeroupper): Likewise.
2353         * sysdeps/i386/configure: Regenerated.
2354
2355         [BZ #13883]
2356         * sysdeps/i386/fpu/s_cexp.S: Remove.
2357         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
2358         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
2359         * math/libm-test.inc (cexp_test): Add more tests.
2360         * sysdeps/i386/fpu/libm-test-ulps: Update.
2361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2362
2363 2012-03-21  Allan McRae  <allan@archlinux.org>
2364
2365         * timezone/Makefile: Do not install iso3166.tab and zone.tab
2366
2367 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2368
2369         [BZ #13871]
2370         * math/w_exp2.c: Do not include <float.h>.
2371         (o_threshold, u_threshold): Remove.
2372         (__exp2): Calculate result before checking finiteness and calling
2373         __kernel_standard.
2374         * math/w_exp2f.c: Likewise.
2375         * math/w_exp2l.c: Likewise.
2376         * math/libm-test.inc (exp2_test): Require overflow exception for
2377         1e6 input.
2378
2379         [BZ #3866]
2380         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
2381         range of signed 64-bit integers before using fistpll.  Remove
2382         checks for whether integers fit in mantissa bits.
2383         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
2384         the range of signed 32-bit integers before using fistpl.  Remove
2385         checks for whether integers fit in mantissa bits.
2386         * sysdeps/i386/fpu/e_powl.S (p64): New object.
2387         (__ieee754_powl): Test for y outside the range of signed 64-bit
2388         integers before using fistpll.  Reduce 64-bit values to 63-bit
2389         ones as needed.
2390         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
2391         divide-by-zero is raised for zero to large negative powers.
2392         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
2393         (__ieee754_powl): Test for y outside the range of signed 64-bit
2394         integers before using fistpll.  Reduce 64-bit values to 63-bit
2395         ones as needed.
2396         * math/libm-test.inc (pow_test): Add more tests.
2397
2398 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2399
2400         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
2401         <stdio-common/_itoa.h>.
2402         * debug/segfault.c: Likewise.
2403         * elf/dl-cache.c: Likewise.
2404         * elf/dl-minimal.c: Likewise.
2405         * elf/dl-misc.c: Likewise.
2406         * elf/dl-sysdep.c: Likewise.
2407         * elf/dl-version.c: Likewise.
2408         * elf/rtld.c: Likewise.
2409         * hurd/hurdsock.c: Likewise.
2410         * hurd/lookup-retry.c: Likewise.
2411         * malloc/malloc.c: Likewise.
2412         * malloc/mtrace.c: Likewise.
2413         * nscd/nscd_getgr_r.c: Likewise.
2414         * nscd/nscd_getpw_r.c: Likewise.
2415         * nscd/nscd_getserv_r.c: Likewise.
2416         * posix/getopt_init.c: Likewise.
2417         * posix/wordexp.c: Likewise.
2418         * stdio-common/_itoa.c: Likewise.
2419         * stdio-common/printf_fphex.c: Likewise.
2420         * stdio-common/vfprintf.c: Likewise.
2421         * string/_strerror.c: Likewise.
2422         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2423         * sysdeps/i386/i686/hp-timing.h: Likewise.
2424         * sysdeps/mach/_strerror.c: Likewise.
2425         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
2426         * sysdeps/mach/hurd/sethostid.c: Likewise.
2427         * sysdeps/mach/hurd/xmknodat.c: Likewise.
2428         * sysdeps/mach/xpg-strerror.c: Likewise.
2429         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2430         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2431         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
2432         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
2433         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
2434         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
2435         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2436         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2437         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
2438         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
2439         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
2440         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2441         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
2442         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
2443         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
2444         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2445         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
2446         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
2447         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2448         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2449         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
2450
2451         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
2452
2453         * stdio-common/_itoa.h: Moved to ...
2454         * sysdeps/generic/_itoa.h: Here.
2455
2456         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
2457
2458         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
2459         instead of "_itoa.h" and "_itowa.h".
2460         * stdio-common/vfprintf.: Likewise.
2461
2462 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2463
2464         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
2465         <bits/wordsize.h>.
2466         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
2467         (__signbit): Likwise.
2468         (llrintf): Likwise.
2469         (llrint): Likwise.
2470
2471 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2472
2473         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
2474         __WORDSIZE != 64.
2475
2476 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
2477
2478         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
2479         OVERFLOW_EXCEPTION_OK.
2480         * math/libm-test.inc ("Philosophy"): Update comment about
2481         exception testing.
2482         (OVERFLOW_EXCEPTION): Define.
2483         (OVERFLOW_EXCEPTION_OK): Likewise.
2484         (INVALID_EXCEPTION_OK): Renumber.
2485         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2486         (IGNORE_ZERO_INF_SIGN): Likewise.
2487         (test_exceptions): Handle FE_OVERFLOW.
2488         (exp10_test): Expect overflow exceptions.
2489         (exp2_test): Likewise.
2490         (expm1_test): Likewise.
2491         (nextafter_test): Likewise.
2492         (pow_test): Likewise.
2493         (scalbn_test): Likewise.
2494         (scalbln_test): Likewise.
2495
2496 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2497
2498         * sysdeps/x86_64/bits/atomic.h
2499         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
2500         64bit integer.
2501         (atomic_exchange_acq): Likewise.
2502         (__arch_exchange_and_add_body): Likewise.
2503         (__arch_add_body): Likewise.
2504         (atomic_add_negative): Likewise.
2505         (atomic_add_zero): Likewise.
2506
2507 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2508
2509         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
2510         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
2511
2512 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2513
2514         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
2515         Check __x86_64__ instead of __WORDSIZE.
2516
2517 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2518
2519         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
2520
2521 2012-03-19  David S. Miller  <davem@davemloft.net>
2522
2523         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2524
2525         * sysdeps/sparc/fpu/fenv_private.h: New file.
2526         * sysdeps/sparc/fpu/math_private.h: Use it.
2527         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
2528         Remove.
2529         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
2530         (libc_feholdexcept_setroundl): Remove.
2531         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
2532         Remove.
2533         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
2534         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
2535
2536 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2537
2538         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
2539         int64_t instead of long int.
2540         (INSERT_WORDS64): Likwise.
2541
2542 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2543
2544         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
2545         _Unwind_GetCFA return to _Unwind_Ptr first.
2546
2547 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
2548
2549         [BZ #13629]
2550         * math/s_clog.c: Include <float.h>.
2551         (__clog): Scale large or subnormal inputs.
2552         * math/s_clogf.c: Likewise.
2553         * math/s_clogl.c: Likewise.
2554         * math/s_clog10.c: Include <float.h>.
2555         (M_LOG10_2): Define.
2556         (__clog10): Scale large or subnormal inputs.
2557         * math/s_clog10f.c: Likewise.
2558         * math/s_clog10l.c: Likewise.
2559         * math/libm-test.inc (clog_test): Add more tests.
2560         (clog10_test): Likewise.
2561         * sysdeps/i386/fpu/libm-test-ulps: Update.
2562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2563
2564         [BZ #11451]
2565         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
2566         x and y.
2567         * math/libm-test.inc (atan2_test): Add another test.
2568
2569         * Makerules (common-objdir-compile): Remove.
2570         * sysdeps/unix/Makefile (config-generated): Do not add
2571         $(unix-generated) to variable.
2572         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
2573         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
2574         Remove rule.
2575         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
2576         Likewise.
2577         [generic bits/local_lim.h] (before-compile): Do not append to
2578         variable.
2579         [generic bits/local_lim.h] (common-generated): Likewise.
2580         [generic sys/param.h] (before-compile): Do not append to variable.
2581         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
2582         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
2583         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
2584         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
2585         include.
2586         [generic sys/param.h] (sys/param.h-includes): Remove variable.
2587         [generic sys/param.h] (sys/param.h-includes): Remove rule.
2588         [generic sys/param.h] ($(addprefix
2589         $(common-objpfx),$(sys/param.h-includes))): Likewise.
2590         [generic sys/param.h] (common-generated): Do not append to
2591         variable.
2592         [generic sys/param.h] (sysdep_headers): Likewise.
2593         [generic bits/errno.h] (before-compile): Do not append to
2594         variable.
2595         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
2596         rule.
2597         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
2598         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
2599         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
2600         [generic bits/errno.h] (common-generated): Do not append to
2601         variable.
2602         [generic bits/ioctls.h] (before-compile): Do not append to
2603         variable.
2604         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
2605         rule.
2606         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
2607         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
2608         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
2609         rule.
2610         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
2611         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
2612         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
2613         [generic bits/ioctls.h] (common-generated): Do not append to
2614         variable.
2615         [generic sys/syscall.h] (syscall.h): Remove variable.
2616         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
2617         rule.
2618         [generic sys/syscall.h] (before-compile): Do not append to
2619         variable.
2620         [generic sys/syscall.h] (common-generated): Likewise.
2621         * sysdeps/unix/errnos-tmpl.c: Remove file.
2622         * sysdeps/unix/errnos.awk: Likewise.
2623         * sysdeps/unix/ioctls-tmpl.c: Likewise.
2624         * sysdeps/unix/ioctls.awk: Likewise.
2625         * sysdeps/unix/mk-local_lim.c: Likewise.
2626         * sysdeps/unix/snarf-ioctls: Likewise.
2627
2628 2012-03-19  Richard Henderson  <rth@twiddle.net>
2629
2630         * sysdeps/i386/fpu/fenv_private.h: New file.
2631         * sysdeps/i386/fpu/math_private.h: Use it.
2632         (math_opt_barrier, math_force_eval): Remove.
2633         (libc_feholdexcept_setround_53bit): Remove.
2634         (libc_feupdateenv_53bit): Remove.
2635         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2636         (math_opt_barrier, math_force_eval): Remove.
2637         (libc_feholdexcept): Remove.
2638         (libc_feholdexcept_setround): Remove.
2639         (libc_fetestexcept, libc_fesetenv): Remove.
2640         (libc_feupdateenv_test): Remove.
2641         (libc_feupdateenv, libc_feholdsetround): Remove.
2642         (libc_feresetround): Remove.
2643
2644         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
2645         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
2646
2647         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
2648         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
2649         (libc_feupdateenv_testl): New.
2650         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
2651         (libc_feupdateenv_testf): New.
2652         (libc_feupdateenv): Use libc_feupdateenv_test.
2653         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
2654         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
2655
2656         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
2657         (libc_feholdsetroundf, libc_feholdsetroundl): New.
2658         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
2659         (libc_feresetround_noex): New.
2660         (libc_feresetround_noexf): New.
2661         (libc_feresetround_noexl): New.
2662         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
2663         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
2664         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
2665         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
2666         SET_RESTORE_ROUND.
2667         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2668         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
2669         (__cos): Likewise.
2670         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
2671         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
2672         SET_RESTORE_ROUND_NOEX.
2673         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
2674         SET_RESTORE_ROUND_NOEXF.
2675         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
2676         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
2677         (libc_feholdsetroundf): New.
2678         (libc_feresetround, libc_feresetroundf): New.
2679
2680         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
2681         (libc_feholdexcept_setround_53bit): Convert from macro to function.
2682         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
2683
2684         * sysdeps/generic/math_private.h: Include <fenv.h>.
2685         (default_libc_feholdexcept): New.
2686         (default_libc_feholdexcept_setround): New.
2687         (default_libc_fesetenv, default_libc_feupdateenv): New.
2688         (libc_feholdexcept): Only define if undefined.
2689         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
2690         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
2691         (libc_feholdexcept_setroundl): Likewise.
2692         (libc_feholdexcept_setround_53bit): Likewise.
2693         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
2694         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
2695         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
2696         (libc_feupdateenv_53bit): Likewise.
2697         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
2698         (libc_feholdexcept): Convert from macro to inline function.
2699         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
2700         (libc_fesetenv, libc_feupdateenv): Likewise.
2701
2702         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
2703         not previously defined.
2704         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
2705         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
2706         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
2707         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
2708         * sysdeps/ieee754/flt-32/math_private.h: New file.
2709         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
2710         math_private.h below SET_FLOAT_WORD.
2711         (__isnan, __isinf_ns, __finite): Remove.
2712         (__isnanf, __isinf_nsf, __finitef): Remove.
2713
2714 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
2715
2716         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2717
2718 2012-03-17  David S. Miller  <davem@davemloft.net>
2719
2720         [BZ #6471]
2721         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
2722         for 2.16.
2723
2724 2012-03-16  David S. Miller  <davem@davemloft.net>
2725
2726         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
2727         warnings.
2728
2729         [BZ #6471]
2730         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
2731         properly.
2732         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
2733         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
2734         sysdep_routines when subdir is sysvipc.
2735         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
2736         __getshmlba helper.
2737
2738         * sysdeps/sparc/fpu/libm-test/ulps: Update.
2739
2740 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2741
2742         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
2743         [__LP64__].
2744
2745 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2746
2747         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
2748         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
2749         (__lround): Renamed to ...
2750         (__llround): This.  Replace long int with long long int.
2751         Define lround functions as aliases of llround functions.
2752         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
2753
2754 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2755
2756         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2757         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
2758         adresses to uintptr_t.  Replace "long int" and "unsigned long
2759         int" with "greg_t" on va_arg.
2760
2761 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2762
2763         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
2764         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
2765
2766         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
2767         Move e_machine check before EI_CLASS check.  Handle x32
2768         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
2769         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
2770         SKIP_EM_IA_64 and include
2771         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
2772
2773         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
2774         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
2775         (add_system_dir): New macro.
2776
2777         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
2778         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
2779
2780 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2781
2782         [BZ #2551]
2783         [BZ #2552]
2784         [BZ #2553]
2785         [BZ #2554]
2786         [BZ #2562]
2787         [BZ #2563]
2788         [BZ #2565]
2789         [BZ #2566]
2790         [BZ #2576]
2791         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
2792         (y0): Likewise.
2793         * math/w_j0f.c (j0f): Likewise.
2794         (y0f): Likewise.
2795         * math/w_j0l.c (__j0l): Likewise.
2796         (__y0l): Likewise.
2797         * math/w_j1.c (j1): Likewise.
2798         (y1): Likewise.
2799         * math/w_j1f.c (j1f): Likewise.
2800         (y1f): Likewise.
2801         * math/w_j1l.c (__j1l): Likewise.
2802         (__y1l): Likewise.
2803         * math/w_jn.c (jn): Likewise.
2804         (yn): Likewise.
2805         * math/w_jnf.c (jnf): Likewise.
2806         (ynf): Likewise.
2807         * math/w_jnl.c (__jnl): Likewise.
2808         (__ynl): Likewise.
2809         * math/libm-test.inc (j0_test): Add more tests.
2810         (j1_test): Likewise.
2811         (jn_test): Likewise.  Add trailing semicolon to existing test.
2812         (y0_test): Likewise.
2813         (y1_test): Likewise.
2814         * sysdeps/i386/fpu/libm-test-ulps: Update.
2815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2816
2817         [BZ #13851]
2818         [BZ #13854]
2819         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
2820         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
2821         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
2822         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
2823         (__tanl): Set errno for infinite argument.
2824         * sysdeps/i386/fpu/mptan.c: Remove.
2825         * sysdeps/i386/fpu/s_tan.S: Likewise.
2826         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2827         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
2828         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2829         * math/libm-test.inc (tan_test): Add more tests and enable more
2830         tests for double and long double.
2831         * sysdeps/i386/fpu/libm-test-ulps: Update.
2832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2833
2834 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2835
2836         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
2837         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
2838
2839 2012-03-16  Roland McGrath  <roland@hack.frob.com>
2840
2841         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
2842         * configure.in: Use it for both main tree and add-ons.
2843         * configure: Regenerated.
2844
2845 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2846
2847         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
2848
2849 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2850
2851         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
2852         in comment.
2853
2854         [BZ #13851]
2855         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
2856         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
2857         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
2858         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
2859         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
2860         infinite argument.
2861         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
2862         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
2863         != 0 for prec == 2.
2864         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
2865         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
2866         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2867         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2868         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2869         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
2870         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
2871         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
2872         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2873         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
2874         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2875         * math/libm-test.inc (cos_test): Add more tests and enable more
2876         tests for long double.
2877         (sin_test): Likewise.
2878         (sincos_test): Likewise.
2879         * sysdeps/i386/fpu/libm-test-ulps: Update.
2880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2881
2882 2012-03-16  David S. Miller  <davem@davemloft.net>
2883
2884         * sysdeps/sparc/fpu/math_private.h: New file.
2885
2886 2012-03-15  David S. Miller  <davem@davemloft.net>
2887
2888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
2889         file.
2890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
2891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
2892         file.
2893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
2894         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
2895         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
2896         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
2897         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
2898         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
2899         sysdep routines.
2900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2901
2902         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
2903         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
2904
2905         * sysdeps/sparc/sparc-ifunc.h: New file.
2906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
2907         sparc-ifunc.h
2908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
2909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2910         Likewise.
2911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
2912         Likewise.
2913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
2914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
2915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
2917         Likewise.
2918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
2919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
2920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
2921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
2922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
2923         Likewise.
2924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
2925         Likewise.
2926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
2927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
2928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
2929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
2930         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
2931         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
2932         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
2933         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
2934         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
2935         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
2936         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
2937         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
2938         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
2939         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
2940         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
2941         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
2942         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
2943         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
2944         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
2945         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
2946         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
2947         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
2948         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
2949         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
2950
2951 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2952
2953         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
2954         scaling.
2955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2956
2957 2012-03-15  Andreas Jaeger  <aj@suse.de>
2958
2959         [BZ #13852]
2960         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
2961         ieee754/flt-32 implementation for sin, cos and sincos.
2962         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
2963         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2964         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2965         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2966         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
2967         ieee754/flt-32 implementation for tan.
2968
2969         * math/libm-test.inc (cos_test): Enable some large input tests for
2970         float as well
2971         (sin_test): Likewise.
2972         (sincos_test): Likewise.
2973         (tan_test): Add tests for large input.
2974
2975         * sysdeps/i386/fpu/libm-test-ulps: Update.
2976
2977 2012-03-15  Andreas Jaeger  <aj@suse.de>
2978
2979         [BZ #13658]
2980         * math/libm-test.inc (cos_test): Add more test cases.
2981         (sin_test): Likewise.
2982         (sincos_test): Likewise.
2983
2984 2012-03-15  Andreas Jaeger  <aj@suse.de>
2985
2986         [BZ #13837]
2987         * math/libm-test.inc (cos_test): Add a test case for large input
2988         value.
2989         (sin_test): Likewise.
2990         (sincos_test): Likewise.
2991
2992 2012-03-15  Andreas Jaeger  <aj@suse.de>,
2993         Joseph Myers  <joseph@codesourcery.com>
2994
2995         [BZ #13658]
2996         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
2997         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
2998         * sysdeps/i386/fpu/branred.c: Likewise.
2999         * sysdeps/i386/fpu/dosincos.c: Likewise.
3000         * sysdeps/i386/fpu/mpa.c: Likewise.
3001         * sysdeps/i386/fpu/s_cos.S: Likewise.
3002         * sysdeps/i386/fpu/s_sin.S: Likewise.
3003         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3004         * sysdeps/i386/fpu/sincos32.c: Likewise.
3005
3006         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
3007         Define.
3008         (libc_feupdateenv_53bit): Define.
3009         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
3010         Define.
3011         (libc_feupdateenv_53bit): Define.
3012
3013         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
3014         53 bit (without extend i386 double precision).
3015
3016         * math/libm-test.inc (sincos_test): Add tests for large input.
3017         (sin): Likewise.
3018         (cos): Likewise.
3019
3020         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
3021
3022 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3023
3024         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3025
3026 2012-03-15  David S. Miller  <davem@davemloft.net>
3027
3028         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
3029         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
3030         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
3031         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
3032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
3033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
3034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
3035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
3036         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
3037         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
3038         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
3039         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
3040         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
3041         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
3042         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
3043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
3044         file.
3045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
3046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
3047         file.
3048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
3049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
3050         file.
3051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
3052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
3053         file.
3054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
3055         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
3056         fmin/fmax sysdep routines.
3057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3058
3059 2012-03-14  David S. Miller  <davem@davemloft.net>
3060
3061         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
3062         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
3063         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
3064         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
3065         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
3066         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
3067         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
3068         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
3069         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
3070         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
3071         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
3072         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
3073         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
3074         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
3075         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
3076         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
3077         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
3078         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
3079         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
3080         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
3081         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
3082         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
3083         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
3084         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
3085         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
3086         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
3087         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
3088         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
3089         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
3090         routines.
3091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
3092         file.
3093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
3094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
3095         file.
3096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
3097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
3098         file.
3099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
3100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
3101         file.
3102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
3103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
3104         file.
3105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
3106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
3107         file.
3108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
3109         file.
3110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
3111         file.
3112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
3113         file.
3114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
3115         New file.
3116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
3117         file.
3118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
3119         file.
3120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
3121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
3122         file.
3123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
3124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
3125         file.
3126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
3127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
3128         file.
3129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
3130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
3131         VIS3 routines.
3132
3133         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3134         New file.
3135
3136         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3137
3138         * sysdeps/sparc/configure.in: New file.
3139         * sysdeps/sparc/configure: Generate.
3140         * configure.in (libc_cv_sparc_as_vis3): Substitute.
3141         * configure: Regenerate.
3142         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
3143         * config.make.in (have-as-vis3): New.
3144         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
3145         available use -Av9d instead of -Av9a.
3146         * sysdeps/sparc/sparc64/Makefile: Likewise.
3147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
3148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
3149         New file.
3150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
3151         file.
3152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
3153         New file.
3154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
3155         file.
3156         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
3157         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
3158         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
3159         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
3160         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
3161
3162         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
3163         fzeros/fnegs to load 0x80000000 into a float register instead of
3164         using the stack.
3165         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
3166
3167 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3168
3169         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3170         bits/syscall.h.
3171         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
3172         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
3173         ($(inst_includedir)/bits/syscall.h): Remove rule.
3174         ($(objpfx)bits/syscall.d): Include instead of
3175         $(objpfx)syscall-list.d.
3176         (generated): Change syscall-list.h and syscall-list.d to
3177         bits/syscall.h and bits/syscall.d.
3178
3179 2012-03-14  Roland McGrath  <roland@hack.frob.com>
3180
3181         [BZ #13846]
3182         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
3183
3184 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3185
3186         [BZ #13841]
3187         * math/s_csqrt.c: Include <float.h>.
3188         (__csqrt): Scale large or subnormal inputs.
3189         * math/s_csqrtf.c: Likewise.
3190         * math/s_csqrtl.c: Likewise.
3191         * math/libm-test.inc (csqrt_test): Add more tests.
3192         * sysdeps/i386/fpu/libm-test-ulps: Update.
3193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3194
3195         [BZ #13840]
3196         * math/libm-test.inc (hypot_test): Add more tests.
3197
3198 2012-03-13  David S. Miller  <davem@davemloft.net>
3199
3200         [BZ #13840]
3201         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
3202         double-precision for the calculation instead of scaling.
3203
3204 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
3205
3206         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
3207         manipulate bits before adding and subtracting TWO52[sx].
3208         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
3209         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3210         Likewise.
3211         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
3212
3213 2012-03-13  David S. Miller  <davem@davemloft.net>
3214
3215         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
3216         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
3217         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
3218         rtld-global-offsets.h
3219         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3220
3221         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
3222         large parameters.
3223
3224         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
3225
3226         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
3227         'err' in the ifdef scope in which it is actually used.
3228
3229         * nss/nss_db/db-init.c: Include string.h
3230
3231 2012-03-12  David S. Miller  <davem@davemloft.net>
3232
3233         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
3234         masking out of the most significant byte of random value used.
3235         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3236         Fix coding style in previous change.
3237
3238         * sysdeps/unix/sysv/linux/kernel-features.h
3239         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
3240         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
3241         expression.
3242         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
3243         later.
3244
3245 2012-03-11  David S. Miller  <davem@davemloft.net>
3246
3247         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
3248         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
3249         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
3250         for 'resultvar' otherwise things get truncated on 64-bit.
3251
3252         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3253         Fix masking out of the most significant byte of random value used.
3254
3255         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3256
3257 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
3258
3259         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3260
3261 2012-03-09  David S. Miller  <davem@davemloft.net>
3262
3263         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
3264         variables with appropriate CPP guards.
3265         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
3266         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
3267         on resulting framesize and the management of the outregs buffer for pltexit.
3268         Preserve floating point return values across _dl_call_pltexit call.
3269         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
3270         framesize and the management of the outregs buffer for pltexit.
3271         Preserve floating point return values across _dl_call_pltexit
3272         call.
3273         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
3274         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
3275         (print_exit): Fix format string for return register value.
3276
3277 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
3278
3279         * sunrpc/Makefile (others): Add rpcgen.
3280         ($(objpfx)rpcgen): Remove special build rule and dependency on
3281         libc.
3282         * sunrpc/rpcgen.c: New file.
3283
3284 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
3285
3286         [BZ #13673]
3287         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
3288         * stdio-common/bug-vfprintf-nargs.c: Likewise.
3289         * sysdeps/i386/crti.S: Likewise.
3290         * sysdeps/i386/crtn.S: Likewise.
3291         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
3292         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
3293         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
3294         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
3295         * sysdeps/sh/crti.S: Likewise.
3296         * sysdeps/sh/crtn.S: Likewise.
3297         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3298
3299         [BZ #13673]
3300         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
3301         with URL.
3302         * locale/programs/locfile-kw.gperf: Likewise.
3303         * locale/programs/charmap-kw.h: Regenerated.
3304         * locale/programs/locfile-kw.h: Likewise.
3305
3306         [BZ #13673]
3307         * intl/plural.y: Replace FSF snail mail address with URL.
3308         * intl/plural.c: Regenerated.
3309
3310 2012-03-09  Richard Henderson  <rth@twiddle.net>
3311
3312         * include/math_private.h: Remove file.
3313         * math/math_private.h: Move file ...
3314         * sysdeps/generic/math_private.h: ... here.
3315
3316         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
3317         * sysdeps/powerpc/fpu/math_private.h: Likewise.
3318         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3319
3320         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
3321         and <math_private.h>.
3322         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
3323         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3324         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
3325         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3326         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
3327         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
3328         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3329         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3330         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3331         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3332         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3333         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3334         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3335         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3336         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3337         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3338         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3339         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3340         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3341         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
3342         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3343         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3344         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3345         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3346         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3347         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3348         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3349         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3350         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3351         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3352         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3353         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3354         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3355         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3356         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3357         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3358         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3359         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3360         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3361         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3362         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
3363         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3364         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
3365         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3366         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3367         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3368         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3369         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3370         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3371         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3372         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3373         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3374         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3375         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3376         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3377         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3378         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3379         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3380         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3381         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
3382         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3383         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3384         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3385         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3386         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3387         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3388         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3389         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3390         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
3391         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
3392         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
3393         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3394         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
3395         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3396         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
3397         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
3398         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
3399         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
3400         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
3401         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3402         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
3403         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
3404         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
3405         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3406         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3407         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
3408         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
3409         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
3410         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
3411         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
3412         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
3413         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
3414         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3415         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
3416         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
3417         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
3418         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
3419         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3420         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3421         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3422         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
3423         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
3424         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
3425         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
3426         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3427         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
3428         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
3429         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
3430         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3431         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3432         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3433         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3434         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
3435         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3436         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
3437         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3438         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3439         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3440         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3441         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3442         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3443         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3444         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3445         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
3446         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3447         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
3448         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
3449         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3450         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3451         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3452         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3453         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
3454         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3455         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3456         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3457         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
3458         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3459         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3460         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
3461         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3462         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3463         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
3464         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
3465         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
3466         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
3467         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3468         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3469         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
3470         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
3471         * sysdeps/ieee754/k_standard.c: Likewise.
3472         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
3473         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3474         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3475         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3476         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3477         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3478         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
3479         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3480         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3481         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3482         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3483         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3484         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3485         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3486         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3487         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3488         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3489         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3490         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3491         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
3492         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
3493         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
3494         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3495         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
3496         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3497         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
3498         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3499         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
3500         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
3501         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3502         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3503         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
3504         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3505         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3506         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3507         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
3508         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
3509         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
3510         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3511         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3512         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3513         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3514         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3515         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
3516         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3517         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3518         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
3519         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3520         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
3521         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3522         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3523         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3524         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3525         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
3526         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3527         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3528         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
3529         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
3530         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
3531         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
3532         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3533         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3534         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3535         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
3536         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
3537         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
3538         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
3539         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
3540         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
3541         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
3542         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
3543         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3544         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
3545         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
3546         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
3547         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
3548         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
3549         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
3550         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3551         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3552         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3553         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3554         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
3555         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
3556         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
3557         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
3558         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3559         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
3560         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3561         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
3562         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
3563         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
3564         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
3565         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3566         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
3567         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
3568         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
3569         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
3570         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
3571         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
3572         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
3573         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
3574         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3575         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
3576         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
3577         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3578         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3579         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
3580         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
3581         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
3582         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
3583         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3584         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
3585         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
3586         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
3587         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
3588         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
3589         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
3590         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3591         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
3592         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3593         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3594         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3595         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
3596         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
3597         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
3598         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3599         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
3600         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3601         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3602         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3603         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3604         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3605         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3606         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
3607         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
3608         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
3609         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3610         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3611         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3612         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3613         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3614         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3615         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3616         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
3617         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3618         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3619         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
3620         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
3621         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
3622         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3623         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
3624         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
3625         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3626         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
3627         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
3628         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3629         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
3630         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
3631         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3632         * sysdeps/ieee754/s_lib_version.c: Likewise.
3633         * sysdeps/ieee754/s_matherr.c: Likewise.
3634         * sysdeps/ieee754/s_signgam.c: Likewise.
3635         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3636         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3637         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
3638         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
3639         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
3640         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3641         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
3642         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
3643         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3644         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
3645         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3646         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
3647         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
3648         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
3649         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
3650         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
3651         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3652         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
3653         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3654         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3655         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3656
3657 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3658
3659         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
3660         * sunrpc/rpc_main.c: Likewise.
3661         * sunrpc/rpc_svcout.c: Likewise.
3662
3663 2012-03-09  David S. Miller  <davem@davemloft.net>
3664
3665         * include/math_private.h: New file.
3666
3667 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3668
3669         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
3670         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
3671         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
3672         from <bits/socket_type.h>.
3673         (enum __socket_type): Don't define here.
3674         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
3675         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3676         bits/socket_type.h.
3677
3678         [BZ #13566]
3679         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
3680         checking __USE_GNU.
3681
3682         * Makerules ($(inst_includedir)/%.h): New rule.
3683         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
3684         (install-others): Remove variable setting.
3685         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
3686
3687 2012-03-08  Richard Henderson  <rth@twiddle.net>
3688
3689         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
3690         from macro to inline function; merge with the
3691         !__LIBC_INTERNAL_MATH_INLINES version.
3692         (__ieee754_sqrtf): Likewise.
3693
3694         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
3695         to inline function.
3696         (__rintf, __floor, __floorf): Likewise.
3697
3698         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
3699         macro to inline function.
3700         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
3701
3702         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
3703         not <math/math_private.h>.
3704
3705 2012-03-08  David S. Miller  <davem@davemloft.net>
3706
3707         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
3708         copyright year.
3709         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
3710
3711 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
3712
3713         * resolv/gai_misc.c (handle_requests): Fix struct timespec
3714         normalization.
3715         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
3716         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
3717
3718 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
3719
3720         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
3721         be defined individually, they must be defined as a block.  Define
3722         S for printing a string instead of hidint the different by using a
3723         macro for adding the 'l'.
3724         * stdio-common/tst-fphex-wide.c: Adjust.
3725
3726 2012-03-07  Marek Polacek  <polacek@redhat.com>
3727
3728         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
3729
3730 2012-03-08  Marek Polacek  <polacek@redhat.com>
3731
3732         [BZ #13806]
3733         * stdio-common/Makefile (tests): Add tst-fphex-wide.
3734         * stdio-common/tst-fphex.c: Define a few macros to make the
3735         test reusable.  Use them.
3736         * stdio-common/tst-fphex-wide.c: New file.
3737
3738 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
3739
3740         [BZ #6911]
3741         * manual/macros.texi (gnusystems): New macro.
3742         (nongnusystems): Likewise.
3743         (gnulinuxhurdsystems): Likewise.
3744         (gnuhurdsystems): Likewise..
3745         (gnulinuxsystems): Likewise.
3746         * manual/charset.texi: Use new macros or @theglibc{} to refer to
3747         variants of the GNU system, not "GNU system".
3748         * manual/conf.texi: Likewise.
3749         * manual/errno.texi: Likewise.  Update example of errno macro
3750         expansion.
3751         * manual/filesys.texi: Likewise.
3752         (getumask): Document as specific to GNU/Hurd.
3753         * manual/install.texi: Likewise.  Reword some references to
3754         GNU/Linux.
3755         * manual/intro.texi: Likewise.
3756         * manual/io.texi: Likewise.
3757         (File Name Portability): Detail which constraints are inapplicable
3758         to all GNU systems and which are only inapplicable to GNU/Hurd.
3759         * manual/job.texi: Likewise.
3760         * manual/llio.texi: Likewise.
3761         (O_NOCTTY): Document as present on GNU/Linux.
3762         * manual/maint.texi: Likewise.
3763         * manual/memory.texi: Likewise.
3764         * manual/pattern.texi: Likewise.
3765         * manual/pipe.texi: Likewise.
3766         * manual/process.texi: Likewise.
3767         * manual/resource.texi: Likewise.
3768         (RUSAGE_CHILDREN): Remove statement about specifying a particular
3769         child on GNU/Hurd.
3770         * manual/setjmp.texi: Likewise.
3771         * manual/signal.texi: Likewise.
3772         * manual/startup.texi: Likewise.
3773         * manual/stdio.texi: Likewise.
3774         * manual/terminal.texi: Likewise.
3775         (ONLCR): Document as POSIX.
3776         (OXTABS): Document availability on GNU/Linux as XTABS.
3777         (ONOEOT): Document availability separately from other bits.
3778         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
3779         * manual/time.texi: Likewise.
3780         * manual/users.texi: Likewise.
3781         * INSTALL: Regenerated.
3782         * sysdeps/gnu/errlist.c: Regenerated.
3783
3784         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
3785         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
3786         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
3787         puts.
3788         * configure: Regenerated.
3789
3790 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
3791
3792         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
3793         default includes instead of AC_HEADER_CHECK.
3794         * sysdeps/i386/configure: Regenerated.
3795
3796         [BZ #10716]
3797         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
3798         * math/s_cacoshf.c (__cacoshf): Likewise.
3799         * math/s_cacoshl.c (__cacoshl): Likewise.
3800         * math/s_casinh.c (__casinh): Set signs of result from argument.
3801         * math/s_casinhf.c (__casinhf): Likewise.
3802         * math/s_casinhl.c (__casinhl): Likewise.
3803         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
3804         (casinh_test): Add more tests.
3805         * sysdeps/i386/fpu/libm-test-ulps: Update.
3806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3807
3808 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
3809
3810         * po/zh_TW.po: Update from translation team.
3811
3812         * login/Makefile (distribute): Remove variable.
3813         * catgets/Makefile: Likewise.
3814         * mach/Makefile: Likewise.
3815         * malloc/Makefile: Likewise.
3816         * misc/Makefile: Likewise.
3817         * iconv/Makefile: Likewise.
3818         * nscd/Makefile: Likewise.
3819         * hurd/Makefile: Likewise.
3820         * manual/Makefile: Likewise.
3821         * locale/Makefile: Likewise.
3822         * intl/Makefile: Likewise.
3823         * conform/Makefile: Likewise.
3824         * nss/Makefile: Likewise.
3825         * time/Makefile: Likewise.
3826         * soft-fp/Makefile: Likewise.
3827         * dirent/Makefile: Likewise.
3828         * gmon/Makefile: Likewise.
3829         * po/Makefile: Likewise.
3830         * rt/Makefile: Likewise.
3831         * socket/Makefile: Likewise.
3832         * math/Makefile: Likewise.
3833         * signal/Makefile: Likewise.
3834         * debug/Makefile: Likewise.
3835         * elf/Makefile: Likewise.
3836         * timezone/Makefile: Likewise.
3837         * stdlib/Makefile: Likewise.
3838         * iconvdata/Makefile: Likewise.
3839         * sunrpc/Makefile: Likewise.
3840         * io/Makefile: Likewise.
3841         * argp/Makefile: Likewise.
3842         * inet/Makefile: Likewise.
3843         * hesiod/Makefile: Likewise.
3844         * grp/Makefile: Likewise.
3845         * csu/Makefile: Likewise.
3846         * wctype/Makefile: Likewise.
3847         * crypt/Makefile: Likewise.
3848         * libio/Makefile: Likewise.
3849         * string/Makefile: Likewise.
3850         * nis/Makefile: Likewise.
3851         * resolv/Makefile: Likewise.
3852         * stdio-common/Makefile: Likewise.
3853         * wcsmbs/Makefile: Likewise.
3854         * dlfcn/Makefile: Likewise.
3855         * posix/Makefile: Likewise.
3856
3857         [BZ #6959]
3858         * timezone/Makefile: Don't install timezone files, just the programs
3859         and scripts.
3860
3861 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
3862
3863         * nss/databases.def: Add missing gshadow entry.
3864
3865         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
3866
3867 2012-03-06  Marek Polacek  <polacek@redhat.com>
3868
3869         [BZ #13726]
3870         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
3871         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
3872         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
3873         * stdio-common/tst-long-dbl-fphex.c: New file.
3874
3875 2012-03-06  David S. Miller  <davem@davemloft.net>
3876
3877         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3878         (set_obp_int): New function.
3879         (get_obp_int): New function.
3880         (__get_clockfreq_via_dev_openprom): Likewise.
3881         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3882         Avoid unused variable warnings on 'val' and use builtin_expect.
3883         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
3884         __builtin_expect.
3885         (INLINE_CLONE_SYSCALL): Likewise.
3886
3887 2012-03-05  David S. Miller  <davem@davemloft.net>
3888
3889         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3890
3891 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
3892
3893         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3894
3895         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
3896         only for |x| >= 40.
3897         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3898
3899 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
3900
3901         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
3902         Replace gettimeofday with __vdso_gettimeofday.
3903
3904         * sysdeps/unix/sysv/linux/x86_64/init-first.c
3905         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
3906         __vdso_clock_gettime and __vdso_getcpu.
3907
3908         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
3909         time with __vdso_time.
3910
3911 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
3912
3913         * manual/lang.texi (size_t): Note types to which size_t may be
3914         equivalent with the GNU C Library, but do not describe when
3915         differences between them are significant.
3916
3917 2012-03-05  Andreas Jaeger  <aj@suse.de>
3918
3919         * sysdeps/i386/fpu/libm-test-ulps: Update.
3920
3921 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
3922
3923         [BZ #3976]
3924         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
3925         (__ieee754_pow): Save and restore rounding mode and use
3926         round-to-nearest for main computations.
3927         * math/libm-test.inc (pow_test_tonearest): New function.
3928         (pow_test_towardzero): Likewise.
3929         (pow_test_downward): Likewise.
3930         (pow_test_upward): Likewise.
3931         (main): Call the new functions.
3932         * sysdeps/i386/fpu/libm-test-ulps: Update.
3933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3934
3935         [BZ #3976]
3936         * math/libm-test.inc (cosh_test_tonearest): New function.
3937         (cosh_test_towardzero): Likewise.
3938         (cosh_test_downward): Likewise.
3939         (cosh_test_upward): Likewise.
3940         (sinh_test_tonearest): Likewise.
3941         (sinh_test_towardzero): Likewise.
3942         (sinh_test_downward): Likewise.
3943         (sinh_test_upward): Likewise.
3944         (main): Call the new functions.
3945         * sysdeps/i386/fpu/libm-test-ulps: Update.
3946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3947
3948 2012-03-05  Tom de Vries  <tom@codesourcery.com>
3949
3950         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
3951         default stack guard is set in last bytes.
3952         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
3953
3954 2012-03-05  Kees Cook  <keescook@chromium.org>
3955
3956         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
3957
3958         [BZ #13656]
3959         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
3960         possibly allocate from heap instead of stack.
3961         * stdio-common/bug-vfprintf-nargs.c: New file.
3962         * stdio-common/Makefile (tests): Add nargs overflow test.
3963
3964 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
3965
3966         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3967
3968 2012-03-03  Marek Polacek  <polacek@redhat.com>
3969
3970         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
3971         * math/math_private.h: Likewise.
3972         * stdlib/tst-strtod.c: Likewise.
3973         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3974         * sysdeps/x86_64/bits/atomic.h: Likewise.
3975
3976 2012-03-02  David S. Miller  <davem@davemloft.net>
3977
3978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
3979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
3980         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
3981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
3982         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
3983         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
3984         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
3985         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
3986
3987 2012-03-02  Roland McGrath  <roland@hack.frob.com>
3988
3989         [BZ #13792]
3990         * manual/examples/README: New file, says the example source files
3991         can be used under GPL>=2.
3992         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
3993         line containing just "*/".
3994         * manual/examples/add.c: Add copyright header (GPL>=2).
3995         * manual/examples/argp-ex1.c: Likewise.
3996         * manual/examples/argp-ex2.c: Likewise.
3997         * manual/examples/argp-ex3.c: Likewise.
3998         * manual/examples/argp-ex4.c: Likewise.
3999         * manual/examples/atexit.c: Likewise.
4000         * manual/examples/db.c: Likewise.
4001         * manual/examples/dir.c: Likewise.
4002         * manual/examples/dir2.c: Likewise.
4003         * manual/examples/execinfo.c: Likewise.
4004         * manual/examples/filecli.c: Likewise.
4005         * manual/examples/filesrv.c: Likewise.
4006         * manual/examples/fmtmsgexpl.c: Likewise.
4007         * manual/examples/genpass.c: Likewise.
4008         * manual/examples/inetcli.c: Likewise.
4009         * manual/examples/inetsrv.c: Likewise.
4010         * manual/examples/isockad.c: Likewise.
4011         * manual/examples/longopt.c: Likewise.
4012         * manual/examples/memopen.c: Likewise.
4013         * manual/examples/memstrm.c: Likewise.
4014         * manual/examples/mkfsock.c: Likewise.
4015         * manual/examples/mkisock.c: Likewise.
4016         * manual/examples/mygetpass.c: Likewise.
4017         * manual/examples/pipe.c: Likewise.
4018         * manual/examples/popen.c: Likewise.
4019         * manual/examples/rprintf.c: Likewise.
4020         * manual/examples/search.c: Likewise.
4021         * manual/examples/select.c: Likewise.
4022         * manual/examples/setjmp.c: Likewise.
4023         * manual/examples/sigh1.c: Likewise.
4024         * manual/examples/sigusr.c: Likewise.
4025         * manual/examples/stpcpy.c: Likewise.
4026         * manual/examples/strdupa.c: Likewise.
4027         * manual/examples/strftim.c: Likewise.
4028         * manual/examples/strncat.c: Likewise.
4029         * manual/examples/subopt.c: Likewise.
4030         * manual/examples/swapcontext.c: Likewise.
4031         * manual/examples/termios.c: Likewise.
4032         * manual/examples/testopt.c: Likewise.
4033         * manual/examples/testpass.c: Likewise.
4034         * manual/examples/timeval_subtract.c: Likewise.
4035
4036         [BZ #13792]
4037         * manual/time.texi (Elapsed Time): Move timeval_subtract example
4038         function to ...
4039         * manual/timeval_subtract.c.texi: ... here, new file.
4040
4041 2012-03-02  David S. Miller  <davem@davemloft.net>
4042
4043         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
4044
4045 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
4046
4047         [BZ #3976]
4048         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
4049         (__sin): Save and restore rounding mode and use round-to-nearest
4050         for all computations.
4051         (__cos): Save and restore rounding mode and use round-to-nearest
4052         for all computations.
4053         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
4054         <fenv.h>.
4055         (tan): Save and restore rounding mode and use round-to-nearest for
4056         all computations.
4057         * math/libm-test.inc (cos_test_tonearest): New function.
4058         (cos_test_towardzero): Likewise.
4059         (cos_test_downward): Likewise.
4060         (cos_test_upward): Likewise.
4061         (sin_test_tonearest): Likewise.
4062         (sin_test_towardzero): Likewise.
4063         (sin_test_downward): Likewise.
4064         (sin_test_upward): Likewise.
4065         (tan_test_tonearest): Likewise.
4066         (tan_test_towardzero): Likewise.
4067         (tan_test_downward): Likewise.
4068         (tan_test_upward): Likewise.
4069         (main): Call the new functions.
4070         * sysdeps/i386/fpu/libm-test-ulps: Update.
4071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4072
4073         [BZ #10135]
4074         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
4075         small n, then large n, before computing and testing k+n.
4076         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
4077         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
4078         Likewise.
4079         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
4080         Likewise.
4081         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
4082         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
4083         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
4084         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
4085         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4086         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4087         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
4088         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
4089         * math/libm-test.inc (scalbn_test): Add more tests.
4090         (scalbln_test): Likewise.
4091
4092         * manual/filesys.texi (mode_t): Describe constraints on size and
4093         signedness, not exact equivalence to a particular type.
4094         (ino_t): Likewise.
4095         (ino64_t): Likewise.
4096         (dev_t): Likewise.
4097         (nlink_t): Likewise.
4098         (blkcnt_t): Likewise.
4099         (blkcnt64_t): Likewise.
4100         * manual/llio.texi (off_t): Likewise.
4101
4102         [BZ #3976]
4103         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
4104         (__ieee754_exp): Save and restore rounding mode and use
4105         round-to-nearest for all computations.
4106         * math/libm-test.inc (exp_test_tonearest): New function.
4107         (exp_test_towardzero): Likewise.
4108         (exp_test_downward): Likewise.
4109         (exp_test_upward): Likewise.
4110         (main): Call the new functions.
4111         * sysdeps/i386/fpu/libm-test-ulps: Update.
4112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4113
4114 2012-03-01  Chris Demetriou  <cgd@google.com>
4115
4116         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
4117         have predictable order.
4118
4119 2012-03-01  David S. Miller  <davem@davemloft.net>
4120
4121         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
4122
4123         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
4124         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
4125         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
4126         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
4127
4128         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
4129         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
4130         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
4131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
4132         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
4133         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
4134         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
4135         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
4136         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
4137
4138         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4139
4140         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
4141         * sysdeps/sparc/fpu/libm-test-ulps: to here.
4142         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
4143
4144         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
4145         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4146         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4147         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
4148         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
4149         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
4150         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
4151         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4152         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4153         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
4154         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
4155         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4156         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4157         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4158         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4159         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4160         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
4161         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
4162         * sysdeps/sparc/elf/configure: Regenerated.
4163
4164 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
4165
4166         * configure.in (AS, LD): Require binutils 2.20 or later.
4167         * configure: Regenerated.
4168         * manual/install.texi (Tools for Compilation): Give binutils 2.20
4169         as required minimum version.
4170         * INSTALL: Regenerated.
4171
4172         [BZ #2541]
4173         [BZ #4108]
4174         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
4175         before squaring exponent.
4176         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
4177         bottom long double and 27 bits of top long double before squaring
4178         exponent.
4179         * math/libm-test.inc (erfc_test): Add more tests.
4180         * sysdeps/i386/fpu/libm-test-ulps: Update.
4181         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4183
4184 2012-03-01  Kai Tietz  <ktietz@redhat.com>
4185
4186         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
4187         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
4188         containing bit-fields.
4189         * soft-fp/extended.h (_FP_UNION_E): Likewise.
4190         * soft-fp/single.h (_FP_UNION_S): Likewise.
4191         * soft-fp/double.h (_FP_UNION_D): Likewise.
4192
4193 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4194
4195         [BZ #13786]
4196         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
4197         not include ../strcmp.S.
4198         [USE_AS_STRNCASECMP_L]: Likewise.
4199         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
4200         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
4201         * sysdeps/i386/i686/multiarch/strncase_l-c.c
4202         (__strncasecmp_l_ia32): Define as alias to
4203         __strncasecmp_l_nonascii.
4204
4205         [BZ #5794]
4206         * math/libm-test.inc (expm1_test): Add test for bug 5794.
4207         * sysdeps/i386/fpu/libm-test-ulps: Update.
4208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4209
4210         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
4211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4212
4213 2012-02-29  Jeff Law  <law@redhat.com>
4214
4215         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
4216         out of bounds read.
4217
4218 2012-02-29  Marek Polacek  <polacek@redhat.com>
4219
4220         [BZ #13706]
4221         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
4222         * elf/Makefile: Add rules to run tst-unused-dep.out.
4223
4224 2012-02-28  David S. Miller  <davem@davemloft.net>
4225
4226         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
4227         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
4228         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
4229         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
4230         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
4231         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
4232
4233 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4234
4235         * math/libm-test.inc (llround_test): Move one test from
4236         lround_test.  Use TEST_f_L in moved test.
4237         (lround_test): Move misplaced test to llround_test.  Add testcase
4238         from bug 2561.
4239
4240 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
4241
4242         * sysdeps/x86_64/fpu/e_expf.S: New file.
4243         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
4244
4245 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
4246
4247         [BZ #13637]
4248         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
4249         of remain_len that may cause incomplete multi-byte character and
4250         false match.
4251         * posix/bug-regex33.c: New file.
4252         * posix/Makefile (tests): Add bug-regex33.
4253
4254 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
4255
4256         * manual/macros.texi: New file.
4257         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
4258         * manual/libc.texinfo: Include macros.texi.
4259         * manual/creatute.texi: Likewise.
4260         * manual/install.texi: Likewise.
4261         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
4262         @glibcadj{} in references to the GNU C Library.
4263         * manual/charset.texi: Likewise.
4264         * manual/conf.texi: Likewise.
4265         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
4266         when not using those macros.
4267         * manual/creature.texi: Likewise.
4268         * manual/crypt.texi: Likewise.
4269         * manual/errno.texi: Likewise.
4270         * manual/filesys.texi: Likewise.
4271         * manual/header.texi: Likewise.
4272         * manual/install.texi: Likewise.
4273         * manual/intro.texi: Likewise.
4274         * manual/io.texi: Likewise.
4275         * manual/job.texi: Likewise.
4276         * manual/lang.texi: Likewise.
4277         * manual/libc.texiinfo: Likewise.
4278         * manual/llio.texi: Likewise.
4279         * manual/locale.texi: Likewise.
4280         * manual/maint.texi: Likewise.
4281         * manual/math.texi: Likewise.
4282         * manual/memory.texi: Likewise.
4283         * manual/message.texi: Likewise.
4284         * manual/nss.texi: Likewise.
4285         * manual/pattern.texi: Likewise.
4286         * manual/process.texi: Likewise.
4287         * manual/resource.texi: Likewise.
4288         * manual/search.texi: Likewise.
4289         * manual/setjmp.texi: Likewise.
4290         * manual/signal.texi: Likewise.
4291         * manual/socket.texi: Likewise.
4292         * manual/startup.texi: Likewise.
4293         * manual/stdio.texi: Likewise.
4294         * manual/string.texi: Likewise.
4295         * manual/sysinfo.texi: Likewise.
4296         * manual/syslog.texi: Likewise.
4297         * manual/terminal.texi: Likewise.
4298         * manual/time.texi: Likewise.
4299         * manual/users.texi: Likewise.
4300         * INSTALL: Regenerated.
4301         * NOTES: Regenerated.
4302         * sysdeps/gnu/errlist.c: Regenerated.
4303
4304 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
4305
4306         * include/dirent.h: Include <dirstream.h> before
4307         <dirent/dirent.h>.
4308
4309 2012-02-28  David S. Miller  <davem@davemloft.net>
4310
4311         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
4312         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
4313         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
4314         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
4315
4316 2012-02-27  David S. Miller  <davem@davemloft.net>
4317
4318         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
4319         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
4320         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
4321         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
4322
4323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
4324         frame pointer instead of stack pointer relative arg slot.
4325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4326         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4327         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4328
4329 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
4330
4331         [BZ #3992]
4332         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
4333
4334 2012-02-27  David S. Miller  <davem@davemloft.net>
4335
4336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
4337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
4340         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4341         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4342         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
4343         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
4344
4345 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4346
4347         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
4348         later.  Allow versions 5-9.
4349         * configure: Regenerated.
4350         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
4351         required minimum version and 4.6 as recommended version.  Do not
4352         mention bugs in GCC 2.7 and 2.8.
4353         * INSTALL: Regenerated.
4354
4355 2012-02-27  David S. Miller  <davem@davemloft.net>
4356
4357         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
4358         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
4359         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
4360         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
4361         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
4362         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
4363         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
4364         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
4365
4366         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
4367         manipulate bits before adding and subtracting TWO112[sx].
4368         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4369
4370 2012-02-27  Roland McGrath  <roland@hack.frob.com>
4371
4372         [BZ #13775]
4373         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
4374         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
4375         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
4376         being in POSIX, because they are in 1003.1-2008.
4377
4378         * rt/tst-aio.c: Include <fcntl.h>.
4379         * rt/tst-aio7.c: Likewise.
4380         * rt/tst-aio64.c: Likewise.
4381
4382         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
4383
4384 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4385
4386         * manual/install.texi (--with-headers): Describe headers as
4387         interface headers, not private headers.
4388         (Specific advice for GNU/Linux systems): Describe use of headers
4389         from "make headers_install", not private headers from older
4390         kernels.
4391         * INSTALL: Regenerated.
4392         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
4393         Change to 2.6.19.
4394         * sysdeps/unix/sysv/linux/configure: Regenerated.
4395
4396         * manual/llio.texi (fclean): Remove documentation.
4397
4398         * manual/Makefile (libc-texi-generated): New variable.  Include
4399         version.texi.
4400         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
4401         $(libc-texi-generated), not duplicated list of files.
4402         (version.texi, stamp-version): New rules.
4403         (realclean): Remove $(libc-texi-generated), not individual files
4404         from that list.  Do not remove dir-add.texinfo.
4405         * manual/libc.texinfo: Comment out uses of edition numbers and
4406         references to printed manual.  Remove last-updated dates.
4407         (EDITION): Comment out.
4408         (ISBN): Likewise.
4409         (VERSION, UPDATED): Remove.
4410         (version.texi): Include.
4411
4412 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
4413
4414         * sysdeps/posix/spawni.c: Include <signal.h>.
4415         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
4416         * sysdeps/pthread/aio_fsync.c: Likewise.
4417
4418 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
4419
4420         * conform/Makefile (tests): Run only when not cross-compiling and
4421         when fast-check is not defined.
4422
4423         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
4424         * conform/data/limits.h-data: Fixes for POSIX2008.
4425         * conform/run-conformtest.sh: Run all tests.
4426         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
4427         headers.
4428         * include/bits/dlfcn.h: Likewise.
4429         * include/langinfo.h: Likewise.
4430         * include/monetary.h: Likewise.
4431         * include/sys/poll.h: Likewise.
4432
4433         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
4434         for __USE_GNU.
4435         * posix/spawn.h: Define __need_sigset_t.
4436         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
4437         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
4438         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
4439         to get sigevent_t only.
4440         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
4441         only for __USE_GNU.
4442         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4443         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
4444         process_vm_writev only for __USE_GNU.
4445         * termios/termios.h: Declare tcgetsid also for POSIX2008.
4446
4447         * conform/Makefile: For now ignore errors from run-conformtest.
4448         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
4449         POSIX to avoid namespace pollution.  Don't prepend headers.
4450         * conform/data/aio.h-data: Fixes for POSIX testing.
4451         * conform/data/fcntl.h-data: Likewise.
4452         * conform/data/glob.h-data: Likewise.
4453         * conform/data/grp.h-data: Likewise.
4454         * conform/data/pthread.h-data: Likewise.
4455         * conform/data/pwd.h-data: Likewise.
4456         * conform/data/signal.h-data: Likewise.
4457         * conform/data/spawn.h-data: Likewise.
4458         * conform/data/stdio.h-data: Likewise.
4459         * conform/data/stdlib.h-data: Likewise.
4460         * conform/data/stropts.h-data: Likewise.
4461         * conform/data/sys/mman.h-data: Likewise.
4462         * conform/data/sys/stat.h-data: Likewise.
4463         * conform/data/sys/types.h-data: Likewise.
4464         * conform/data/sys/wait.h-data: Likewise.
4465         * conform/data/time.h-data: Likewise.
4466         * conform/data/unistd.h-data: Likewise.
4467         * conform/data/utime.h-data: Likewise.
4468
4469         * io/sys/stat.h: fchmod was always in POSIX.
4470         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
4471         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
4472         * rt/aio.h: Define __need_timespec before including <time.h>.
4473         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
4474         struct.  Add forward declaration of pthread_attr_t and use it in
4475         sigevent.
4476         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4477         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4478         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
4479         always remove CLK_TCK definition.
4480
4481 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
4482
4483         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
4484
4485 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
4486
4487         * conform/run-conformtest.sh: New file.
4488         * conform/Makefile: Run run-conformtest for tests.
4489         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
4490         support.
4491
4492         * conform/data/uchar.h-data: New file.
4493         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
4494         * conform/data/arpa/inet.h-data: Likewise.
4495         * conform/data/assert.h-data: Likewise.
4496         * conform/data/complex.h-data: Likewise.
4497         * conform/data/cpio.h-data: Likewise.
4498         * conform/data/ctype.h-data: Likewise.
4499         * conform/data/dirent.h-data: Likewise.
4500         * conform/data/dlfcn.h-data: Likewise.
4501         * conform/data/errno.h-data: Likewise.
4502         * conform/data/fcntl.h-data: Likewise.
4503         * conform/data/float.h-data: Likewise.
4504         * conform/data/fmtmsg.h-data: Likewise.
4505         * conform/data/fnmatch.h-data: Likewise.
4506         * conform/data/ftw.h-data: Likewise.
4507         * conform/data/glob.h-data: Likewise.
4508         * conform/data/grp.h-data: Likewise.
4509         * conform/data/iconv.h-data: Likewise.
4510         * conform/data/inttypes.h-data: Likewise.
4511         * conform/data/langinfo.h-data: Likewise.
4512         * conform/data/libgen.h-data: Likewise.
4513         * conform/data/limits.h-data: Likewise.
4514         * conform/data/locale.h-data: Likewise.
4515         * conform/data/math.h-data: Likewise.
4516         * conform/data/monetary.h-data: Likewise.
4517         * conform/data/mqueue.h-data: Likewise.
4518         * conform/data/ndbm.h-data: Likewise.
4519         * conform/data/net/if.h-data: Likewise.
4520         * conform/data/netdb.h-data: Likewise.
4521         * conform/data/netinet/in.h-data: Likewise.
4522         * conform/data/nl_types.h-data: Likewise.
4523         * conform/data/poll.h-data: Likewise.
4524         * conform/data/pthread.h-data: Likewise.
4525         * conform/data/pwd.h-data: Likewise.
4526         * conform/data/regex.h-data: Likewise.
4527         * conform/data/sched.h-data: Likewise.
4528         * conform/data/search.h-data: Likewise.
4529         * conform/data/semaphore.h-data: Likewise.
4530         * conform/data/setjmp.h-data: Likewise.
4531         * conform/data/signal.h-data: Likewise.
4532         * conform/data/spawn.h-data: Likewise.
4533         * conform/data/stdarg.h-data: Likewise.
4534         * conform/data/stdio.h-data: Likewise.
4535         * conform/data/stdlib.h-data: Likewise.
4536         * conform/data/string.h-data: Likewise.
4537         * conform/data/strings.h-data: Likewise.
4538         * conform/data/stropts.h-data: Likewise.
4539         * conform/data/sys/ipc.h-data: Likewise.
4540         * conform/data/sys/mman.h-data: Likewise.
4541         * conform/data/sys/msg.h-data: Likewise.
4542         * conform/data/sys/resource.h-data: Likewise.
4543         * conform/data/sys/select.h-data: Likewise.
4544         * conform/data/sys/sem.h-data: Likewise.
4545         * conform/data/sys/shm.h-data: Likewise.
4546         * conform/data/sys/socket.h-data: Likewise.
4547         * conform/data/sys/stat.h-data: Likewise.
4548         * conform/data/sys/statvfs.h-data: Likewise.
4549         * conform/data/sys/time.h-data: Likewise.
4550         * conform/data/sys/timeb.h-data: Likewise.
4551         * conform/data/sys/times.h-data: Likewise.
4552         * conform/data/sys/types.h-data: Likewise.
4553         * conform/data/sys/uio.h-data: Likewise.
4554         * conform/data/sys/un.h-data: Likewise.
4555         * conform/data/sys/utsname.h-data: Likewise.
4556         * conform/data/sys/wait.h-data: Likewise.
4557         * conform/data/syslog.h-data: Likewise.
4558         * conform/data/tar.h-data: Likewise.
4559         * conform/data/termios.h-data: Likewise.
4560         * conform/data/utime.h-data: Likewise.
4561         * conform/data/utmpx.h-data: Likewise.
4562         * conform/data/varargs.h-data: Likewise.
4563         * conform/data/wchar.h-data: Likewise.
4564         * conform/data/wctype.h-data: Likewise.
4565         * conform/data/wordexp.h-data: Likewise.
4566
4567         * include/stropts.h: New file.
4568         * include/uchar.h: New file.
4569         * include/aio.h: Changes to allow conformtest.pl to use the headers.
4570         * include/assert.h: Likewise.
4571         * include/ctype.h: Likewise.
4572         * include/dirent.h: Likewise.
4573         * include/dlfcn.h: Likewise.
4574         * include/fcntl.h: Likewise.
4575         * include/fnmatch.h: Likewise.
4576         * include/glob.h: Likewise.
4577         * include/grp.h: Likewise.
4578         * include/libio.h: Likewise.
4579         * include/locale.h: Likewise.
4580         * include/math.h: Likewise.
4581         * include/net/if.h: Likewise.
4582         * include/netdb.h: Likewise.
4583         * include/netinet/in.h: Likewise.
4584         * include/pthread.h: Likewise.
4585         * include/pwd.h: Likewise.
4586         * include/regex.h: Likewise.
4587         * include/sched.h: Likewise.
4588         * include/search.h: Likewise.
4589         * include/setjmp.h: Likewise.
4590         * include/signal.h: Likewise.
4591         * include/stdio.h: Likewise.
4592         * include/stdlib.h: Likewise.
4593         * include/string.h: Likewise.
4594         * include/sys/cdefs.h: Likewise.
4595         * include/sys/mman.h: Likewise.
4596         * include/sys/msg.h: Likewise.
4597         * include/sys/resource.h: Likewise.
4598         * include/sys/select.h: Likewise.
4599         * include/sys/socket.h: Likewise.
4600         * include/sys/stat.h: Likewise.
4601         * include/sys/statvfs.h: Likewise.
4602         * include/sys/time.h: Likewise.
4603         * include/sys/times.h: Likewise.
4604         * include/sys/uio.h: Likewise.
4605         * include/sys/utsname.h: Likewise.
4606         * include/sys/wait.h: Likewise.
4607         * include/termios.h: Likewise.
4608         * include/time.h: Likewise.
4609         * include/ulimit.h: Likewise.
4610         * include/unistd.h: Likewise.
4611         * include/utime.h: Likewise.
4612         * include/wchar.h: Likewise.
4613         * include/wctype.h: Likewise.
4614         * include/wordexp.h: Likewise.
4615
4616         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
4617
4618         * time/time.h: TIME_UTC must be a macro.
4619         Make timespec_get available for ISO C11 only as well.
4620
4621 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
4622
4623         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
4624         Reported by Peng Haitao <penght@cn.fujitsu.com>.
4625
4626 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4627
4628         * configure.in: Use -o not -a in test for unsupported multi-arch.
4629
4630 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4631
4632         * manual/texinfo.tex: Update to version 2012-01-19.16.
4633
4634 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4635
4636         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
4637
4638 2012-02-24  Roland McGrath  <roland@hack.frob.com>
4639
4640         [BZ #13738]
4641         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
4642         * manual/fdl-1.3.texi: New file.
4643         * manual/fdl-1.1.texi: File removed.
4644
4645         [BZ #13738]
4646         * manual/libc.texinfo (FDL_VERSION): New @set.
4647         Use it for mention of FDL in cover text.
4648         (Documentation License): Use it in @include file name.
4649
4650 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4651             Roland McGrath  <roland@hack.frob.com>
4652
4653         [BZ #5461]
4654         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
4655         not LONG_LONG_MAX and LONG_LONG_MIN.
4656         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
4657         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
4658         name.
4659         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
4660
4661 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4662
4663         [BZ #2547]
4664         [BZ #11365]
4665         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
4666         manipulate bits before adding and subtracting TWO23[sx].
4667         * math/libm-test.inc (nearbyint_test): Add more tests.
4668
4669 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4670
4671         [BZ #2548]
4672         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
4673         bits before adding and subtracting TWO23[sx].
4674         * math/libm-test.inc (rint_test): Add more tests.
4675         (rint_test_tonearest): Likewise.
4676         (rint_test_towardzero): Likewise.
4677         (rint_test_downward): Likewise.
4678         (rint_test_upward: Likewise.
4679
4680 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4681
4682         [BZ #10110]
4683         * include/stdc-predef.h: New file.  Extracted from features.h.
4684         * include/features.h: Include stdc-predef.h.
4685         * Makefile (headers): Add stdc-predef.h.
4686         * CONFORMANCE (Compiler limitations): Update.
4687
4688 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4689
4690         * manual/libc.texinfo (VERSION, UPDATED): Revert.
4691
4692 2012-02-21  David S. Miller  <davem@davemloft.net>
4693
4694         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
4695         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4696
4697 2012-02-20  David S. Miller  <davem@davemloft.net>
4698
4699         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
4700         using a normal save/restore sequence, rather than allocating a
4701         dummy stack frame just to store a frame pointer and restore.
4702         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4703
4704 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4705
4706         * manual/install.texi: Fix stray word in line-wrapped comment.
4707
4708 2012-02-20  David S. Miller  <davem@davemloft.net>
4709
4710         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
4711         both binutils and gcc support GOTDATA.
4712
4713         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
4714         "rd %pc" in the PIC register setup sequences.
4715
4716         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
4717         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
4718         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4719         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
4720         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4721         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
4722         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4723         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4724         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4725         (SYSCALL_ERROR_HANDLER): Likewise.
4726         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4727         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4728         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4729         (SYSCALL_ERROR_HANDLER): Likewise.
4730
4731         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
4732         (HAVE_GCC_GOTDATA): New.
4733         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
4734         relocation support in both binutils and gcc.
4735         * sysdeps/sparc/elf/configure: Regenerate.
4736
4737         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
4738         * sysdeps/sparc/sparc32/elf/configure: Delete.
4739         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
4740         * sysdeps/sparc/sparc64/elf/configure: Delete.
4741         * sysdeps/sparc/elf/configure.in: New file.
4742         * sysdeps/sparc/elf/configure: Generate.
4743
4744         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
4745         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
4746         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
4747         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
4748         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
4749
4750 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4751
4752         * manual/install.texi: Do not mention specific glibc version
4753         numbers.
4754         * manual/libc.texinfo (VERSION, UPDATED): Update.
4755         (@copying): Use @copyright{} and range of years.
4756
4757 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4758
4759         [BZ #13695]
4760         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
4761         [crti.S not in sysdirs] (generated): Do not append.
4762         [crti.S not in sysdirs] (omit-deps): Likewise.
4763         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
4764         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
4765         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
4766         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
4767         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
4768         Likewise.
4769         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
4770         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
4771         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
4772         * csu/defs.awk: Remove file.
4773         * sysdeps/generic/initfini.c: Likewise.
4774         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
4775         variable.
4776         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
4777         Likewise.
4778
4779 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4780
4781         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
4782         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
4783         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
4784         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
4785         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4786         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
4787         <bits/epoll.h>.
4788         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
4789         (__EPOLL_PACKED): Define to empty if not defined by
4790         <bits/epoll.h>.
4791         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
4792         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4793         bits/epoll.h.
4794
4795 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4796
4797         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
4798         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
4799         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
4800         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
4801         <bits/timerfd.h>.
4802         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
4803         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4804         bits/timerfd.h.
4805
4806 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4807
4808         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
4809         in C locale.
4810         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4811         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4812         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
4813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4814
4815 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
4816
4817         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4818         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4819
4820 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
4821
4822         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
4823         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
4824         defined.
4825         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
4826         Likewise.
4827         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
4828         entry for 2.16.
4829
4830 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
4831
4832         * math/w_acos.c: Use non-signaling floating-point comparisons.
4833         * math/w_acosf.c: Likewise.
4834         * math/w_acosh.c: Likewise.
4835         * math/w_acoshf.c: Likewise.
4836         * math/w_acoshl.c: Likewise.
4837         * math/w_acosl.c: Likewise.
4838         * math/w_asin.c: Likewise.
4839         * math/w_asinf.c: Likewise.
4840         * math/w_asinl.c: Likewise.
4841         * math/w_atanh.c: Likewise.
4842         * math/w_atanhf.c: Likewise.
4843         * math/w_atanhl.c: Likewise.
4844         * math/w_exp2.c: Likewise.
4845         * math/w_exp2f.c: Likewise.
4846         * math/w_exp2l.c: Likewise.
4847         * math/w_j0.c: Likewise.
4848         * math/w_j0f.c: Likewise.
4849         * math/w_j0l.c: Likewise.
4850         * math/w_j1.c: Likewise.
4851         * math/w_j1f.c: Likewise.
4852         * math/w_j1l.c: Likewise.
4853         * math/w_jn.c: Likewise.
4854         * math/w_jnf.c: Likewise.
4855         * math/w_log.c: Likewise.
4856         * math/w_log10.c: Likewise.
4857         * math/w_log10f.c: Likewise.
4858         * math/w_log10l.c: Likewise.
4859         * math/w_log2.c: Likewise.
4860         * math/w_log2f.c: Likewise.
4861         * math/w_log2l.c: Likewise.
4862         * math/w_logf.c: Likewise.
4863         * math/w_logl.c: Likewise.
4864         * math/w_sqrt.c: Likewise.
4865         * math/w_sqrtf.c: Likewise.
4866         * math/w_sqrtl.c: Likewise.
4867         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4868         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
4869         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4870         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
4871         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
4872
4873 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4874
4875         [BZ #9739]
4876         * manual/string.texi (strnlen): Use correct parameter name in
4877         equivalent expression.
4878
4879 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4880
4881         [BZ #11174]
4882         * manual/users.texi (seteuid): Consistently use neweuid for
4883         argument name.
4884
4885 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4886
4887         [BZ #13704]
4888         * manual/nss.texi (Services in the NSS configuration): Correct
4889         list of services in example configuration file.
4890
4891 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
4892
4893         [BZ #11322]
4894         * manual/arith.texi: Remove statements about negative zero
4895         behaving identically to zero.
4896
4897 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
4898
4899         [BZ #5993]
4900         * manual/install.texi: Do not document upgrading from libc5.
4901
4902 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
4903
4904         [BZ #4596]
4905         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
4906
4907 2012-02-18  David S. Miller  <davem@davemloft.net>
4908
4909         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
4910         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
4911         %o7 across the call.
4912         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
4913         instead.
4914         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
4915         SETUP_PIC_REG_LEAF.
4916         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4917         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
4918         * sysdeps/sparc/crtn.S: Likewise.
4919
4920 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
4921
4922         * aout/Makefile: Remove.
4923
4924 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
4925
4926         [BZ #13058]
4927         * manual/examples/argp-ex1.c (main): Format definition in GNU
4928         style.
4929         * manual/examples/argp-ex2.c (main): Likewise.
4930         * manual/examples/argp-ex3.c (main): Likewise.
4931         * manual/examples/argp-ex4.c (main): Likewise.
4932         * manual/examples/longopt.c (main): Use new-style prototype
4933         definition.
4934         * manual/examples/strncat.c (main): Specify return type and use
4935         (void) for arguments.
4936         * manual/examples/subopt.c (main): Use char **argv argument.
4937
4938 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4939
4940         [BZ #5077]
4941         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
4942         rounding modes.
4943
4944 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
4945
4946         [BZ #6907]
4947         * manual/string.texi (strchr): Change when strchrnul is
4948         recommended.
4949
4950 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
4951
4952         [BZ #174]
4953         * manual/locale.texi (setlocale): Document LOCPATH.
4954
4955 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4956
4957         [BZ #10210]
4958         * manual/process.texi (execle): Move @dots{} before last argument.
4959
4960 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
4961
4962         [BZ #12047]
4963         * manual/charset.texi (Generic Charset Conversion): Fix typo
4964         (LC_TYPE -> LC_CTYPE).
4965
4966 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
4967
4968         [BZ #5805]
4969         * manual/arith.texi (scalbn): Use @var{} on parameter names.
4970         (scalbnf): Likewise.
4971         (scalbnl): Likewise.
4972         (scalbln): Likewise.
4973         (scalblnf): Likewise.
4974         (scalblnl): Likewise.
4975         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
4976         (vwarnx): Likewise.
4977         (verr): Likewise.
4978         (verrx): Likewise.
4979         * manual/filesys.texi (telldir): Use braces around return type.
4980         * manual/llio.texi (mmap): Add space after comma.
4981         (mmap64): Likewise.
4982         * manual/math.texi (jn): Use @var{} on parameter names.
4983         (jnf): Likewise.
4984         (jnl): Likewise.
4985         (yn): Likewise.
4986         (ynf): Likewise.
4987         (ynl): Likewise.
4988         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
4989         line.
4990         * manual/resource.texi (ulimit): Use @dots{} instead of literal
4991         "...".
4992         (sched_get_priority_min): Remove semicolon on @deftypefun line.
4993         (sched_get_priority_max): Likewise.
4994         * manual/signal.texi (sigvec): Add space after comma.
4995         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
4996         names.
4997         (if_indextoname): Likewise.
4998         (if_freenameindex): Likewise.
4999         (sendto): Use ',' instead of '.' in prototype.
5000         * manual/startup.texi (syscall): Use @dots{} instead of literal
5001         "...".
5002         * manual/stdio.texi (__fpending): Separate initial words of
5003         paragraph from @deftypefun line.
5004         * manual/syslog.texi (syslog): Use @dots{} instead of literal
5005         "...".
5006         (vsyslog): Use @var{} on parameter names.
5007         * manual/terminal.texi (stty): Use @var{} on parameter names.
5008         * manual/users.texi (getutmp): Use @var{} on parameter names.
5009         (getutmpx): Likewise.
5010
5011 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5012
5013         [BZ #6884]
5014         * manual/stdio.texi (fopen): Fix typos in description of
5015         ",ccs=STRING".
5016
5017 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
5018
5019         [BZ #4026]
5020         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
5021         get clock_id definition.
5022
5023 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
5024
5025         [BZ #4822]
5026         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
5027         (madvise): Cast every argument to void on its own.
5028
5029 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5030
5031         [BZ #9902]
5032         * manual/startup.texi (Exit Status): Fix typo.
5033
5034 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5035
5036         [BZ #10140]
5037         * manual/examples/argp-ex1.c: Include <stdlib.h>.
5038         * manual/examples/argp-ex2.c: Likewise.
5039         * manual/examples/argp-ex3.c: Likewise.
5040
5041 2012-02-16  Richard Henderson  <rth@redhat.com>
5042
5043         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
5044         * sysdeps/s390/s390-32/initfini.c: Remove.
5045         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
5046         * sysdeps/s390/s390-64/initfini.c: Remove.
5047
5048 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5049
5050         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
5051         compiler output for sysdeps/generic/initfini.c.
5052         * sysdeps/sh/elf/initfini.c: Remove file.
5053
5054 2012-02-16  David S. Miller  <davem@davemloft.net>
5055
5056         [BZ #11494]
5057         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
5058
5059         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
5060         * sysdeps/sparc/crti.S: New file.
5061         * sysdeps/sparc/crtn.S: New file.
5062         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
5063         * sysdeps/sparc/sparc64/Makefile: Likewise.
5064
5065 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
5066
5067         [BZ #3335]
5068         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
5069
5070 2012-02-15  Roland McGrath  <roland@hack.frob.com>
5071
5072         [BZ #4822]
5073         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
5074
5075         * mach/devstream.c (cookie_io_functions_t): Macro removed.
5076         (write, read, close): Likewise.
5077         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5078
5079 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
5080
5081         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
5082         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
5083         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
5084         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
5085         <bits/signalfd.h>.
5086         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
5087         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5088         bits/signalfd.h.
5089
5090 2012-02-14  Marek Polacek  <polacek@redhat.com>
5091
5092         * sysdeps/x86_64/crti.S: New file.
5093         * sysdeps/x86_64/crtn.S: New file.
5094         * sysdeps/x86_64/elf/initfini.c: Remove file.
5095
5096 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5097
5098         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
5099         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
5100         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
5101         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
5102         <bits/inotify.h>.
5103         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
5104         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5105         bits/inotify.h.
5106
5107 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5108
5109         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
5110         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
5111         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
5112         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
5113         <bits/eventfd.h>.
5114         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
5115         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5116         bits/eventfd.h.
5117
5118 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
5119
5120         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
5121         __feraiseexcept instead of feraiseexcept.
5122
5123         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
5124         nanosleep invocations.
5125         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
5126         strings, and add error checking for a nanosleep invocations.
5127
5128 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5129
5130         Replace FSF snail mail address with URLs, as per GNU coding standards.
5131         Most of the snail mail addresses were wrong anyway, and omitting
5132         them makes the source code easier to maintain.  Almost all of the
5133         changes are to license notices and to locale LC_IDENTIFICATION
5134         addresses, except for this one:
5135         * manual/libc.texinfo: In "Published by", give the FSF's URL,
5136         not its snail mail address.
5137
5138 2012-02-09  Richard Henderson  <rth@twiddle.net>
5139
5140         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
5141         of kernel-features.h.
5142
5143         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
5144
5145 2012-02-08  Marek Polacek  <polacek@redhat.com>
5146
5147         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
5148         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
5149         * sysdeps/gnu/_G_config.h: Likewise.
5150         * sysdeps/generic/_G_config.h: Likewise.
5151
5152 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
5153
5154         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
5155         tests.
5156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5157
5158         * sysdeps/powerpc/powerpc32/crti.S: New file.
5159         * sysdeps/powerpc/powerpc32/crtn.S: New file.
5160         * sysdeps/powerpc/powerpc64/crti.S: New file.
5161         * sysdeps/powerpc/powerpc64/crtn.S: New file.
5162
5163         * Makeconfig (have-initfini): Don't set.
5164         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
5165         * configure.in (nopic_initfini): Don't substitute.
5166         * config.h.in (HAVE_INITFINI): Don't #undef.
5167         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
5168         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
5169
5170 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
5171
5172         Support crti.S and crtn.S provided directly by architectures.
5173         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
5174         [crti.S in sysdirs] (omit-deps): Likewise.
5175         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
5176         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
5177         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
5178         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
5179         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
5180         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
5181         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
5182         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
5183         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
5184         compiler output for sysdeps/generic/initfini.c.
5185         * sysdeps/i386/elf/Makefile: Remove file.
5186         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
5187
5188 2012-02-07  Marek Polacek  <polacek@redhat.com>
5189
5190         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
5191         * sysdeps/gnu/_G_config.h: Likewise.
5192         * sysdeps/mach/hurd/_G_config.h: Likewise.
5193
5194 2012-02-07  Marek Polacek  <polacek@redhat.com>
5195
5196         * math/Makefile (tests): Add tst-CMPLX2.
5197         * math/tst-CMPLX2.c: New file.
5198
5199 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
5200
5201         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5202
5203         * math/libm-test.inc (jn_test): Add missing L suffix.
5204
5205 2012-02-06  Marek Polacek  <polacek@redhat.com>
5206
5207         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
5208         * sysdeps/i386/fpu/e_powf.S: Likewise.
5209         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5210         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5211         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5212         * sysdeps/i386/fpu/e_pow.S: Likewise.
5213         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5214         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5215         * sysdeps/i386/fpu/s_expm1.S: Likewise.
5216         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5217         * sysdeps/i386/fpu/e_log2.S: Likewise.
5218         * sysdeps/i386/fpu/e_log2l.S: Likewise.
5219         * sysdeps/i386/fpu/e_scalb.S: Likewise.
5220         * sysdeps/i386/fpu/e_powl.S: Likewise.
5221         * sysdeps/i386/fpu/s_log1p.S: Likewise.
5222         * sysdeps/i386/fpu/e_log10f.S: Likewise.
5223         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5224         * sysdeps/i386/fpu/e_logl.S: Likewise.
5225         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5226         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
5227         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5228         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5229         * sysdeps/i386/fpu/e_log2f.S: Likewise.
5230         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5231         * sysdeps/i386/fpu/e_log.S: Likewise.
5232         * sysdeps/i386/fpu/s_cexp.S: Likewise.
5233         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5234         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
5235         * sysdeps/i386/fpu/e_logf.S: Likewise.
5236         * sysdeps/i386/fpu/e_log10l.S: Likewise.
5237         * sysdeps/i386/fpu/e_atanh.S: Likewise.
5238         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
5239         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5240         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5241         * sysdeps/i386/fpu/e_log10.S: Likewise.
5242         * sysdeps/i386/fpu/s_frexp.S: Likewise.
5243         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5244         * sysdeps/i386/fpu/s_asinh.S: Likewise.
5245         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5246         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5247         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5248         * sysdeps/i386/asm-syntax.h: Likewise.
5249         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5250         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5251         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5252         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5253         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
5254         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5255         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5256         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5257         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5258         * sysdeps/powerpc/sysdep.h: Likewise.
5259         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5260         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5261
5262 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5263
5264         [BZ #411]
5265         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
5266
5267 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5268
5269         * sysdeps/i386/sysdep.h: Include <features.h>.
5270         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
5271         version.
5272
5273 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
5274
5275         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
5276         Define.
5277         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
5278         LOAD_PIC_REG_STR.
5279
5280 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5281
5282         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
5283         (SETUP_PIC_REG): Use GET_PC_THUNK.
5284         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
5285         macro.
5286
5287 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5288
5289         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
5290         for non-PIC compilation.
5291         (SETUP_PIC_REG): Add .p2align directive.
5292         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
5293         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
5294         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5295         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5296         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5297         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5298         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
5299         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
5300         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5301         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5302         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5303         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5304         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5305         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5306         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5307         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5308         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5309         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5310         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5311         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5312         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5313         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5314         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5315         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
5316         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5317         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5318         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5319         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5320         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5321         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5322         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5323         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5324         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5325         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5326         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5327         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5328         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5329         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5330         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5331         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5332         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5333
5334 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5335
5336         * math/tst-CMPLX.c: Include <stdio.h>.
5337
5338 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
5339
5340         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
5341         float.
5342         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5343         * sysdeps/sparc/bits/mathdef.h: Likewise.
5344
5345 2012-01-31  Marek Polacek  <polacek@redhat.com>
5346
5347         * libio/libio.h: Don't define _PARAMS.
5348         * locale/programs/config.h: Don't define PARAMS.
5349         * stdlib/strtol_l.c: Likewise.
5350         (__strtol_l): Remove PARAMS from the prototype.
5351
5352 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
5353
5354         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
5355         names.  Just use the correct names.  Remove unnecessary wrapper
5356         functions.
5357         * malloc/arena.c: Likewise.
5358         * malloc/hooks.c: Likewise.
5359
5360         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
5361         ARENA_TEST says not to.  Simplify test for creation of a new arena.
5362         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
5363
5364 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
5365
5366         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
5367         into tail calls.
5368         (update_get_addr): New function.
5369         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
5370         GET_ADDR_MODULE parameter.
5371
5372 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5373
5374         * crypt/cert.c: Remove __STDC__ conditionals.
5375         * crypt/crypt-entry.c: Likewise.
5376         * crypt/crypt_util.c: Likewise.
5377         * libio/filedoalloc.c: Likewise.
5378         * libio/fileops.c: Likewise.
5379         * libio/genops.c: Likewise.
5380         * libio/iofclose.c: Likewise.
5381         * libio/iofdopen.c: Likewise.
5382         * libio/iofopen.c: Likewise.
5383         * libio/iofopen64.c: Likewise.
5384         * libio/iogetdelim.c: Likewise.
5385         * libio/iopopen.c: Likewise.
5386         * libio/obprintf.c: Likewise.
5387         * libio/oldfileops.c: Likewise.
5388         * libio/oldiofclose.c: Likewise.
5389         * libio/oldiofdopen.c: Likewise.
5390         * libio/oldiofopen.c: Likewise.
5391         * libio/oldiopopen.c: Likewise.
5392         * libio/wfiledoalloc.c: Likewise.
5393         * libio/wgenops.c: Likewise.
5394         * locale/programs/xmalloc.c: Likewise.
5395         * misc/syslog.c: Likewise.
5396         * stdio-common/xbug.c: Likewise.
5397         * string/memchr.c: Likewise.
5398         * string/memcmp.c: Likewise.
5399         * string/memrchr.c: Likewise.
5400         * string/rawmemchr.c: Likewise.
5401         * sysdeps/posix/getcwd.c: Likewise.
5402         * time/strftime_l.c: Likewise.
5403
5404 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5405
5406         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
5407         * config.make.in (config-cflags-sse2avx): Define.
5408         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
5409         Fix typo.
5410
5411 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
5412
5413         * scripts/config.guess: Update from upstream config git repository.
5414         * scripts/config.sub: Likewise.
5415
5416 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
5417
5418         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
5419         (EM_NUM): Update.
5420         (R_TILEPRO_*, R_TILEGX_*): New macros.
5421
5422         * scripts/firstversions.awk: Fix bug in version range handling.
5423
5424         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
5425
5426         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
5427
5428         * include/sys/epoll.h: New file.
5429         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
5430         libc_hidden_def.
5431
5432 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
5433
5434         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
5435         Avoid unnecessary __WORDSIZE == 64 test.
5436         (fmaxf): Use VEX format if possible.
5437         (fmax): Likewise.
5438         (fminf): Likewise.
5439         (fmin): Likewise.
5440
5441         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
5442         * math/math_private.h: Remove libc_fegetround* and
5443         libc_fesetround*.
5444         * sysdeps/i386/configure.in: Check for -msse2avx.
5445         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
5446         also if SSE2AVX is defined.
5447         Remove libc_fegetround* and libc_fesetround*.
5448         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
5449         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
5450         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
5451         of HAS_YMM_USABLE.
5452         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5453         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5454         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5455         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5456         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5457
5458         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
5459
5460 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5461
5462         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
5463         size is not set.
5464         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
5465
5466 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
5467
5468         [BZ #13618]
5469         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
5470         relocation.
5471         * Makeconfig (libm): Define.
5472         * elf/Makefile: Add rules to build and run tst-relsort1.
5473         * elf/tst-relsort1.c: New file.
5474         * elf/tst-relsort1mod1.c: New file.
5475         * elf/tst-relsort1mod2.c: New file.
5476
5477 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
5478
5479         * math/s_ldexp.c: Remove __STDC__ conditionals.
5480         * math/s_ldexpf.c: Likewise.
5481         * math/s_ldexpl.c: Likewise.
5482         * math/s_nextafter.c: Likewise.
5483         * math/s_nexttowardf.c: Likewise.
5484         * math/s_significand.c: Likewise.
5485         * math/s_significandf.c: Likewise.
5486         * math/s_significandl.c: Likewise.
5487         * math/w_jnl.c: Likewise.
5488         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5489         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5490         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5491         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5492         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5493         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5494         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
5495         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5496         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5497         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5498         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5499         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5500         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5501         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5502         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5503         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5504         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5505         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5506         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5507         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5508         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5509         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5510         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5511         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5512         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5513         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5514         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5515         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5516         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5517         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5518         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5519         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5520         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5521         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5522         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5523         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5524         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5525         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5526         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5527         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5528         * sysdeps/ieee754/k_standard.c: Likewise.
5529         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5530         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5531         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5532         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5533         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5534         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5535         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5536         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5537         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5539         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5540         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5541         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5542         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5543         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5544         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5545         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5546         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5547         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5548         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5549         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5550         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5551         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5552         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5553         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5554         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5555         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5556         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5557         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5558         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5559         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5560         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
5561         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5562         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5563         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5564         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5565         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
5566         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5567         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5568         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
5569         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5570         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5571         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
5572         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
5573         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5574         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5575         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
5576         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5577         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5578         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
5579         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5580         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5581         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5582         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5583         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5584         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5585         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
5586         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5587         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5588         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5589         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5590         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5591         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5592         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5593         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5594         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5595         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5596         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5597         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5598         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5599         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5600         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5601         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5602         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5603         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5604         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5605         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5606         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5607         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5608         * sysdeps/ieee754/s_matherr.c: Likewise.
5609         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5610         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5611         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5612         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5613
5614 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5615
5616         * crypt/md5.h: Remove __STDC__ conditionals.
5617         * libio/libioP.h: Likewise.
5618         * locale/programs/config.h: Likewise.
5619         * sysdeps/generic/sysdep.h: Likewise.
5620         * sysdeps/i386/asm-syntax.h: Likewise.
5621         * sysdeps/s390/asm-syntax.h: Likewise.
5622         * sysdeps/unix/sysdep.h: Likewise.
5623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5625
5626 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5627
5628         * libio/libio.h: Remove __STDC__ conditionals.
5629         * malloc/obstack.h: Likewise.
5630         * math/complex.h: Likewise.
5631         * math/math.h: Likewise.
5632         * sysdeps/generic/_G_config.h: Likewise.
5633         * sysdeps/gnu/_G_config.h: Likewise.
5634         * sysdeps/mach/hurd/_G_config.h: Likewise.
5635         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5636         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5637         * sysdeps/sparc/bits/mathdef.h: Likewise.
5638
5639 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
5640
5641         [BZ #13583]
5642         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
5643         Clean up HAS_* macros.
5644         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
5645         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
5646         possible.
5647         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
5648         HAS_AVX.
5649         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5650         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5651         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5652         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5653         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5654
5655 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
5656
5657         * elf/tst-unique3.cc (gets): Remove declaration.
5658         * elf/tst-unique3lib.cc (gets): Likewise.
5659         * elf/tst-unique3lib2.cc (gets): Likewise.
5660         * elf/tst-unique4.cc (gets): Likewise.
5661
5662 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
5663
5664         * include/stdio.h: Add C++ protection.  Add gets declarations and
5665         definitions.
5666         * debug/tst-chk1.c: Don't declare gets here.
5667         * stdio-common/tst-gets.c: Likewise.
5668
5669 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5670
5671         * posix/glob: Remove directory.
5672
5673 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5674
5675         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
5676
5677 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
5678
5679         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
5680         of the non-standard EPFNOSUPPORT.
5681
5682 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5683
5684         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
5685         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
5686         ANYWHERE set to 1 only on KERN_NO_SPACE error.
5687
5688 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
5689
5690         * wcsmbs/uchar.h: Test __STDC_VERSION__.
5691
5692 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
5693
5694         * nscd/aicache.c (addhstaiX): Do not cache negative results of
5695         transient errors.
5696         * nscd/grpcache.c (cache_addgr): Likewise.
5697         * nscd/hstcache.c (cache_addhst): Likewise.
5698         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5699         * nscd/pwdcache.c (cache_addpw): Likewise.
5700         * nscd/servicescache.c (cache_addserv): Likewise.
5701
5702 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
5703
5704         * malloc/malloc.c: Various cleanups.
5705         * malloc/hooks.c: Likewise.
5706
5707         * stdlib/Makefile (tests): Add bug-fmtmsg1.
5708         * stdlib/bug-fmtmsg1.c: New file.
5709
5710         * stdlib/fmtmsg.c (init): Add missing unlock.
5711         Patch by Peng Haitao <penght@cn.fujitsu.com>.
5712
5713 2012-01-12  Marek Polacek  <polacek@redhat.com>
5714
5715         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
5716         and _GNU_SOURCE.
5717
5718 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
5719
5720         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
5721         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
5722         macro to ensure uniqueness of label name.
5723         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5724         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5725
5726 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
5727
5728         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
5729
5730         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
5731         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5732         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5733         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
5734
5735 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
5736
5737         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
5738
5739         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
5740         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5741         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5742
5743         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
5744
5745         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
5746         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5747         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5748         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5749
5750         * math/bits/math-finite.h: Add ldexp support.
5751
5752 2012-01-10  Marek Polacek  <polacek@redhat.com>
5753
5754         * locale/programs/localedef.h (show_archive_content): Add noreturn
5755         attribute.
5756
5757 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
5758
5759         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
5760
5761 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5762
5763         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
5764
5765         * io/Makefile (headers): Add bits/poll2.h.
5766
5767 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
5768
5769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
5770         typo #include statement.
5771
5772 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5773
5774         * include/sys/cdefs.h: Define __attribute_alloc_size.
5775         * catgets/gencat.c: Add alloc_size attribute and apply consistently
5776         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
5777         * elf/pldd.c: Likewise.
5778         * iconv/iconv_charmap.c: Likewise.
5779         * iconv/iconvconfig.c: Likewise.
5780         * iconv/strtab.c: Likewise.
5781         * locale/programs/locale.c: Likewise.
5782         * locale/programs/localedef.h: Likewise.
5783         * locale/programs/simple-hash.c: Likewise.
5784         * nscd/nscd.h: Likewise.
5785         * nss/makedb.c: Likewise.
5786         * sysdeps/generic/ldconfig.h: Likewise.
5787         * locale/programs/localedef.c: Remove xmalloc prototype.
5788         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
5789
5790 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
5791
5792         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
5793         appropriate.
5794
5795 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5796
5797         * math/Makefile (tests): Add tst-CMPLX.
5798         * math/tst-CMPLX.c: New file.
5799
5800         * math/complex.h (CMPLXL): Fix typo.
5801
5802         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
5803         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
5804         GLIBC_2.16.
5805         * debug/tst-chk1.c: Add poll and ppoll tests.
5806         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
5807         * include/sys/poll.h: Add hidden proto for ppoll.
5808         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
5809         * sysdeps/mach/hurd/ppoll.c: Likewise.
5810         * io/ppoll.c: Likewise.
5811         * debug/poll_chk.c: New file.
5812         * debug/ppoll_chk.c: New file.
5813         * include/bits/poll2.h: New file.
5814         * io/bits/poll2.h: New file.
5815
5816         [BZ #1350]
5817         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
5818
5819         * configure.in: static is always set to yes.  Remove.
5820         * config.make.in: Don't set build-static.
5821         * Makeconfig: Remove use of build-static.
5822         * dlfcn/Makefile: Likewise.
5823         * elf/Makefile: Likewise.
5824         * math/Makefile: Likewise.
5825         * misc/Makefile: Likewise.
5826         * nptl/Makefile: Likewise.
5827         * sysdeps/mach/hurd/Makefile: Likewise.
5828
5829         * configure.in: PWD_P is not used anymore.
5830         * config.make.in: Remove PWD_P entry.
5831
5832         * configure.in: Remove last remnants of RANLIB.
5833         No need to check for signed size_t anymore.
5834         Don't set libc_commonpagesize and libc_relro_required here for Alpha
5835         and IA-64.
5836         Remove __builtin_expect test because we require at least gcc 3.4.
5837         * aclocal.m4: Likewise.
5838
5839         * wcsmbs/mbrtoc16.c: Implement using towc function.
5840         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
5841         * wcsmbs/wcsmbsload.c: Likewise.
5842         * iconv/gconv_simple.c: Likewise.
5843         * iconv/gconv_int.h: Likewise.
5844         * iconv/gconv_builtin.h: Likewise.
5845         * iconv/iconv_prog.c: Remove CHAR16 handling.
5846
5847         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
5848
5849         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
5850
5851         * configure.in: Remove --with-elf and --enable-bounded options.
5852         Dont set base_machine for ia64.  More non-ELF conditions removed.
5853         Remove testing and setting of leading underscore information.
5854         * config.make.in (build-bounded): Set to no.
5855         * config.h.in: Remove NO_UNDERSCORES entry.
5856         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
5857         them.
5858         * csu/start.c: Remove !NO_UNDERSCORE code.
5859         * locale/localeinfo.h: Likewise.
5860         * sysdeps/generic/machine-gmon.h: Likewise.
5861         * sysdeps/generic/sysdep.h: Likewise.
5862         * sysdeps/i386/sysdep.h: Likewise.
5863         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5864         * sysdeps/mach/sysdep.h: Likewise.
5865         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5866         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5867         * sysdeps/sh/sysdep.h: Likewise.
5868         * sysdeps/sparc/sparc32/alloca.S: Likewise.
5869         * sysdeps/unix/i386/sysdep.S: Likewise.
5870         * sysdeps/unix/sparc/start.c: Likewise.
5871         * sysdeps/unix/sparc/sysdep.S: Likewise.
5872         * sysdeps/unix/sparc/sysdep.h: Likewise.
5873         * sysdeps/unix/start.c: Likewise.
5874         * sysdeps/unix/x86_64/sysdep.S: Likewise.
5875         * sysdeps/x86_64/sysdep.h: Likewise.
5876
5877 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
5878
5879         [BZ #13553]
5880         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
5881         for non-gcc.
5882         * argp/argp-fmtstream.h: Use const instead __const.
5883         * argp/argp.h: Likewise.
5884         * assert/assert.h: Likewise.
5885         * bits/fenv.h: Likewise.
5886         * bits/sched.h: Likewise.
5887         * bits/sigset.h: Likewise.
5888         * bits/sigthread.h: Likewise.
5889         * catgets/nl_types.h: Likewise.
5890         * conform/data/pthread.h-data: Likewise.
5891         * crypt/crypt-private.h: Likewise.
5892         * crypt/crypt.h: Likewise.
5893         * crypt/crypt_util.c: Likewise.
5894         * ctype/ctype.h: Likewise.
5895         * debug/execinfo.h: Likewise.
5896         * debug/mbsnrtowcs_chk.c: Likewise.
5897         * debug/mbsrtowcs_chk.c: Likewise.
5898         * debug/wcsnrtombs_chk.c: Likewise.
5899         * debug/wcsrtombs_chk.c: Likewise.
5900         * debug/wcstombs_chk.c: Likewise.
5901         * dirent/dirent.h: Likewise.
5902         * dlfcn/dlfcn.h: Likewise.
5903         * elf/neededtest4.c: Likewise.
5904         * grp/grp.h: Likewise.
5905         * gshadow/gshadow.h: Likewise.
5906         * iconv/gconv.h: Likewise.
5907         * iconv/gconv_int.h: Likewise.
5908         * iconv/gconv_simple.c: Likewise.
5909         * iconv/iconv.h: Likewise.
5910         * iconv/loop.c: Likewise.
5911         * iconv/skeleton.c: Likewise.
5912         * include/aio.h: Likewise.
5913         * include/aliases.h: Likewise.
5914         * include/argz.h: Likewise.
5915         * include/arpa/inet.h: Likewise.
5916         * include/assert.h: Likewise.
5917         * include/dirent.h: Likewise.
5918         * include/dlfcn.h: Likewise.
5919         * include/execinfo.h: Likewise.
5920         * include/fcntl.h: Likewise.
5921         * include/fenv.h: Likewise.
5922         * include/glob.h: Likewise.
5923         * include/grp.h: Likewise.
5924         * include/libintl.h: Likewise.
5925         * include/mntent.h: Likewise.
5926         * include/netdb.h: Likewise.
5927         * include/pwd.h: Likewise.
5928         * include/rpc/netdb.h: Likewise.
5929         * include/sched.h: Likewise.
5930         * include/search.h: Likewise.
5931         * include/shadow.h: Likewise.
5932         * include/signal.h: Likewise.
5933         * include/stdio.h: Likewise.
5934         * include/stdlib.h: Likewise.
5935         * include/string.h: Likewise.
5936         * include/sys/socket.h: Likewise.
5937         * include/sys/stat.h: Likewise.
5938         * include/sys/statfs.h: Likewise.
5939         * include/sys/statvfs.h: Likewise.
5940         * include/sys/syslog.h: Likewise.
5941         * include/sys/time.h: Likewise.
5942         * include/sys/uio.h: Likewise.
5943         * include/time.h: Likewise.
5944         * include/unistd.h: Likewise.
5945         * include/utmp.h: Likewise.
5946         * include/wchar.h: Likewise.
5947         * include/wctype.h: Likewise.
5948         * inet/aliases.h: Likewise.
5949         * inet/arpa/inet.h: Likewise.
5950         * inet/netinet/ether.h: Likewise.
5951         * inet/netinet/in.h: Likewise.
5952         * intl/libintl.h: Likewise.
5953         * io/bits/fcntl2.h: Likewise.
5954         * io/fcntl.h: Likewise.
5955         * io/ftw.h: Likewise.
5956         * io/sys/poll.h: Likewise.
5957         * io/sys/stat.h: Likewise.
5958         * io/sys/statfs.h: Likewise.
5959         * io/sys/statvfs.h: Likewise.
5960         * io/utime.h: Likewise.
5961         * libio/bits/stdio.h: Likewise.
5962         * libio/bits/stdio2.h: Likewise.
5963         * libio/libio.h: Likewise.
5964         * libio/libioP.h: Likewise.
5965         * libio/stdio.h: Likewise.
5966         * locale/lc-ctype.c: Likewise.
5967         * locale/locale.h: Likewise.
5968         * login/utmp.h: Likewise.
5969         * malloc/arena.c: Likewise.
5970         * malloc/malloc.c: Likewise.
5971         * malloc/malloc.h: Likewise.
5972         * malloc/mcheck.c: Likewise.
5973         * malloc/mtrace.c: Likewise.
5974         * math/bits/mathcalls.h: Likewise.
5975         * math/fenv.h: Likewise.
5976         * math/math_private.h: Likewise.
5977         * misc/bits/error.h: Likewise.
5978         * misc/bits/syslog.h: Likewise.
5979         * misc/err.h: Likewise.
5980         * misc/error.h: Likewise.
5981         * misc/fstab.h: Likewise.
5982         * misc/mntent.h: Likewise.
5983         * misc/regexp.h: Likewise.
5984         * misc/search.h: Likewise.
5985         * misc/sgtty.h: Likewise.
5986         * misc/sys/mman.h: Likewise.
5987         * misc/sys/syslog.h: Likewise.
5988         * misc/sys/uio.h: Likewise.
5989         * misc/sys/xattr.h: Likewise.
5990         * misc/ttyent.h: Likewise.
5991         * nis/rpcsvc/ypclnt.h: Likewise.
5992         * nss/nss.h: Likewise.
5993         * posix/bits/unistd.h: Likewise.
5994         * posix/fnmatch.h: Likewise.
5995         * posix/glob.h: Likewise.
5996         * posix/sched.h: Likewise.
5997         * posix/spawn.h: Likewise.
5998         * posix/sys/wait.h: Likewise.
5999         * posix/unistd.h: Likewise.
6000         * posix/wordexp.h: Likewise.
6001         * pwd/pwd.h: Likewise.
6002         * resolv/netdb.h: Likewise.
6003         * resource/sys/resource.h: Likewise.
6004         * rt/aio.h: Likewise.
6005         * rt/bits/mqueue2.h: Likewise.
6006         * rt/mqueue.h: Likewise.
6007         * shadow/shadow.h: Likewise.
6008         * signal/signal.h: Likewise.
6009         * socket/send.c: Likewise.
6010         * socket/sendto.c: Likewise.
6011         * socket/sys/socket.h: Likewise.
6012         * stdio-common/printf.h: Likewise.
6013         * stdlib/bits/stdlib.h: Likewise.
6014         * stdlib/fmtmsg.h: Likewise.
6015         * stdlib/monetary.h: Likewise.
6016         * stdlib/stdlib.h: Likewise.
6017         * stdlib/ucontext.h: Likewise.
6018         * streams/stropts.h: Likewise.
6019         * string/argz.h: Likewise.
6020         * string/bits/string2.h: Likewise.
6021         * string/string.h: Likewise.
6022         * string/strings.h: Likewise.
6023         * sunrpc/rpc/auth.h: Likewise.
6024         * sunrpc/rpc/auth_des.h: Likewise.
6025         * sunrpc/rpc/clnt.h: Likewise.
6026         * sunrpc/rpc/netdb.h: Likewise.
6027         * sunrpc/rpc/pmap_clnt.h: Likewise.
6028         * sunrpc/rpc/xdr.h: Likewise.
6029         * sysdeps/generic/inttypes.h: Likewise.
6030         * sysdeps/generic/net/if.h: Likewise.
6031         * sysdeps/generic/sys/swap.h: Likewise.
6032         * sysdeps/gnu/net/if.h: Likewise.
6033         * sysdeps/gnu/utmpx.h: Likewise.
6034         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
6035         * sysdeps/i386/i486/bits/string.h: Likewise.
6036         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
6037         * sysdeps/s390/bits/string.h: Likewise.
6038         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
6039         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
6040         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6041         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
6042         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6043         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6044         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6045         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
6046         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
6047         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6048         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
6049         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
6050         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
6051         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
6052         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6053         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
6054         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
6055         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6056         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6057         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6058         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6059         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
6060         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
6061         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6062         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
6063         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
6064         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
6065         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6066         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
6067         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
6068         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
6069         * sysvipc/sys/ipc.h: Likewise.
6070         * sysvipc/sys/msg.h: Likewise.
6071         * sysvipc/sys/sem.h: Likewise.
6072         * sysvipc/sys/shm.h: Likewise.
6073         * termios/termios.h: Likewise.
6074         * time/sys/time.h: Likewise.
6075         * time/time.h: Likewise.
6076         * wcsmbs/bits/wchar2.h: Likewise.
6077         * wcsmbs/uchar.h: Likewise.
6078         * wcsmbs/wchar.h: Likewise.
6079         * wctype/wctype.h: Likewise.
6080
6081         [BZ #13551]
6082         * Makeconfig: Remove all but ELF support including AIX support.
6083         * Makerules: Likewise.
6084         * config.h.in: Likewise.
6085         * config.make.in: Likewise.
6086         * configure: Likewise.
6087         * configure.in: Likewise.
6088         * csu/Makefile: Likewise.
6089         * csu/version.c: Likewise.
6090         * debug/Makefile: Likewise.
6091         * dlfcn/Makefile: Likewise.
6092         * elf/Makefile: Likewise.
6093         * extra-lib.mk: Likewise.
6094         * iconv/Makefile: Likewise.
6095         * include/libc-symbols.h: Likewise.
6096         * include/shlib-compat.h: Likewise.
6097         * resolv/Makefile: Likewise.
6098         * resolv/res_libc.c: Likewise.
6099         * rt/Makefile: Likewise.
6100         * sysdeps/i386/asm-syntax.h: Likewise.
6101         * sysdeps/i386/sysdep.h: Likewise.
6102         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6103         * sysdeps/mach/sysdep.h: Likewise.
6104         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
6105         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
6106         * sysdeps/s390/asm-syntax.h: Likewise.
6107         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6108         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6109         * sysdeps/sh/sysdep.h: Likewise.
6110         * sysdeps/unix/sparc/sysdep.h: Likewise.
6111         * sysdeps/wordsize-32/divdi3.c: Likewise.
6112         * sysdeps/x86_64/sysdep.h: Likewise.
6113
6114         * argp/Versions: Remove _argp_unlock_xxx.
6115
6116         [BZ #13559]
6117         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
6118         * abilist/libBrokenLocale.abilist: Likewise.
6119         * abilist/libanl.abilist: Likewise.
6120         * abilist/libc.abilist: Likewise.
6121         * abilist/libcrypt.abilist: Likewise.
6122         * abilist/libdl.abilist: Likewise.
6123         * abilist/libm.abilist: Likewise.
6124         * abilist/libnsl.abilist: Likewise.
6125         * abilist/libpthread.abilist: Likewise.
6126         * abilist/libresolv.abilist: Likewise.
6127         * abilist/librt.abilist: Likewise.
6128         * abilist/libthread_db.abilist: Likewise.
6129         * abilist/libutil.abilist: Likewise.
6130         * abilist/libnss_db.abilist: New file.
6131
6132         * scripts/abilist.awk: Add support for indirect functions.
6133
6134         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
6135
6136         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
6137
6138         * shlib-versions: Remove entries for ports architectures.
6139
6140         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
6141         files in ports.
6142         * elf/stackguard-macros.h: Remove support for IA-64.
6143         * elf/tst-auditmod1.c: Likewise.
6144         * sysdeps/generic/ldsodefs.h: Likewise.
6145
6146         * sysdeps/unix/sysv/linux/configure.in: Ports should define
6147         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
6148         configure files.
6149
6150         [BZ #13552]
6151         * configure.in: Remove --enable-omitfp support.
6152         * FAQ.in: Adjust.
6153         * config.make.in: Likewise.
6154         * Makeconfig: Likewise.
6155         * manual/install.texi: Likewise.
6156
6157         In case anyone cares, the IA-64 architecture could move to ports.
6158         * sysdeps/ia64/*: Removed.
6159         * sysdeps/unix/sysv/linux/ia64/*: Removed.
6160         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
6161
6162         [BZ #13555]
6163         * configure.in: Remove entries for unsupported architectures.
6164
6165         [BZ #13533]
6166         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
6167         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
6168         routines.
6169         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
6170         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
6171         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
6172         fall back to using wcrtomb.
6173         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
6174         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
6175         renaming.
6176         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
6177         * wcsmbs/tst-c16c32-1.c: New file.
6178
6179         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
6180         local variable.
6181
6182         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
6183
6184         * elf/tst-unique3.cc: Add explicit declaration of gets.
6185         * elf/tst-unique3lib.cc: Likewise.
6186         * elf/tst-unique3lib2.cc: Likewise.
6187         * elf/tst-unique4.cc: Likewise.
6188
6189         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
6190
6191 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
6192
6193         [BZ #13566]
6194         * assert/assert.h (static_assert): Don't define for C++.
6195         * libio/stdio.h (gets): Do declare for C++ <= C++11.
6196         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
6197
6198 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
6199
6200         * iconv/loop.c (single loop): Fix assertion in storing of
6201         remaining bytes.
6202
6203         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
6204
6205 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
6206
6207         * posix/getconf.c: Update copyright year.
6208         * nss/getent.c: Likewise.
6209         * nss/makedb.c: Likewise.
6210         * iconv/iconvconfig.c: Likewise.
6211         * iconv/iconv_prog.c: Likewise.
6212         * elf/ldconfig.c: Likewise.
6213         * elf/pldd.c: Likewise.
6214         * elf/sotruss.ksh: Likewise.
6215         * catgets/gencat.c: Likewise.
6216         * csu/version.c: Likewise.
6217         * elf/ldd.bash.in: Likewise.
6218         * elf/sprof.c (print_version): Likewise.
6219         * locale/programs/locale.c: Likewise.
6220         * locale/programs/localedef.c: Likewise.
6221         * login/programs/pt_chown.c: Likewise.
6222         * nscd/nscd.c (print_version): Likewise.
6223         * debug/xtrace.sh: Likewise.
6224         * malloc/memusage.sh: Likewise.
6225         * malloc/mtrace.pl: Likewise.
6226         * debug/catchsegv.sh: Likewise.
6227
6228 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
6229
6230         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
6231         pure attribute.
6232
6233 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
6234
6235         [BZ #13533]
6236         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
6237         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
6238         transformations.
6239         * iconv/gconv_int.h: Likewise.
6240         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
6241         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
6242         from libc for GLIBC_2.16.
6243         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
6244         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
6245         * wcsmbs/uchar.h: Really define mbstate_t.
6246         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
6247         * wcsmbs/c16rtomb.c: New file.
6248         * wcsmbs/mbrtoc16.c: New file.
6249         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
6250         for C/POSIX locale.
6251         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
6252         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
6253
6254         * wcsmbs/wchar.h: Add missing __restrict.
6255
6256 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6257
6258         [BZ #13532]
6259         * time/Makefile (routines): Add timespec_get.
6260         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
6261         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
6262         timespec for ISO C11.
6263         * time/timespec_get.c: New file.
6264         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
6265         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
6266
6267         [BZ #13531]
6268         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
6269         * stdlib/stdlib.h: Declare aligned_alloc.
6270         * Versions.def: Add GLIBC_2.16 for libc.
6271         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
6272
6273         [BZ 13527]
6274         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
6275         ISO C11.
6276
6277         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
6278         code.
6279
6280         [BZ #13528]
6281         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
6282
6283         [BZ #13529]
6284         * assert/assert.h (static_assert): Define.
6285
6286         * version.h: Update for 2.16 development version.
6287
6288         [BZ #13526]
6289         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
6290         _ISOC11_SOURCE.
6291
6292         * version.h (RELEASE): Bump for 2.15 release.
6293         * include/features.h (__GLIBC_MINOR__): Bump to 15.
6294
6295         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
6296         Patch by Marek Polacek <mpolacek@redhat.com>.
6297
6298         * bits/byteswap.h: Protect long long constants with __extension__.
6299         * sysdeps/i386/bits/byteswap.h: Likewise.
6300         * sysdeps/ia64/bits/byteswap.h: Likewise.
6301         * sysdeps/s390/bits/byteswap.h: Likewise.
6302         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6303
6304 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6305
6306         [BZ #13540]
6307         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
6308         destination buffer.
6309         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
6310
6311 2011-12-23  Marek Polacek  <polacek@redhat.com>
6312
6313         * elf/dl-addr.c (determine_info): Add inline keyword.
6314         * elf/tst-auditmod4b.c (check_avx): Likewise.
6315         * elf/tst-auditmod6b.c (check_avx): Likewise.
6316         * elf/tst-auditmod6c.c (check_avx): Likewise.
6317         * elf/tst-auditmod7b.c (check_avx): Likewise.
6318
6319 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6320
6321         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
6322         !__SSE_MATH__.
6323
6324 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6325
6326         [BZ #13540]
6327         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
6328         processing for last bytes.
6329
6330 2011-08-06  Bruno Haible  <bruno@clisp.org>
6331
6332         [BZ #13061]
6333         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
6334         U+0385, not to U+1FEE.
6335
6336         [BZ #13062]
6337         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
6338         entry for U+00A5 U+0301.
6339
6340 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6341
6342         [BZ #13166]
6343         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
6344         buffer for the output is too small.
6345
6346         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
6347         optimization.
6348
6349         [BZ #13185]
6350         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
6351         SSE flags if possible.
6352
6353 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6354
6355         [BZ #13540]
6356         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
6357         processing for last bytes.
6358
6359 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
6360
6361         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
6362         (syscall-list-default-options, syscall-list-default-condition)
6363         (syscall-list-includes): Define.
6364         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
6365         list of ABIs and options and #if conditions for each ABI.  Do not
6366         handle common syscalls between ABIs specially.
6367         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
6368         Remove.
6369         (syscall-list-variants, syscall-list-32bit-options)
6370         (syscall-list-32bit-condition, syscall-list-64bit-options)
6371         (syscall-list-64bit-condition): Define.
6372         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
6373         (syscall-list-variants, syscall-list-32bit-options)
6374         (syscall-list-32bit-condition, syscall-list-64bit-options)
6375         (syscall-list-64bit-condition): Define.
6376         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
6377         Remove.
6378         (syscall-list-variants, syscall-list-32bit-options)
6379         (syscall-list-32bit-condition, syscall-list-64bit-options)
6380         (syscall-list-64bit-condition): Define.
6381         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
6382         Remove.
6383         (syscall-list-variants, syscall-list-32bit-options)
6384         (syscall-list-32bit-condition, syscall-list-64bit-options)
6385         (syscall-list-64bit-condition): Define.
6386
6387 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6388
6389         * locale/iso-639.def: Add brx entry.
6390
6391         [BZ #13328]
6392         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
6393         Proposed by Mariusz_Cukr <marcukr@op.pl>.
6394
6395         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
6396         __feraiseexcept_renamed.
6397
6398 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6399
6400         [BZ #13538]
6401         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
6402         EPOLLET with unsigned values.
6403         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6404         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6405
6406         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
6407         to large cancellation.
6408         * math/s_cacoshf.c: Likewise.
6409         * math/s_cacoshl.c: Likewise.
6410
6411 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
6412
6413         [BZ #13305]
6414         [BZ #12786]
6415         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
6416         * math/s_cacoshf.c: Likewise.
6417         * math/s_cacoshl.c: Likewise.
6418
6419 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6420
6421         [BZ #13439]
6422         * iconv/gconv.h: Define __GCONV_SWAP.
6423         * iconvdata/unicode.c: The swap bit must be stored in __flags.
6424         * iconvdata/utf-16.c: Likewise.
6425         * iconvdata/utf-32.c: Likewise.
6426
6427 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
6428
6429         [BZ #13524]
6430         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
6431         numerator after shifting it by one limb.
6432
6433 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
6434
6435         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
6436         under [__USE_EXTERN_INLINES].
6437
6438 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6439
6440         [BZ #13446]
6441         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
6442
6443 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6444
6445         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
6446         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
6447         optimized code.
6448         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
6449         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
6450         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
6451         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
6452         for strncasecmp/strncasecmp_l compilation.
6453         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
6454         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
6455
6456 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
6457
6458         [BZ #13484]
6459         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
6460         of __asm__.
6461
6462 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6463
6464         [BZ #13506]
6465         * time/tzfile.c (__tzfile_read): Check values from file header.
6466
6467 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
6468
6469         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
6470         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
6471         * powerpc/powerpc32/dl-start.S: Likewise.
6472         * powerpc/powerpc32/elf/start.S: Likewise.
6473         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
6474         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
6475         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
6476         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
6477         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
6478         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
6479         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
6480         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6481         * powerpc/powerpc32/fpu/s_round.S: Likewise.
6482         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
6483         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
6484         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
6485         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
6486         * powerpc/powerpc32/memset.S: Likewise.
6487         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
6488         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6489         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6490         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6491         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6492         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
6493         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
6494         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
6495         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
6496         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
6497         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
6498         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
6499         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
6500
6501 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6502
6503         * math/libm-test.inc: Added more nearbyint tests.
6504         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
6505         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
6506         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
6507         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
6508
6509 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
6510
6511         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
6512         FD_CLOEXEC.
6513
6514 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6515
6516         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
6517         Add wcscpy-ssse3 wcscpy-c.
6518         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
6519         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
6520         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
6521         * sysdeps/x86_64/wcschr.S: New file.
6522         * sysdeps/x86_64/wcsrchr.S: New file.
6523         * string/test-strcmp.c: Remove checking of wcscmp function for
6524         wrong alignments.
6525         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
6526         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
6527         wcsrchr-sse2 wcsrchr-c.
6528         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
6529         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
6530         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
6531         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
6532         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
6533         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
6534         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
6535         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
6536         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
6537         * wcsmbc/wcschr.c (WCSCHR): New macro.
6538
6539 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6540
6541         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
6542         * wcsmbs/test-wcsrchr.c: New file.
6543         * string/test-strrchr.c: Add wcsrchr support.
6544         (WIDE): New macro.
6545         * wcsmbs/test-wcscpy.c: New file.
6546         * string/test-strcpy.c: Add wcscpy support.
6547         (WIDE): New macro.
6548
6549 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
6550
6551         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
6552         the inner loop.
6553
6554 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
6555
6556         [BZ #13472]
6557         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
6558
6559 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
6560
6561         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
6562         Minor optimizations.
6563
6564         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
6565         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
6566         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
6567
6568 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
6569
6570         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
6571         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
6572         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
6573         for gcc to avoid warnings.
6574         * inet/Makefile (tests): Add tst-checks.
6575         * inet/tst-checks.c: New file.
6576
6577         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
6578         warning.
6579
6580         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
6581         __wmemcmp_sse2.
6582
6583         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
6584         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
6585
6586         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
6587
6588 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
6589
6590         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
6591         problem.
6592
6593         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
6594
6595 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
6596
6597         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
6598         conditional on GCC version.
6599         (__arch_compare_and_exchange_val_8_acq)
6600         (__arch_compare_and_exchange_val_16_acq)
6601         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
6602         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
6603         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
6604
6605 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
6606
6607         * sysdeps/sh/backtrace.c: New file.
6608
6609 2011-12-02  Andreas Schwab  <schwab@redhat.com>
6610
6611         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
6612         parenthesis.
6613
6614 2011-12-01  Andreas Schwab  <schwab@redhat.com>
6615
6616         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
6617         falling back to utime.
6618
6619 2011-11-30  Andreas Schwab  <schwab@redhat.com>
6620
6621         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
6622         expectations for float.
6623
6624 2011-11-29  Andreas Schwab  <schwab@redhat.com>
6625
6626         * locale/weight.h (findidx): Add parameter len.
6627         * locale/weightwc.h (findidx): Likewise.
6628         * posix/fnmatch_loop.c (FCT): Adjust caller.
6629         * posix/regcomp.c (build_equiv_class): Likewise.
6630         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
6631         * posix/regexec.c (check_node_accept_bytes): Likewise.
6632         * string/strcoll_l.c (STRCOLL): Likewise.
6633         * string/strxfrm_l.c (STRXFRM): Likewise.
6634
6635 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
6636
6637         * Makefile.in: Remove CVSOPT handling.
6638         * configure.in: Remove use of AC_REVISION.
6639         * iconvdata/Makefile (distribute): No need to filter out CVS.
6640         * scripts/list-sources.sh: Remove CVS, subversion and monotone
6641         handling.
6642
6643 2011-11-16  Andreas Schwab  <schwab@redhat.com>
6644
6645         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
6646         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
6647         [USE_AS_STRNCASECMP_L]: Likewise.
6648         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
6649         NO_TLS_DIRECT_SEG_REFS.
6650         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
6651         Fix argument offsets for non-PIC.
6652         [USE_AS_STRNCASECMP_L]: Likewise.
6653         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
6654         NO_TLS_DIRECT_SEG_REFS.
6655
6656 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6657
6658         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
6659         O_CLOEXEC.
6660         * locale/loadlocale.c (_nl_load_locale): Likewise.
6661
6662 2011-11-15  Andreas Schwab  <schwab@redhat.com>
6663
6664         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
6665         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
6666         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
6667         (SYSCALL_GETTIME): Set errno on error.
6668
6669         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
6670         count references to noai6ai_cached.
6671
6672 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6673
6674         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
6675
6676         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
6677         FD_CLOEXEC for /proc/self/maps.
6678
6679         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
6680         FD_CLOEXEC for /proc/meminfo.
6681
6682         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
6683         gai.conf.
6684
6685         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
6686         FD_CLOEXEC for given file.
6687
6688         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
6689
6690         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
6691         FD_CLOEXEC for /etc/hosts.
6692         (_gethtent): Likewise.
6693
6694         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
6695
6696         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
6697         cancellation and set FD_CLOEXEC for /etc/netgroup.
6698
6699         * nss/nss_files/files-key.c (search): Don't allow cancellation when
6700         reading /etc/publickey.
6701
6702         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
6703         allow cancellation when reading /etc/group.
6704
6705         * nss/nss_files/files-alias.c (internal_setent): Don't allow
6706         cancellation.
6707         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
6708
6709         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
6710         when using data file.
6711
6712         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
6713
6714         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
6715         (write_nis_obj): Use "c" and "e" in fopen.
6716
6717         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
6718
6719         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
6720
6721         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
6722
6723         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
6724
6725         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
6726         locale.alias.
6727
6728         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
6729
6730         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
6731
6732         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
6733
6734         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
6735         file parsing and set FD_CLOEXEC.
6736
6737 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6738
6739         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
6740
6741 2011-11-14  Andreas Schwab  <schwab@redhat.com>
6742
6743         * malloc/arena.c (arena_get2): Don't call reused_arena when
6744         _int_new_arena failed.
6745
6746 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6747
6748         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
6749         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
6750         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
6751         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6752         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6753         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
6754         to compile strcasecmp and strncasecmp.
6755         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
6756         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
6757
6758         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
6759
6760 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
6761
6762         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
6763         locale-defines.sym to gen-as-const-headers.
6764         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
6765         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
6766         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
6767         to compile strcasecmp and strncasecmp.
6768         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
6769         strcasecmp_l and strncasecmp_l.
6770         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
6771         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
6772         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
6773         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
6774         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
6775         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
6776         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
6777         * sysdeps/i386/i686/multiarch/strncase.S: New file.
6778         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
6779         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
6780         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
6781
6782 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
6783
6784         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
6785         result of SYSDEP_GETTIME_CPU to retval.
6786         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
6787         parameter list to macro.  Remove trailing semicolon.  Adjust users.
6788
6789         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
6790         variable.
6791
6792         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
6793         mantissa words.
6794         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
6795
6796         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
6797         from unused variable.
6798
6799         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
6800         DWARF definitions.
6801         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
6802         for assembling.
6803
6804         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
6805         over namespaces.
6806
6807         * sunrpc/rpc_prot.c (rejected): Fix case value.
6808
6809         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
6810         unsigned long long int to avoid warnings in shift.
6811
6812         * posix/regex_internal.c (re_string_reconstruct): Actually use result
6813         of use of trans.
6814         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
6815         variable tmp.
6816
6817         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
6818         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
6819         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
6820
6821         * nis/nis_table.c (nis_list): Use variable of correct type for
6822         result of __follow_path call.
6823
6824 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6825
6826         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
6827         of math functions ceil, trunc, floor, round, and sqrt, when
6828         avaliable on the platform.
6829         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
6830         name clash.
6831         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6832         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6833         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6834
6835 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
6836
6837         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
6838         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
6839
6840 2011-11-11  Roland McGrath  <roland@hack.frob.com>
6841
6842         * include/unistd.h: Fix __readlink return type.
6843         Reported by Chris Metcalf <cmetcalf@tilera.com>.
6844
6845 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
6846
6847         * stdlib/ucontext.h: Undo last change for makecontext.
6848
6849 2011-11-11  Andreas Schwab  <schwab@redhat.com>
6850
6851         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
6852
6853         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
6854         * setjmp/setjmp.h: Mark functions as non-leaf.
6855         * setjmp/bits/setjmp2.h: Likewise.
6856         * stdlib/ucontext.h: Likewise.
6857
6858 2011-11-10  Andreas Schwab  <schwab@redhat.com>
6859
6860         * malloc/arena.c (_int_new_arena): Don't increment narenas.
6861         (reused_arena): Don't check arena limit.
6862         (arena_get2): Atomically check arena limit.
6863
6864 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
6865
6866         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
6867         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
6868
6869         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
6870         instructions.
6871
6872 2011-11-07  Andreas Schwab  <schwab@redhat.com>
6873
6874         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
6875         handler when locking.
6876
6877         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6878         Fix size of allocated buffer.
6879
6880 2011-11-04  Andreas Schwab  <schwab@redhat.com>
6881
6882         [BZ #10103]
6883         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
6884         declarations for long double functions.
6885         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
6886
6887         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
6888
6889 2011-11-03  Andreas Schwab  <schwab@redhat.com>
6890
6891         * nscd/nscd.c (main): Don't start AVC thread until credentials are
6892         installed.
6893
6894         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
6895         is disabled.
6896
6897 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6898
6899         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
6900
6901 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
6902
6903         * include/alloca.h (stackinfo_alloca_round): Define.
6904         (extend_alloca): Use it.
6905         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
6906         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
6907         here.
6908
6909         * scripts/check-local-headers.sh: Ignore libaudit.h.
6910
6911         * nscd/Makefile (extra-objs): Make recursively expanded.
6912
6913 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
6914
6915         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
6916         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6917
6918         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
6919         * posix/tst-rfc3484-2.c: Likewise.
6920         * posix/tst-rfc3484-3.c: Likewise.
6921
6922         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6923         process_vm_writev.
6924         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
6925         process_vm_writev.
6926         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
6927         process_vm_writev from libc using GLIBC_2.15 version.
6928
6929         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
6930
6931 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
6932
6933         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
6934         stack usage.
6935
6936 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
6937
6938         [BZ #13367]
6939         * nss/getent.c (initgroups_keys): Show error message in case no group
6940         names are given.
6941
6942         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
6943         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
6944         __bump_nl_timestamp.
6945         * nscd/connections (nscd_init): When host database is served open
6946         netlink socket and request notification about configuration changes.
6947         (main_loop_poll): Track netlink file descriptor and bump timestamp
6948         in case data becomes available.
6949         (main_loop_epoll): Likewise.
6950         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
6951         (database_pers_head): Add extra_data fileds.
6952         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
6953         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
6954         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
6955         Adjust caller.
6956         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
6957         in6ai data, call __free_in6ai.
6958         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
6959         Add -DHAVE_NETLINK.
6960         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
6961         interface information.  Reuse previous data if netlink timestamp
6962         is not changed.
6963         (__bump_nl_timestamp): New function.
6964         (__free_in6ai): New function.
6965
6966 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
6967
6968         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
6969         close_not_cancel_no_status here.
6970         (__check_pf): Reorganize code a bit to not call close twice if OOM.
6971
6972 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
6973
6974         [BZ #13276]
6975         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
6976         return value.
6977
6978         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
6979         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
6980         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
6981
6982 2011-07-03  Andreas Jaeger  <aj@suse.de>
6983
6984         [BZ #10709]
6985         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
6986         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
6987         * math/libm-test.inc (sin_test): Add test case.
6988
6989 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
6990
6991         [BZ #13337]
6992         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
6993         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6994
6995         * elf/chroot_canon.c (chroot_canon): Cleanups.
6996
6997         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
6998
6999         [BZ #13335]
7000         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
7001         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7002
7003         * string/test-strchr.c: Make usable for strchrnul testing.
7004         * string/test-strchrnul.c: New file.
7005         * string/Makefile (strop-tests): Add strchrnul.
7006
7007         * po/it.po: Update from translation team.
7008         * po/es.po: Likewise.
7009
7010 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
7011
7012         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
7013         the three constants needed as parameters.  Drop the others.
7014         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
7015         __m128i_strloadu_tolower.
7016         Create and initialize variable zero and use it in all the places
7017         where _mm_setzero_si128 was used.
7018
7019         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
7020         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
7021         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
7022         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
7023         anymore.
7024         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
7025         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
7026         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
7027         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
7028         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
7029         __mpranred, __mptan.
7030         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
7031         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
7032         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
7033         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
7034         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
7035         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
7036         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
7037         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
7038         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
7039
7040 2011-10-28  Andreas Schwab  <schwab@redhat.com>
7041
7042         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
7043         redefine if SHARED.
7044         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
7045
7046         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
7047         wide char related routines to wcsmbs subdir.
7048
7049 2011-10-27  Andreas Schwab  <schwab@redhat.com>
7050
7051         [BZ #13344]
7052         * misc/sys/cdefs.h (__THROWNL): Define.
7053         * posix/unistd.h: Use __THREADNL instead of __THREAD
7054         for memory synchronization functions.
7055
7056 2011-10-26  Roland McGrath  <roland@hack.frob.com>
7057
7058         [BZ #13349]
7059         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
7060         doesn't exist.
7061         * manual/stdio.texi (Obstack Streams): Node removed.
7062
7063 2011-10-26  Andreas Schwab  <schwab@redhat.com>
7064
7065         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
7066         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7067         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7068
7069         * math/math_private.h (math_force_eval): Allow non-addressable
7070         arguments.
7071         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
7072
7073 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7074
7075         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
7076         file is not needed.
7077
7078         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
7079         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7080         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7081         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7082         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7083         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7084         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7085         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
7086         Add AVX variants.
7087         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
7088         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
7089         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
7090         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
7091         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
7092         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
7093         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
7094         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
7095         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
7096         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
7097         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
7098         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
7099         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
7100         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
7101         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
7102         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
7103         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
7104         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
7105         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
7106
7107         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
7108         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
7109
7110         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
7111         place.  Use VEX encoding when compiling for AVX.
7112
7113 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7114
7115         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
7116         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7117
7118         * string/test-strchr.c (do_test): Don't generate NUL bytes.
7119
7120 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7121
7122         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
7123         useless if() expression.
7124         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7125         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7126         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7127         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7128         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7129         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7130         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7131         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7132         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7133         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7134         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7135         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7136         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7137         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7138         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7139         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7140         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7141         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7142         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7143
7144         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
7145
7146 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7147
7148         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
7149         condition.
7150         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7151
7152 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7153
7154         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
7155         .text section.  Avoid duplicate constants.
7156         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7157         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7158         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7159         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7160         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7161         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7162         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7163         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7164         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
7165         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
7166         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
7167         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7168         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
7169         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
7170         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
7171         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
7172         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
7173         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
7174         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7175         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7176         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7177         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7178         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7179         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
7180         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
7181         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
7182         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
7183         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
7184         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
7185         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
7186         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
7187         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
7188         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7189         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
7190         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
7191         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
7192         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
7193         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
7194         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
7195         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
7196         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
7197         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
7198         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
7199         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
7200         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
7201
7202 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
7203
7204         * sysdeps/x86_64/dla.h: Move to ...
7205         * sysdeps/x86_64/fpu/dla.h: ...here.
7206         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
7207         situations.  Use __builtin_fma only for gcc 4.6 and up.
7208
7209         * config.make.in: Add have-mfma4 entry.
7210         * configure.in: Substitute libc_cv_cc_fma4.
7211         * math/Makefile (dbl-only-routines): Add sincostab.
7212         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
7213         Use __sincostab not sincos.
7214         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
7215         name is a macro.
7216         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7217         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7218         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7219         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
7220         using __copysign.
7221         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
7222         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
7223         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
7224         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
7225         and __inv.
7226         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
7227         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
7228         __copysign.
7229         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
7230         define aliases when function name is a macro.
7231         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
7232         sysdeps/ieee754/dbl-64/sincos.tbl.
7233         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
7234         fma4-enabled routines.
7235         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
7236         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
7237         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
7238         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
7239         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
7240         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
7241         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
7242         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
7243         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
7244         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
7245         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
7246         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
7247         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
7248         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
7249         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
7250         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
7251         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
7252         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
7253         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
7254         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
7255         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
7256         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
7257         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
7258         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
7259         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
7260         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
7261         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
7262         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
7263         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
7264         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
7265
7266         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
7267         rename.
7268         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7269         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7270         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7271         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7272         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7273         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7274         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7275         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7276
7277 2011-10-24  Andreas Schwab  <schwab@redhat.com>
7278
7279         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
7280
7281 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7282
7283         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
7284
7285         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
7286         prediction.
7287         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
7288
7289         * string/strnlen.c: Don't define STRNLEN, reverse logic.
7290         Remove unused variable magic_bits.
7291         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
7292
7293         * string/strnlen.c: Define and use STRNLEN macro.
7294         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
7295         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
7296         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
7297         * wcsmbs/wcslen.c: Define and use WCSLEN.
7298         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
7299         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
7300         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
7301         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
7302         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
7303         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
7304         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7305
7306 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7307
7308         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7309         strnlen-sse2-no-bsf.
7310         Rename strlen-no-bsf to strlen-sse2-no-bsf.
7311         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
7312         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
7313         Add strnlen support.
7314         (USE_AS_STRNLEN): New macro.
7315         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
7316         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
7317         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
7318         * sysdeps/x86_64/wcslen.S: New file.
7319
7320 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7321
7322         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7323         XMM-moves are used for copying on small sizes.
7324
7325 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7326
7327         * wcsmbs/Makefile (strop-tests): Add wcschr.
7328         * wcsmbs/test-wcschr.c: New file.
7329         * string/test-strchr.c: Update.
7330         Add wcschr support.
7331         (WIDE): New macro.
7332
7333 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7334
7335         * wcsmbs/Makefile (strop-tests): Add wcslen.
7336         * wcsmbs/test-wcslen.c: New file.
7337         * string/test-strlen.c: Update.
7338         Add wcslen support.
7339         (WIDE): New macro.
7340
7341 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7342
7343         * po/it.po: Update from translation team.
7344
7345 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7346
7347         * sysdeps/x86_64/wcscmp.S: Update.
7348         Fix wrong comparison semantics.
7349         wcscmp shall use signed comparison not unsigned.
7350         Don't use substraction to avoid overflow bug.
7351         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
7352         * wcsmbc/wcscmp.c: Likewise.
7353         * string/test-strcmp.c: Likewise.
7354         Add new tests to check cases with negative values.
7355
7356 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7357
7358         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
7359         * sysdeps/x86_64/dla.h: ...here.  New file.
7360         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
7361         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7362         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7363         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7364         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7365         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7366         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7367         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7368         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7369
7370 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
7371
7372         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
7373         __ynl_finite aliases.
7374
7375 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7376
7377         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7378
7379         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
7380         define DLA_FMA.
7381         [DLA_FMA] (EMULV): Use DLA_FMA.
7382         [DLA_FMA] (MUL12): Use EMULV.
7383         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
7384         that are not needed.
7385         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7386         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7387         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7388         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7389         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7390         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7391         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7392
7393 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
7394
7395         * math/s_nan.c: Undef __nan.
7396         * math/s_nanf.c: Undef __nanf.
7397         * math/s_nanl.c: Undef __nanl.
7398         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
7399         "math_private.h".
7400
7401 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7402
7403         * math/s_catan.c: Add branch predictions.
7404         * math/s_catanf.c: Likewise.
7405         * math/s_catanh.c: Likewise.
7406         * math/s_catanhf.c: Likewise.
7407         * math/s_catanhl.c: Likewise.
7408         * math/s_catanl.c: Likewise.
7409         * math/s_cexp.c: Likewise.
7410         * math/s_cexpf.c: Likewise.
7411         * math/s_cexpl.c: Likewise.
7412         * math/s_clog.c: Likewise.
7413         * math/s_clog10.c: Likewise.
7414         * math/s_clog10f.c: Likewise.
7415         * math/s_clog10l.c: Likewise.
7416         * math/s_clogf.c: Likewise.
7417         * math/s_clogl.c: Likewise.
7418         * math/s_csqrt.c: Likewise.
7419         * math/s_csqrtf.c: Likewise.
7420         * math/s_csqrtl.c: Likewise.
7421         * math/s_ctanf.c: Likewise.
7422         * math/s_ctanh.c: Likewise.
7423         * math/s_ctanhf.c: Likewise.
7424         * math/s_ctanhl.c: Likewise.
7425         * math/s_ctanl.c: Likewise.
7426
7427         * math/math_private.h: Define __nan, __nanf, __nanl.
7428         * math/s_cacosh.c: Include <math_private.h>.
7429         * math/s_cacoshl.c: Likewise.
7430         * math/s_casinh.c: Likewise.
7431         * math/s_casinhf.c: Likewise.
7432         * math/s_casinhl.c: Likewise.
7433         * math/s_ccos.c: Rely entire on ccosh.
7434         * math/s_ccosf.c: Rely entire on ccoshf.
7435         * math/s_ccosl.c: Rely entirely on ccoshl.
7436         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
7437         Remove tests for FE_INVALID.
7438         * math/s_ccoshf.c: Likewise.
7439         * math/s_ccoshl.c: Likewise.
7440         * math/s_csin.c: Likewise.
7441         * math/s_csinf.c: Likewise.
7442         * math/s_csinh.c Likewise.
7443         * math/s_csinhf.c: Likewise.
7444         * math/s_csinhl.c: Likewise.
7445         * math/s_csinl.c: Likewise.
7446         * math/s_ctan.c: Likewise.
7447         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
7448         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
7449         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
7450
7451 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
7452
7453         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
7454         compilation problems.
7455
7456         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
7457         __builtin_expect.
7458
7459 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
7460
7461         * sysdeps/i386/configure.in: Test for -mfma4 option.
7462         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
7463         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
7464         COMMON_CPUID_INDEX_80000001.
7465         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
7466         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
7467         use it if FMA3 is not supported.
7468         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
7469
7470         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
7471         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
7472
7473 2011-10-20  Andreas Schwab  <schwab@redhat.com>
7474
7475         [BZ #12892]
7476         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
7477         it would create a cycle with a link time dependency.
7478
7479 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
7480
7481         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
7482         instruction.
7483         * string/Makefile (strop-tests): Add rawmemchr.
7484         * string/test-rawmemchr.c: New file.
7485
7486         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
7487         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
7488         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
7489         when compiling str{,n}casecmp and when AVX is available.  Hook up
7490         new optimized code in initializers.
7491
7492 2011-10-19  Andreas Schwab  <schwab@redhat.com>
7493
7494         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
7495         __feraiseexcept instead of feraiseexcept.
7496
7497 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
7498
7499         * math/math_private.h: Define defaults for libc_fetestexcept and
7500         libc_feupdateenv.
7501         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
7502         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7503         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7504         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7505         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7506         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7507         libc_fetestexcept and libc_feupdateenv.
7508
7509         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
7510         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
7511         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
7512         * sysdeps/x86_64/fpu/math_private.h: Define special version of
7513         libc_feholdexcept_setround.
7514
7515         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
7516         Add s_nearbyint-c and s_nearbyintf-c.
7517         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
7518         nearbyintf inlines.
7519         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
7520         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
7521         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
7522         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
7523
7524         * math/math_private.h: Define defaults for libc_fegetround,
7525         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
7526         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
7527         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
7528         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
7529         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
7530         standard functions.
7531         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7532         Remove comments and hacks for old compiler versions.
7533         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7534         libc_fegetround, libc_fesetround, libc_feholdexcept, and
7535         libc_feholdexceptl.
7536
7537 2011-10-18  Andreas Schwab  <schwab@redhat.com>
7538
7539         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
7540         (__feraiseexcept_renamed): Add __NTH.
7541         (feraiseexcept): Add __NTH.  Rename local variables to fix
7542         namespace violations.
7543
7544 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
7545
7546         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
7547
7548         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
7549
7550         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
7551         recently added interfaces.
7552         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7553
7554         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
7555         about macro parameter expansion.
7556
7557         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
7558         __NO_MATH_INLINES is defined.  Cleanups.
7559
7560         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
7561         and __floorf is target has SSE4.1.
7562         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
7563         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
7564         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
7565         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
7566
7567         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
7568         name.
7569         (floorf): Likewise.
7570
7571         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
7572
7573 2011-10-17  Andreas Schwab  <schwab@redhat.com>
7574
7575         * misc/sys/cdefs.h: Fix last change.
7576
7577         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
7578         database lookup.
7579
7580 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
7581
7582         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
7583
7584         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
7585         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7586         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7587         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7588         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7589         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7590         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7591         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7592         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7593         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
7594         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
7595         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
7596         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
7597         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
7598         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
7599         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
7600         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
7601         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
7602         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
7603         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
7604         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
7605         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
7606
7607         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
7608         ceil, ceilf, floor, floorf.
7609
7610         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
7611         Perform IRELATIVE relocations last.
7612
7613         * elf/do-rel.h: Add another parameter nrelative, replacing the
7614         local variable with the same name.  Change name of the function
7615         to end in Rel or Rela (uppercase).
7616         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
7617         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
7618         elf_dynamic_do_##reloc function.
7619
7620 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7621
7622         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
7623         is sufficient, at least on modern CPUs.
7624
7625         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
7626
7627         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
7628         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
7629
7630         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
7631         __expl_finite.
7632         * math/bits/math-finite.h: Add entries for exp.
7633         * math/e_expl.c: Add __*_finite alias.
7634         * sysdeps/i386/fpu/e_exp.S: Likewise.
7635         * sysdeps/i386/fpu/e_expf.S: Likewise.
7636         * sysdeps/i386/fpu/e_expl.c: Likewise.
7637         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7638         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7639         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7640         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7641         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
7642         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7643         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7644
7645         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
7646         is sufficient, at least on modern CPUs.
7647
7648         * ctype/ctype-info.c (__ctype_init): Define.
7649         * include/ctype.h (__ctype_init): Declare.
7650         (__ctype_b_loc): The variable is always initialized.
7651         (__ctype_toupper_loc): Likewise.
7652         (__ctype_tolower_loc): Likewise.
7653         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
7654         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
7655
7656 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
7657
7658         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
7659
7660         * configure.in: Also look in $cxxmachine/include for C++ system
7661         headers.
7662
7663 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7664
7665         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
7666         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
7667         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
7668         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
7669         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
7670         (USE_AS_WMEMCMP): New macro.
7671         Fixing indents.
7672         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
7673         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
7674         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
7675         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
7676         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7677         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
7678         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
7679         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
7680         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
7681         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
7682         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
7683         (USE_AS_WMEMCMP): New macro.
7684         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
7685         * sysdeps/string/test-memcmp.c: Update.
7686         Fix simple_wmemcmp.
7687         Add new tests.
7688         * wcsmbs/wmemcmp.c: Update.
7689         (WMEMCMP): New macro.
7690         Fix overflow bug.
7691
7692 2011-10-12  Andreas Jaeger  <aj@suse.de>
7693
7694         [BZ #13268]
7695         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
7696
7697 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7698
7699         * libio/iofwide.c (do_length): Avoid warning.
7700
7701         * ctype/ctype.h (__isctype_f): Add missing __THROW.
7702
7703 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
7704
7705         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
7706
7707         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
7708         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
7709         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
7710         * sysdeps/i386/i686/fpu/e_log.S: New file.
7711         * sysdeps/i386/i686/fpu/e_logf.S: New file.
7712         * sysdeps/i386/i686/fpu/e_logl.S: New file.
7713
7714         * ctype/ctype.h: Add support for inlined isXXX functions when
7715         compiling C++ code.
7716
7717 2011-10-14  Andreas Schwab  <schwab@redhat.com>
7718
7719         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7720
7721         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
7722
7723 2011-10-13  Roland McGrath  <roland@hack.frob.com>
7724
7725         [BZ #13291]
7726         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
7727
7728 2011-10-13  Andreas Schwab  <schwab@redhat.com>
7729
7730         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
7731         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
7732         feraiseexcept.
7733
7734         * sysdeps/x86_64/memrchr.S: Check for zero size.
7735
7736         * string/stratcliff.c: Add memrchr tests.
7737
7738 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7739
7740         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7741         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
7742         rawmemchr-sse2 rawmemchr-sse2-bsf.
7743         * sysdeps/i386/i686/multiarch/memchr.S: New file.
7744         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
7745         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
7746         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
7747         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
7748         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
7749         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
7750         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
7751         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
7752         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
7753         * string/memrchr.c (MEMRCHR): New macro.
7754
7755 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
7756
7757         Add integration with gcc's -ffinite-math-only and optimize wrapper
7758         functions in libm.
7759         * Versions.def: Define GLIBC_2.15 version for libm.
7760         * math/Makefile (headers): Add bits/math-finite.h.
7761         * math/bits/math-finite.h: New file.
7762         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
7763         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
7764         * math/e_acoshl.c: Add __*_finite alias.
7765         * math/e_acosl.c: Likewise.
7766         * math/e_asinl.c: Likewise.
7767         * math/e_atan2l.c: Likewise.
7768         * math/e_atanhl.c: Likewise.
7769         * math/e_coshl.c: Likewise.
7770         * math/e_exp10.c: Likewise.
7771         * math/e_exp10f.c: Likewise.
7772         * math/e_exp10l.c: Likewise.
7773         * math/e_exp2l.c: Likewise.
7774         * math/e_fmodl.c: Likewise.
7775         * math/e_gammal_r.c: Likewise.
7776         * math/e_hypotl.c: Likewise.
7777         * math/e_j0l.c: Likewise.
7778         * math/e_j1l.c: Likewise.
7779         * math/e_jnl.c: Likewise.
7780         * math/e_lgammal_r.c: Likewise.
7781         * math/e_log10l.c: Likewise.
7782         * math/e_log2l.c: Likewise.
7783         * math/e_logl.c: Likewise.
7784         * math/e_powl.c: Likewise.
7785         * math/e_sinhl.c: Likewise.
7786         * math/e_sqrtl.c: Likewise.
7787         * math/e_scalb.c: Completely rewritten and optimized.
7788         * math/e_scalbf.c: Likewise.
7789         * math/e_scalbl.c: Likewise.
7790         * math/w_acos.c: Likewise.
7791         * math/w_acosf.c: Likewise.
7792         * math/w_acosl.c: Likewise.
7793         * math/w_acosh.c: Likewise.
7794         * math/w_acoshf.c: Likewise.
7795         * math/w_acoshl.c: Likewise.
7796         * math/w_asin.c: Likewise.
7797         * math/w_asinf.c: Likewise.
7798         * math/w_asinl.c: Likewise.
7799         * math/w_atan2.c: Likewise.
7800         * math/w_atan2f.c: Likewise.
7801         * math/w_atan2l.c: Likewise.
7802         * math/w_atanh.c: Likewise.
7803         * math/w_atanhf.c: Likewise.
7804         * math/w_atanhl.c: Likewise.
7805         * math/w_exp10.c: Likewise.
7806         * math/w_exp10f.c: Likewise.
7807         * math/w_exp10l.c: Likewise.
7808         * math/w_fmod.c: Likewise.
7809         * math/w_fmodf.c: Likewise.
7810         * math/w_fmodl.c: Likewise.
7811         * math/w_j0.c: Likewise.
7812         * math/w_j0f.c: Likewise.
7813         * math/w_j0l.c: Likewise.
7814         * math/w_j1.c: Likewise.
7815         * math/w_j1f.c: Likewise.
7816         * math/w_j1l.c: Likewise.
7817         * math/w_jn.c: Likewise.
7818         * math/w_jnf.c: Likewise.
7819         * math/w_log.c: Likewise.
7820         * math/w_logf.c: Likewise.
7821         * math/w_logl.c: Likewise.
7822         * math/w_log10.c: Likewise.
7823         * math/w_log10f.c: Likewise.
7824         * math/w_log10l.c: Likewise.
7825         * math/w_log2.c: Likewise.
7826         * math/w_log2f.c: Likewise.
7827         * math/w_log2l.c: Likewise.
7828         * math/w_pow.c: Likewise.
7829         * math/w_powf.c: Likewise.
7830         * math/w_powl.c: Likewise.
7831         * math/w_remainder.c: Likewise.
7832         * math/w_remainderf.c: Likewise.
7833         * math/w_remainderl.c: Likewise.
7834         * math/w_scalb.c: Likewise.
7835         * math/w_scalbf.c: Likewise.
7836         * math/w_scalbl.c: Likewise.
7837         * math/w_sqrt.c: Likewise.
7838         * math/w_sqrtf.c: Likewise.
7839         * math/w_sqrtl.c: Likewise.
7840         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
7841         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
7842         used.
7843         * math/math_private.h: Declare __kernel_standard_f.
7844         * math/w_cosh.c: Remove cruft and optimize a bit.
7845         * math/w_coshf.c: Likewise.
7846         * math/w_coshl.c: Likewise.
7847         * math/w_exp2.c: Likewise.
7848         * math/w_exp2f.c: Likewise.
7849         * math/w_exp2l.c: Likewise.
7850         * math/w_hypot.c: Likewise.
7851         * math/w_hypotf.c: Likewise.
7852         * math/w_hypotl.c: Likewise.
7853         * math/w_lgamma.c: Likewise.
7854         * math/w_lgamma_r.c: Likewise.
7855         * math/w_lgammaf.c: Likewise.
7856         * math/w_lgammaf_r.c: Likewise.
7857         * math/w_lgammal.c: Likewise.
7858         * math/w_lgammal_r.c: Likewise.
7859         * math/w_sinh.c: Likewise.
7860         * math/w_sinhf.c: Likewise.
7861         * math/w_sinhl.c: Likewise.
7862         * math/w_tgamma.c: Likewise.
7863         * math/w_tgammaf.c: Likewise.
7864         * math/w_tgammal.c: Likewise.
7865         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7866         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7867         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
7868         Minor optimizations.  Pretty printing.  Remove cruft.
7869         * sysdeps/i386/fpu/e_acosf.S: Likewise.
7870         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7871         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7872         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7873         * sysdeps/i386/fpu/e_acosl.c: Likewise.
7874         * sysdeps/i386/fpu/e_asin.S: Likewise.
7875         * sysdeps/i386/fpu/e_asinf.S: Likewise.
7876         * sysdeps/i386/fpu/e_atan2.S: Likewise.
7877         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
7878         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
7879         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7880         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7881         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7882         * sysdeps/i386/fpu/e_exp10.S: Likewise.
7883         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
7884         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
7885         * sysdeps/i386/fpu/e_exp2.S: Likewise.
7886         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
7887         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
7888         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7889         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
7890         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7891         * sysdeps/i386/fpu/e_hypot.S: Likewise.
7892         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
7893         * sysdeps/i386/fpu/e_log.S: Likewise.
7894         * sysdeps/i386/fpu/e_log10.S: Likewise.
7895         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7896         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7897         * sysdeps/i386/fpu/e_log2.S: Likewise.
7898         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7899         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7900         * sysdeps/i386/fpu/e_logf.S: Likewise.
7901         * sysdeps/i386/fpu/e_logl.S: Likewise.
7902         * sysdeps/i386/fpu/e_pow.S: Likewise.
7903         * sysdeps/i386/fpu/e_powf.S: Likewise.
7904         * sysdeps/i386/fpu/e_powl.S: Likewise.
7905         * sysdeps/i386/fpu/e_remainder.S: Likewise.
7906         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
7907         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
7908         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7909         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7910         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7911         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
7912         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
7913         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
7914         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
7915         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7916         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7917         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
7918         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7919         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
7920         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7921         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
7922         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7923         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7924         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7925         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
7926         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7927         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
7928         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
7929         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7930         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7931         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7932         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7933         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7934         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
7935         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
7936         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7937         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7938         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
7939         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
7940         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7941         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
7942         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7943         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
7944         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7945         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7946         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7947         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7948         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
7949         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
7950         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
7951         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
7952         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
7953         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7954         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
7955         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
7956         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
7957         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
7958         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7959         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
7960         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7961         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
7962         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
7963         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7964         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7965         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
7966         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7967         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7968         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
7969         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7970         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
7971         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
7972         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7973         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
7974         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7975         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
7976         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7977         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7978         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7979         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7980         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7981         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7982         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7983         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7984         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7985         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7986         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7987         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7988         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7989         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7990         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
7991         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7992         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7993         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7994         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7995         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7996         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7997         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7998         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7999         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8000         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8001         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8002         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8003         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8004         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8005         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8006         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8007         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8008         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8009         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8010         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8011         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
8012         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
8013         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
8014         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
8015         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
8016         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
8017         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
8018         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8019         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8020         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8021         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8022         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
8023         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8024         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
8025         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
8026         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
8027         (__isnanf): Likewise.
8028         (__isinf_ns): Likewise.
8029         (__isinf_nsf): Likewise.
8030         (__finite): Likewise.
8031         (__finitef): Likewise.
8032         (__ieee754_sqrt): Define as macro.
8033         (__ieee754_sqrtf): Define as macro.
8034         (__ieee754_sqrtl): Define as macro.
8035         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
8036         inlined copy.
8037         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
8038         __FINITE_MATH_ONLY__ consistent.
8039         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
8040
8041 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
8042
8043         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
8044         of rawmemchr.
8045
8046         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
8047
8048 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
8049
8050         * po/ja.po: Update from translation team.
8051
8052 2011-10-08  Roland McGrath  <roland@hack.frob.com>
8053
8054         * locale/programs/locarchive.c (prepare_address_space): New function.
8055         (create_archive, enlarge_archive, open_archive): Use it.
8056
8057         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
8058         inside [SHARED], where it is used.
8059
8060         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
8061
8062         * nss/getent.c (netgroup_keys): Remove unused variable.
8063         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8064
8065 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
8066
8067         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
8068         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
8069         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
8070         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
8071         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
8072         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
8073         * math/Makefile (libm-calls): Add s_isinf_ns.
8074         * math/divtc3.c: Use __isinf_nsl instead of isinf.
8075         * math/multc3.c: Likewise.
8076         * math/s_casin.c: Likewise.
8077         * math/s_casinf.c: Likewise.
8078         * math/s_casinl.c: Likewise.
8079         * math/s_ccos.c: Likewise.
8080         * math/s_ccosf.c: Likewise.
8081         * math/s_ccosl.c: Likewise.
8082         * math/s_ctan.c: Likewise.
8083         * math/s_ctanf.c: Likewise.
8084         * math/s_ctanh.c: Likewise.
8085         * math/s_ctanhf.c: Likewise.
8086         * math/s_ctanhl.c: Likewise.
8087         * math/s_ctanl.c: Likewise.
8088         * math/w_fmod.c: Likewise.
8089         * math/w_fmodf.c: Likewise.
8090         * math/w_fmodl.c: Likewise.
8091         * math/w_remainder.c: Likewise.
8092         * math/w_remainderf.c: Likewise.
8093         * math/w_remainderl.c: Likewise.
8094         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
8095         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
8096         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
8097         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
8098         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
8099         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
8100         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
8101         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
8102
8103         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
8104         of the number.
8105         * stdio-common/printf_fphex.c: Likewise.
8106         * stdio-common/printf_size.c: Likewise.
8107
8108         * math/e_exp10.c: Include math_private.h using <...> not "...".
8109         * math/e_exp10f.c: Likewise.
8110         * math/e_exp10l.c: Likewise.
8111         * math/e_exp2l.c: Likewise.
8112         * math/e_j0l.c: Likewise.
8113         * math/e_j1l.c: Likewise.
8114         * math/e_jnl.c: Likewise.
8115         * math/e_lgammal_r.c: Likewise.
8116         * math/e_rem_pio2l.c: Likewise.
8117         * math/e_scalb.c: Likewise.
8118         * math/e_scalbf.c: Likewise.
8119         * math/e_scalbl.c: Likewise.
8120         * math/k_cosl.c: Likewise.
8121         * math/k_sinl.c: Likewise.
8122         * math/k_tanl.c: Likewise.
8123         * math/s_cacoshf.c: Likewise.
8124         * math/s_catan.c: Likewise.
8125         * math/s_catanf.c: Likewise.
8126         * math/s_catanh.c: Likewise.
8127         * math/s_catanhf.c: Likewise.
8128         * math/s_catanhl.c: Likewise.
8129         * math/s_catanl.c: Likewise.
8130         * math/s_ccosh.c: Likewise.
8131         * math/s_ccoshf.c: Likewise.
8132         * math/s_ccoshl.c: Likewise.
8133         * math/s_cexp.c: Likewise.
8134         * math/s_cexpf.c: Likewise.
8135         * math/s_cexpl.c: Likewise.
8136         * math/s_clog.c: Likewise.
8137         * math/s_clog10.c: Likewise.
8138         * math/s_clog10f.c: Likewise.
8139         * math/s_clog10l.c: Likewise.
8140         * math/s_clogf.c: Likewise.
8141         * math/s_clogl.c: Likewise.
8142         * math/s_csin.c: Likewise.
8143         * math/s_csinf.c: Likewise.
8144         * math/s_csinh.c: Likewise.
8145         * math/s_csinhf.c: Likewise.
8146         * math/s_csinhl.c: Likewise.
8147         * math/s_csinl.c: Likewise.
8148         * math/s_csqrt.c: Likewise.
8149         * math/s_csqrtf.c: Likewise.
8150         * math/s_csqrtl.c: Likewise.
8151         * math/s_ctan.c: Likewise.
8152         * math/s_ctanf.c: Likewise.
8153         * math/s_ctanh.c: Likewise.
8154         * math/s_ctanhf.c: Likewise.
8155         * math/s_ctanhl.c: Likewise.
8156         * math/s_ctanl.c: Likewise.
8157         * math/s_ldexp.c: Likewise.
8158         * math/s_ldexpf.c: Likewise.
8159         * math/s_ldexpl.c: Likewise.
8160         * math/s_significand.c: Likewise.
8161         * math/s_significandf.c: Likewise.
8162         * math/s_significandl.c: Likewise.
8163         * math/w_acos.c: Likewise.
8164         * math/w_acosf.c: Likewise.
8165         * math/w_acosh.c: Likewise.
8166         * math/w_acoshf.c: Likewise.
8167         * math/w_acoshl.c: Likewise.
8168         * math/w_acosl.c: Likewise.
8169         * math/w_asin.c: Likewise.
8170         * math/w_asinf.c: Likewise.
8171         * math/w_asinl.c: Likewise.
8172         * math/w_atan2.c: Likewise.
8173         * math/w_atan2f.c: Likewise.
8174         * math/w_atan2l.c: Likewise.
8175         * math/w_atanh.c: Likewise.
8176         * math/w_atanhf.c: Likewise.
8177         * math/w_atanhl.c: Likewise.
8178         * math/w_cosh.c: Likewise.
8179         * math/w_coshf.c: Likewise.
8180         * math/w_coshl.c: Likewise.
8181         * math/w_dremf.c: Likewise.
8182         * math/w_exp10.c: Likewise.
8183         * math/w_exp10f.c: Likewise.
8184         * math/w_exp10l.c: Likewise.
8185         * math/w_exp2.c: Likewise.
8186         * math/w_exp2f.c: Likewise.
8187         * math/w_fmod.c: Likewise.
8188         * math/w_fmodf.c: Likewise.
8189         * math/w_fmodl.c: Likewise.
8190         * math/w_hypot.c: Likewise.
8191         * math/w_hypotf.c: Likewise.
8192         * math/w_hypotl.c: Likewise.
8193         * math/w_j0.c: Likewise.
8194         * math/w_j0f.c: Likewise.
8195         * math/w_j0l.c: Likewise.
8196         * math/w_j1.c: Likewise.
8197         * math/w_j1f.c: Likewise.
8198         * math/w_j1l.c: Likewise.
8199         * math/w_jn.c: Likewise.
8200         * math/w_jnf.c: Likewise.
8201         * math/w_jnl.c: Likewise.
8202         * math/w_lgamma.c: Likewise.
8203         * math/w_lgamma_r.c: Likewise.
8204         * math/w_lgammaf.c: Likewise.
8205         * math/w_lgammaf_r.c: Likewise.
8206         * math/w_lgammal.c: Likewise.
8207         * math/w_lgammal_r.c: Likewise.
8208         * math/w_log.c: Likewise.
8209         * math/w_log10.c: Likewise.
8210         * math/w_log10f.c: Likewise.
8211         * math/w_log10l.c: Likewise.
8212         * math/w_log2.c: Likewise.
8213         * math/w_log2f.c: Likewise.
8214         * math/w_log2l.c: Likewise.
8215         * math/w_logf.c: Likewise.
8216         * math/w_logl.c: Likewise.
8217         * math/w_pow.c: Likewise.
8218         * math/w_powf.c: Likewise.
8219         * math/w_powl.c: Likewise.
8220         * math/w_remainder.c: Likewise.
8221         * math/w_remainderf.c: Likewise.
8222         * math/w_remainderl.c: Likewise.
8223         * math/w_scalb.c: Likewise.
8224         * math/w_scalbf.c: Likewise.
8225         * math/w_scalbl.c: Likewise.
8226         * math/w_sinh.c: Likewise.
8227         * math/w_sinhf.c: Likewise.
8228         * math/w_sinhl.c: Likewise.
8229         * math/w_sqrt.c: Likewise.
8230         * math/w_sqrtf.c: Likewise.
8231         * math/w_sqrtl.c: Likewise.
8232         * math/w_tgamma.c: Likewise.
8233         * math/w_tgammaf.c: Likewise.
8234         * math/w_tgammal.c: Likewise.
8235
8236         * po/ja.po: Update from translation team.
8237
8238 2011-09-29  Andreas Jaeger  <aj@suse.de>
8239
8240         [BZ #13179]
8241         * sunrpc/netname.c (netname2host): Fix logic.
8242
8243         [BZ #6779]
8244         [BZ #6783]
8245         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
8246         correctly.
8247         * math/w_remainder.c (__remainder): Likewise.
8248         * math/w_remainderf.c (__remainderf): Likewise.
8249         * math/libm-test.inc (remainder_test): Add test cases.
8250
8251 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8252
8253         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
8254         sdiv_qrnnd.
8255
8256 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8257
8258         * string/test-memcmp.c: Avoid unncessary #defines.
8259         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8260
8261 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8262
8263         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
8264         Use new sse2 version for core i3 - i7 as it's faster
8265         than sse42 version.
8266         (bit_Prefer_PMINUB_for_stringop): New.
8267         * sysdeps/x86_64/rawmemchr.S: Update.
8268         Replace with faster SSE2 version.
8269         * sysdeps/x86_64/memrchr.S: New file.
8270         * sysdeps/x86_64/memchr.S: Update.
8271         Replace with faster SSE2 version.
8272
8273 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
8274
8275         * elf/dl-load.c (lose): Add cast to avoid warning.
8276
8277 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8278
8279         * po/ca.po: Update from translation team.
8280
8281         * inet/getnetgrent_r.c: Hook up nscd.
8282         * nscd/Makefile (routines): Add nscd_netgroup.
8283         (nscd-modules): Add netgroupcache.
8284         (CFLAGS-netgroupcache.c): Define.
8285         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
8286         (cache_search): Add const to second parameter.
8287         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
8288         INNETGR.
8289         (dbs): Add netgrdb entry.
8290         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
8291         (verify_persistent_db): Handle netgrdb.
8292         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
8293         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
8294         GETFDNETGR.
8295         (netgroup_response_header): Define.
8296         (innetgroup_response_header): Define.
8297         (datahead): Add netgroup_response_header and innetgroup_response_header
8298         elements.
8299         * nscd/nscd.conf: Add entries for netgroup cache.
8300         * nscd/nscd.h (dbtype): Add netgrdb.
8301         (_PATH_NSCD_NETGROUP_DB): Define.
8302         (netgroup_iov_disabled): Declare.
8303         (xmalloc, xcalloc, xrealloc): Move declarations here.
8304         (cache_search): Adjust prototype.
8305         Add netgroup-related prototypes.
8306         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
8307         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
8308         (__nscd_innetgr): Declare.
8309         * nscd/selinux.c (perms): Use access_vector_t as element type and
8310         add netgroup-related initializers.
8311         * nscd/netgroupcache.c: New file.
8312         * nscd/nscd_netgroup.c: New file.
8313         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
8314         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
8315         For four parameters use innetgr.
8316         * nss/nss_files/files-init.c: Add definition and callback for netgr.
8317         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
8318         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
8319         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
8320
8321         * nscd/connections.c (register_traced_file): Don't register file
8322         for disabled databases.
8323
8324 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
8325
8326         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
8327
8328         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
8329         from tree and freeing node.
8330
8331 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
8332
8333         * nss/nsswitch.c (__nss_database_lookup): Handle
8334         nss_parse_service_list out of memory case.
8335
8336 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
8337
8338         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
8339         out of memory case.
8340
8341 2011-10-04  Andreas Schwab  <schwab@redhat.com>
8342
8343         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
8344         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
8345         pass it down.
8346         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
8347         elf_machine_rela, elf_machine_lazy_rel.
8348         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
8349         (ELF_DYNAMIC_DO_REL): Likewise.
8350         (ELF_DYNAMIC_DO_RELA): Likewise.
8351         (ELF_DYNAMIC_RELOCATE): Likewise.
8352         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
8353         to ELF_DYNAMIC_DO_REL.
8354         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
8355         (dl_main): In trace mode always set __RTLD_NOIFUNC.
8356         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
8357         elf_machine_rela.
8358         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
8359         skip_ifunc, don't call ifunc function if non-zero.
8360         (elf_machine_rela): Likewise.
8361         (elf_machine_lazy_rel): Likewise.
8362         (elf_machine_lazy_rela): Likewise.
8363         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
8364         (elf_machine_lazy_rel): Likewise.
8365         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
8366         Likewise.
8367         (elf_machine_lazy_rel): Likewise.
8368         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8369         Likewise.
8370         (elf_machine_lazy_rel): Likewise.
8371         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
8372         (elf_machine_lazy_rel): Likewise.
8373         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8374         (elf_machine_lazy_rel): Likewise.
8375         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8376         (elf_machine_lazy_rel): Likewise.
8377         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8378         (elf_machine_lazy_rel): Likewise.
8379         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8380         (elf_machine_lazy_rel): Likewise.
8381         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8382         (elf_machine_lazy_rel): Likewise.
8383
8384 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
8385
8386         * nss/nss_files/files-init.c (_nss_files_init): Use static
8387         initialization for all the *_traced_file variables.
8388
8389 2011-09-28  Andreas Schwab  <schwab@redhat.com>
8390
8391         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8392
8393 2011-09-27  Roland McGrath  <roland@hack.frob.com>
8394
8395         [BZ #13226]
8396         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
8397
8398 2011-09-27  Andreas Schwab  <schwab@redhat.com>
8399
8400         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8401         Reread the line before reparsing it.
8402
8403 2011-09-26  Andreas Schwab  <schwab@redhat.com>
8404
8405         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
8406
8407 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
8408             Maxim Kuvyrkov  <maxim@codesourcery.com>
8409             Joseph Myers  <joseph@codesourcery.com>
8410
8411         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
8412         if needed for __stack_chk_guard.
8413
8414 2011-09-19  Roland McGrath  <roland@hack.frob.com>
8415
8416         * sysdeps/posix/spawni.c (script_execute): Always define it.
8417         It will be optimized away if unused.
8418         (maybe_script_execute): New function.
8419         (__spawni): Call it.
8420
8421         * Makerules: Don't include tls.make.
8422         (config-tls): Always set to thread.
8423         * tls.make.c: File removed.
8424
8425 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
8426
8427         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
8428         * config.make.in (CPPFLAGS-config): New substituted variable.
8429
8430 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8431
8432         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
8433
8434         [BZ #13192]
8435         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
8436         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
8437
8438 2011-09-15  Roland McGrath  <roland@hack.frob.com>
8439
8440         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
8441         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
8442         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
8443         (CALL_FAIL): Likewise.
8444         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
8445         (CALL_FAIL): Macro removed.
8446         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
8447
8448 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8449
8450         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
8451         for __FINITE_MATH_ONLY__ == 1.
8452
8453 2011-09-15  Andreas Schwab  <schwab@redhat.com>
8454
8455         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
8456         __ieee754_sqrt instead of sqrt.
8457         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
8458         __ieee754_sqrtf instead of sqrtf.
8459         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
8460         __floorf instead of floorf.
8461         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
8462         __floorf, __truncf instead of floorf, truncf.
8463
8464 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
8465
8466         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
8467
8468         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
8469         __extern_always_inline.
8470         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
8471         32-bit.
8472
8473 2011-09-14  Andreas Schwab  <schwab@redhat.com>
8474
8475         * elf/rtld.c (dl_main): Also relocate in dependency order when
8476         doing symbol dependency testing.
8477
8478 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
8479
8480         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8481         Always define `refsym'.
8482
8483 2011-09-13  Andreas Schwab  <schwab@redhat.com>
8484
8485         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
8486         (__FD_ELT): Renamed from __FDELT.
8487         * misc/bits/select2.h (__FD_ELT): Likewise.
8488         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
8489         __FD_MASK instead of __FDELT, __FDMASK.
8490         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8491         Likewise.
8492         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8493         Likewise.
8494
8495         * elf/Makefile (gen-ldd): Fix pattern.
8496
8497         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
8498         (init_tls): Likewise.
8499
8500 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
8501
8502         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
8503
8504 2011-09-12  Andreas Schwab  <schwab@redhat.com>
8505
8506         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
8507         `struct cmsghdr *' instead of `void *'.
8508         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
8509         Likewise.
8510
8511 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
8512
8513         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
8514         if non-absolute.
8515         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
8516         ldd_rewrite_script.
8517
8518 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
8519
8520         * configure.in: Remove --with-tls option.
8521         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
8522         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
8523         out in case it is missing.
8524         * sysdeps/ia64/elf/configure.in: Likewise.
8525         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
8526         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
8527         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
8528         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
8529         * sysdeps/sh/elf/configure.in: Likewise.
8530         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
8531         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8532         * sysdeps/x86_64/elf/configure.in: Likewise.
8533         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
8534         * sysdeps/mach/hurd/tls.h: Likewise.
8535
8536         [BZ #13067]
8537         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
8538
8539         [BZ #13090]
8540         * configure.in: Fix use of AC_INIT.
8541
8542         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
8543
8544 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
8545
8546         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
8547         __set_errno.
8548         * malloc/hooks.c: Likewise.
8549
8550         [BZ #11929]
8551         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
8552         variables statically.
8553         (narenas): Initialize.
8554         (list_lock): Initialize.
8555         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
8556         initializtion of main_arena and list_lock.  Small cleanups.
8557         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
8558         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
8559         Add initializers to main_arena and mp_.
8560         (malloc_state): Remove pagesize member.  Change all users to use
8561         GLRO(dl_pagesize).
8562
8563         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
8564         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
8565         is always initialized.
8566
8567         * malloc/malloc.c: Removed unused configurations and dead code.
8568         * malloc/arena.c: Likewise.
8569         * malloc/hooks.c: Likewise.
8570         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
8571
8572         * include/tls.h: Removed.  USE___THREAD must always be defined.
8573         * bits/libc-tsd.h: Don't handle !USE___THREAD.
8574         * elf/dl-libc.c: Likewise.
8575         * elf/dl-tsd.c: Likewise.
8576         * include/errno.h: Likewise.
8577         * include/netdb.h: Likewise.
8578         * include/resolv.h: Likewise.
8579         * inet/herrno-loc.c: Likewise.
8580         * inet/herrno.c: Likewise.
8581         * malloc/arena.c: Likewise.
8582         * malloc/hooks.c: Likewise.
8583         * malloc/malloc.c: Likewise.
8584         * resolv/res-state.c: Likewise.
8585         * resolv/res_libc.c: Likewise.
8586         * sysdeps/i386/dl-machine.h: Likewise.
8587         * sysdeps/ia64/dl-machine.h: Likewise.
8588         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8589         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8590         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8591         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8592         * sysdeps/sh/dl-machine.h: Likewise.
8593         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8594         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8595         * sysdeps/unix/i386/sysdep.S: Likewise.
8596         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8597         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
8598         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
8599         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8600         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
8601         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8602         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
8603         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8604         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8605         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8606         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8607         * sysdeps/x86_64/dl-machine.h: Likewise.
8608         * tls.make.c: Likewise.
8609
8610         * configure.in: Remove --with-__thread option.  Make tests for
8611         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
8612         tls_model attribute fail if no support is available.  Remove
8613         USE_IN_LIBIO.
8614         * Makeconfig: Adjust for dropped configure option.  All features are
8615         now mandatory.
8616         * Makerules: Likewise.
8617         * Versions.def: Likewise.
8618         * argp/argp-fmtstream.c: Likewise.
8619         * argp/argp-fmtstream.h: Likewise.
8620         * argp/argp-help.c: Likewise.
8621         * assert/assert.c: Likewise.
8622         * config.h.in: Likewise.
8623         * config.make.in: Likewise.
8624         * configure: Likewise.
8625         * configure.in: Likewise.
8626         * csu/Versions: Likewise.
8627         * csu/init.c: Likewise.
8628         * elf/tst-audit2.c: Likewise.
8629         * elf/tst-tls10.c: Likewise.
8630         * elf/tst-tls10.h: Likewise.
8631         * elf/tst-tls11.c: Likewise.
8632         * elf/tst-tls12.c: Likewise.
8633         * elf/tst-tls14.c: Likewise.
8634         * elf/tst-tlsmod11.c: Likewise.
8635         * elf/tst-tlsmod12.c: Likewise.
8636         * elf/tst-tlsmod13.c: Likewise.
8637         * elf/tst-tlsmod13a.c: Likewise.
8638         * elf/tst-tlsmod14a.c: Likewise.
8639         * elf/tst-tlsmod15b.c: Likewise.
8640         * elf/tst-tlsmod16a.c: Likewise.
8641         * elf/tst-tlsmod16b.c: Likewise.
8642         * elf/tst-tlsmod7.c: Likewise.
8643         * elf/tst-tlsmod8.c: Likewise.
8644         * elf/tst-tlsmod9.c: Likewise.
8645         * gmon/gmon.c: Likewise.
8646         * grp/fgetgrent_r.c: Likewise.
8647         * grp/putgrent.c: Likewise.
8648         * hurd/fopenport.c: Likewise.
8649         * include/libc-symbols.h: Likewise.
8650         * include/tls.h: Likewise.
8651         * intl/gettextP.h: Likewise.
8652         * intl/loadinfo.h: Likewise.
8653         * locale/global-locale.c: Likewise.
8654         * locale/localeinfo.h: Likewise.
8655         * mach/devstream.c: Likewise.
8656         * malloc/arena.c: Likewise.
8657         * malloc/set-freeres.c: Likewise.
8658         * misc/err.c: Likewise.
8659         * misc/getttyent.c: Likewise.
8660         * misc/mntent_r.c: Likewise.
8661         * posix/getopt.c: Likewise.
8662         * posix/wordexp.c: Likewise.
8663         * pwd/fgetpwent_r.c: Likewise.
8664         * resolv/Versions: Likewise.
8665         * resolv/res_hconf.c: Likewise.
8666         * shadow/fgetspent_r.c: Likewise.
8667         * shadow/putspent.c: Likewise.
8668         * stdio-common/printf_fphex.c: Likewise.
8669         * stdio-common/tmpfile.c: Likewise.
8670         * stdlib/abort.c: Likewise.
8671         * stdlib/fmtmsg.c: Likewise.
8672         * sunrpc/auth_unix.c: Likewise.
8673         * sunrpc/clnt_perr.c: Likewise.
8674         * sunrpc/clnt_tcp.c: Likewise.
8675         * sunrpc/clnt_udp.c: Likewise.
8676         * sunrpc/clnt_unix.c: Likewise.
8677         * sunrpc/openchild.c: Likewise.
8678         * sunrpc/svc_simple.c: Likewise.
8679         * sunrpc/svc_tcp.c: Likewise.
8680         * sunrpc/svc_udp.c: Likewise.
8681         * sunrpc/svc_unix.c: Likewise.
8682         * sunrpc/xdr.c: Likewise.
8683         * sunrpc/xdr_array.c: Likewise.
8684         * sunrpc/xdr_rec.c: Likewise.
8685         * sunrpc/xdr_ref.c: Likewise.
8686         * sunrpc/xdr_stdio.c: Likewise.
8687
8688 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8689
8690         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8691
8692 2011-07-03  Andreas Jaeger  <aj@suse.de>
8693
8694         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
8695         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
8696         regenerate with gen-libm-tests.pl.
8697
8698 2010-05-12  Petr Baudis  <pasky@suse.cz>
8699
8700         [BZ #11589]
8701         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
8702         around j0() zero points by switching to j1().
8703         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8704         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8705         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8706         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8707
8708 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8709
8710         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
8711         instead of 0.
8712         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
8713         instead of 0.                              .
8714         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8715         Patch in part by Pavel Roskin <proski@gnu.org>.
8716
8717         [BZ #13138]
8718         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
8719         realloc.
8720         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
8721         Free memory block if necessary.
8722
8723         [BZ #12847]
8724         * libio/genops.c (INTDEF): For string streams the _lock pointer can
8725         be NULL.  Don't lock in this case.
8726
8727 2011-09-09  Roland McGrath  <roland@hack.frob.com>
8728
8729         * elf/elf.h (ELFOSABI_GNU): New macro.
8730         (ELFOSABI_LINUX): Define to that.
8731
8732 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
8733
8734         * string/strncat.c (strncat): Undef the symbol in case it has been
8735         defined in bits/string.h.
8736
8737 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8738
8739         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
8740
8741         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
8742         link map.
8743
8744 2011-08-17  Andreas Jaeger  <aj@suse.de>
8745
8746         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
8747
8748 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8749             Ian Lance Taylor  <iant@google.com>
8750
8751         * math/libm-test.inc (lround_test): New testcase.
8752         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
8753
8754 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
8755
8756         * Makefile: Remove support for automatic cvs check-ins.
8757         * Makerules: Likewise.
8758         * config.make.in: Likewise.
8759         * configure.in: Likewise.
8760         * intl/Makefile: Likewise.
8761         * locale/Makefile: Likewise.
8762         * po/Makefile: Likewise.
8763         * posix/Makefile: Likewise.
8764         * sysdeps/gnu/Makefile: Likewise.
8765         * sysdeps/mach/hurd/Makefile: Likewise.
8766         * sysdeps/sparc/sparc32/Makefile: Likewise.
8767
8768         [BZ #13118]
8769         * posix/Makefile (bug-regex32-ENV): Define.
8770         Patch by John Stanley <jpsinthemix@verizon.net>.
8771
8772         * misc/Makefile (headers): Add bits/select2.h.
8773         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
8774         * misc/bits/select2.h: New file.
8775         * include/bits/select2.h: New file.
8776         * debug/Makefile (routines): Add fdelt_chk.
8777         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
8778         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
8779         FD_ISSET.
8780         * debug/fdelt_chk.c: New file.
8781
8782         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
8783         * wcsmbs/test-wmemcmp.c: Likewise.
8784         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
8785         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
8786
8787 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8788
8789         * string/Makefile (strop-tests): Add memcmp.
8790         * string/test-wmemcmp.c: New file.
8791         * string/test-memcmp.c: Add wmemcmp support.
8792
8793 2011-09-08  Roland McGrath  <roland@hack.frob.com>
8794
8795         [BZ #13153]
8796         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
8797         2011-07-19 change.
8798
8799         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
8800         garbage value in a __mach_port_mod_refs call in the cases of the
8801         task-self and thread-self ports.
8802
8803 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8804
8805         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
8806
8807 2011-09-08  Andreas Schwab  <schwab@redhat.com>
8808
8809         * elf/dl-load.c (lose): Check for non-null L.
8810
8811 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
8812
8813         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
8814
8815         * elf/dl-libc.c (dlerror_run): Pass back error code from
8816         dl_catch_error.
8817
8818         [BZ #13123]
8819         * elf/dl-load.c (lose): Free l_origin if it is valid.
8820
8821         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
8822         names.
8823         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
8824         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
8825         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8826         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
8827         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
8828         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
8829
8830 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8831
8832         * sysdeps/powerpc/fpu/e_hypot.c: New file.
8833         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
8834         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
8835         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
8836         * sysdeps/powerpc/fpu/k_cosf.c: New file.
8837         * sysdeps/powerpc/fpu/k_sinf.c: New file.
8838         * sysdeps/powerpc/fpu/s_cosf.c: New file.
8839         * sysdeps/powerpc/fpu/s_sinf.c: New file.
8840         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
8841         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
8842
8843 2011-08-15  Alan Modra  <amodra@gmail.com>
8844
8845         [BZ #13092]
8846         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
8847         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
8848         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
8849         ppc_mcount to static-only-routines.
8850         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
8851         __mcount_internal.
8852         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
8853         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
8854
8855 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
8856
8857         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
8858         for finite and infinity parameters.
8859
8860 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
8861
8862         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
8863         and add nop instructions for throughput optimization.
8864         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
8865
8866 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
8867
8868         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
8869         aligned copy for power7 with vector-scalar instructions.
8870         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
8871
8872 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
8873
8874         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
8875         AVX check.
8876
8877 2011-09-07  Andreas Schwab  <schwab@redhat.com>
8878
8879         [BZ #13144]
8880         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
8881         last change.
8882
8883 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
8884
8885         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8886         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
8887         syscall wrapper around clock_gettime in __vdso_clock_gettime.
8888         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
8889         clock_gettime.
8890
8891 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
8892
8893         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
8894         Forgot to demangle the pointer.
8895
8896         * sysdeps/i386/sysdep.h: Define atom_text_section.
8897         * sysdeps/x86_64/sysdep.h: Likewise.
8898         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
8899         section with atom_text_section.
8900         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
8901         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
8902         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
8903         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8904         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
8905
8906         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
8907         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
8908         already be defined.  Change to take two parameters and don't assign
8909         result to variable.  Adjust all users.
8910         Define INTERNAL_GETTIME if not already defined.
8911         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
8912         call.
8913         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
8914         HAVE_CLOCK_GETTIME_VSYSCALL.
8915         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
8916
8917         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
8918         gettimeofday vsyscall, just use time.
8919
8920 2011-09-06  Andreas Schwab  <schwab@redhat.com>
8921
8922         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
8923         <errno.h>.
8924
8925 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
8926
8927         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
8928         syscall on x86-64.
8929         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
8930         syscall.
8931         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
8932         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
8933         syscall if possible.
8934
8935 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8936
8937         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
8938         e_ident.  Don't pass to find_mapsXX.
8939         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
8940
8941 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8942
8943         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8944         strchr-sse2-no-bsf strrchr-sse2-no-bsf
8945         * sysdeps/x86_64/multiarch/strchr.S: Update.
8946         Check bit_slow_BSF bit.
8947         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8948         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
8949         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
8950
8951 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8952
8953         [BZ #13134]
8954         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
8955         before glibc 2.15.
8956         (tryshell): Define.
8957         (__spawni): Change last parameter to be flag.  Test
8958         SPAWN_XFLAGS_USE_PATH flag to use path or not.
8959         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
8960         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
8961         * posix/spawni.c: Likewise.
8962         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
8963         * posix/spawnp.c: Likewise.  Change normal version to use
8964         SPAWN_XFLAGS_USE_PATH.
8965         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
8966         SPAWN_XFLAGS_TRY_SHELL.
8967
8968         [BZ #13150]
8969         * posix/glob.h: Remove gcc 1.x support.
8970
8971         [BZ #13068]
8972         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
8973
8974 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8975
8976         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8977         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
8978         strrchr-sse2-bsf
8979         * sysdeps/i386/i686/multiarch/strchr.S: New file.
8980         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
8981         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
8982         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
8983         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
8984         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
8985
8986 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8987
8988         * sysdeps/x86_64/wcscmp.S: New file.
8989
8990         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
8991         wcscmp-c wcscmp-sse2
8992         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
8993         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
8994         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
8995         * wcsmbs/wcscmp.c: Allow renaming.
8996
8997 2011-09-05  David S. Miller  <davem@davemloft.net>
8998
8999         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
9000         stack slot, rather than the struct return pointer slot.
9001         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
9002         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
9003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
9004         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
9005
9006 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9007
9008         * po/ja.po: Update from translation team.
9009
9010         [BZ #13144]
9011         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
9012         kernel in 64-bit binaries.
9013
9014 2011-09-01  David S. Miller  <davem@davemloft.net>
9015
9016         * elf/elf.h (HWCAP_SPARC_*): Move to..
9017         * sysdeps/sparc/sysdep.h: this new file and add new values.
9018         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
9019         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
9020         _DL_HWCAP_COUNT to 24.
9021         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9022         entries.
9023         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
9024         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
9025         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
9026         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
9027         instead of magic constants.
9028         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9029
9030 2011-08-31  David S. Miller  <davem@davemloft.net>
9031
9032         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
9033         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
9034         Reimplement to do errno handling inline.
9035         (SYSCALL_ERROR_HANDLER): New macro.
9036         (__SYSCALL_STRING): Do not do errno handling in asm.
9037         (__CLONE_SYSCALL_STRING): Delete.
9038         (__INTERNAL_SYSCALL_STRING): Delete.
9039         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9040         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
9041         (PSEUDO): Reimplement to do errno handling inline.
9042         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
9043         (SYSCALL_ERROR_HANDLER): New macro.
9044         (__SYSCALL_STRING): Do not do errno handling in asm.
9045         (__CLONE_SYSCALL_STRING): Delete.
9046         (__INTERNAL_SYSCALL_STRING): Delete.
9047         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
9048         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
9049         i386.
9050         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
9051         (inline_syscall*): Add 'err' argument.
9052         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
9053         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
9054         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
9055         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
9056
9057         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
9058         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9059
9060 2011-08-30  Andreas Schwab  <schwab@redhat.com>
9061
9062         * elf/rtld.c (dl_main): Relocate objects in dependency order.
9063
9064 2011-08-29  Jiri Olsa <jolsa@redhat.com>
9065
9066         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
9067         directive.
9068
9069 2011-08-24  David S. Miller  <davem@davemloft.net>
9070
9071         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
9072
9073 2011-08-24  Andreas Schwab  <schwab@redhat.com>
9074
9075         * elf/Makefile: Add rules to build and run unload8 test.
9076         * elf/unload8.c: New file.
9077         * elf/unload8mod1.c: New file.
9078         * elf/unload8mod1x.c: New file.
9079         * elf/unload8mod2.c: New file.
9080         * elf/unload8mod3.c: New file.
9081
9082         * elf/dl-close.c (_dl_close_worker): Reset private search list if
9083         it wasn't used.
9084
9085 2011-08-23  David S. Miller  <davem@davemloft.net>
9086
9087         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
9088         subtract stack bias.
9089         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
9090         %sp not %fp in calculations.
9091         (_JMPBUF_UNWINDS_ADJ): Likewise.
9092
9093         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
9094         (aio_suspend): Call it to force an exception region around the
9095         AIO_MISC_WAIT() invocation.
9096
9097 2011-08-23  Andreas Schwab  <schwab@redhat.com>
9098
9099         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
9100         backslash.
9101
9102 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
9103
9104         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
9105         protection macro.
9106         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
9107         and <dl-machine.h>.
9108         (Elf64_FuncDesc): Remove.
9109
9110 2011-08-22  David S. Miller  <davem@davemloft.net>
9111
9112         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
9113         sigaltstack check, add missing cfi directives.
9114         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
9115         missing cfi directives, and sigaltstack handling.
9116
9117 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9118
9119         [BZ #11724]
9120         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
9121         object is seen twice.
9122         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9123
9124         * elf/Makefile (distribute): Add tst-initorder2.c.
9125         (tests): Add tst-initorder2.
9126         (modules-names): Add tst-initorder2a tst-initorder2b
9127         tst-initorder2c tst-initorder2d.  Add rules to build them.
9128         ($(objpfx)tst-initorder2.out): New rule.
9129         * elf/tst-initorder2.c: New file.
9130         * elf/tst-initorder2.exp: New file.
9131
9132 2011-08-22  Andreas Schwab  <schwab@redhat.com>
9133
9134         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
9135
9136         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
9137         dependencies back to end of function.
9138
9139         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
9140         $(elfobjdir)/ld.so.
9141
9142 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
9143
9144         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
9145         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
9146         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9147         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9148         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
9149         of __vdso_gettimeofday.
9150         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
9151         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
9152         attribute_hidden.
9153         (_libc_vdso_platform_setup): Remove initialization of
9154         __vdso_gettimeofday and __vdso_time.
9155
9156 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9157
9158         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
9159         and fgetc_unlocked.
9160         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
9161         getc_unlocked.
9162
9163         * elf/dl-open.c (add_to_global): Report additions to the global scope
9164         for LD_DEBUG=scopes.
9165         (dl_open_worker): Also print scope of newly loaded dependencies.
9166         (_dl_show_scope): Indicate if there is no scope.
9167
9168         [BZ #13114]
9169         * stdio-common/Makefile (tests): Add bug24.
9170         * stdio-common/bug24.c: New file.
9171
9172 2011-08-19  Andreas Jaeger  <aj@suse.de>
9173
9174         [BZ #13114]
9175         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
9176         non-existant file when using close-on-exec mode.
9177
9178 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9179
9180         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
9181         the very first instruction.
9182
9183         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
9184         the CFI state in the end.
9185         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
9186         inclusion of dl-trampoline.h.
9187         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
9188
9189 2011-08-19  Andreas Schwab  <schwab@redhat.com>
9190
9191         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
9192         expectations for long double.
9193
9194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
9195         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
9196
9197 2011-08-14  David S. Miller  <davem@davemloft.net>
9198
9199         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
9200         artificual limit depends upon the system page size.
9201
9202 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9203
9204         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
9205         * resolv/Makefile: Define CFLAGS-libresolv.
9206
9207 2011-08-17  Andreas Schwab  <schwab@redhat.com>
9208
9209         * nss/makedb.c (compute_tables): Make variables used in nested
9210         function static.
9211
9212 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9213
9214         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
9215         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
9216         if buffer was too small.
9217
9218         * elf/pldd.c (main): Attach to all threads in the process.
9219         Rewrite /proc handling to use *at functions.
9220
9221 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
9222
9223         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
9224         specifies first scope to show.
9225         (dl_open_worker): Update callers.  Move printing scope of new
9226         object to before the relocation.
9227         * elf/rtld.c (dl_main): Update _dl_show_scope call.
9228         * sysdeps/generic/ldsodefs.h: Update declaration.
9229
9230         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
9231         string for the scope number.
9232
9233 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
9234
9235         * nscd/servicescache.c (cache_addserv): Make sure written is always
9236         initialized.
9237
9238 2011-08-14  Roland McGrath  <roland@hack.frob.com>
9239
9240         * sysdeps/i386/i486/bits/atomic.h
9241         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
9242         statement expression, so as to suppress "set but not used" warning.
9243         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
9244
9245         * string/strncat.c (STRNCAT): Use prototype definition.
9246
9247         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
9248         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
9249         -Iprograms here.
9250         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
9251         (localedef-modules): Add localedef.
9252         (locale-modules): Add locale.
9253
9254         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
9255         * elf/rtld.c (dl_main): Invert order of assignment in last change,
9256         to avoid a warning.
9257
9258 2011-08-14  David S. Miller  <davem@davemloft.net>
9259
9260         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
9261         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
9262
9263 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
9264
9265         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
9266         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
9267         * elf/rtld.c (dl_main): Set l_name of vDSO.
9268         Call _dl_show_scope when DL_DEBUG_SCOPES.
9269         (process_dl_debug): Recognize scopes flag and also set it for all.
9270         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
9271         Declare _dl_show_scope.
9272
9273         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
9274         (do_dlopen): Pass caller_dlopen to dl_open.
9275         (__libc_dlopen_mode): Initialize caller_dlopen.
9276
9277         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
9278         of libc.  Make tolower call locale-independent.  Optimize a bit by
9279         using isdigit instead of isalnum.
9280         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
9281
9282 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
9283
9284         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
9285         was a dependency or dynamically loaded.
9286
9287 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
9288
9289         * intl/l10nflist.c: Allow architecture-specific pop function.
9290         * sysdeps/x86_64/l10nflist.c: New file.
9291
9292         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
9293         classification.
9294
9295 2011-08-10  Andreas Schwab  <schwab@redhat.com>
9296
9297         * include/dirent.h: Add libc_hidden_proto for scandirat and
9298         scandirat64.  Don't declare __scandirat64.
9299         * dirent/scandirat.c: Add libc_hidden_def.
9300         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
9301         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
9302
9303 2011-08-10  David S. Miller  <davem@davemloft.net>
9304
9305         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
9306         enum.
9307         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9308         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9309         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9310
9311 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
9312
9313         * Versions.def [libc]: Add GLIBC_2.15.
9314         * dirent/Makefile (routines): Add scandirat and scandirat64.
9315         * dirent/Versions [libc]: Export scandirat and scandirat64 for
9316         GLIBC_2.15.
9317         * dirent/dirent.h: Declare scandirat and scandirat64.
9318         * dirent/scandirat.c: New file.
9319         * dirent/scandirat64.c: New file.
9320         * sysdeps/wordsize-64/scandirat.c: New file.
9321         * sysdeps/wordsize-64/scandirat64.c: New file.
9322         * dirent/opendir.c: Define opendirat.
9323         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
9324         using scandirat.
9325         * dirent/scandir64.c: Adjust for scandir.c change.
9326         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
9327         __scandirat64, and __scandir_cancel_handler.
9328         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
9329         additional parameter and use openat instead of open (outside of ld.so).
9330         Add new __opendir as wrapper around __opendirat.
9331         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
9332         here without requiring old scandirat implementation.
9333
9334 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
9335
9336         * dirent/scandir.c (cancel_handler): Renamed to
9337         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
9338         defined.  Adjust users.
9339         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
9340         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9341
9342 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
9343
9344         * string/test-string.h (IMPL): Use __STRING to expand name and then
9345         stringify it.
9346
9347         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
9348         of cleanups.
9349
9350 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9351
9352         * string/Makefile: Update.
9353         (strop-tests): Append strncat.
9354         * string/test-wcscmp.c: New file.
9355         New comprehensive test for wcscmp.
9356         * string/test-strcmp.c: Update.
9357         (WIDE): New define.
9358
9359 2011-07-22  Andreas Schwab  <schwab@redhat.com>
9360
9361         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
9362         line.
9363
9364 2011-07-26  Andreas Schwab  <schwab@redhat.com>
9365
9366         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
9367         encoding to ACE if AI_IDN.
9368
9369 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
9370
9371         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
9372         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
9373
9374 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9375
9376         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
9377         Fix overflow bug in strncat.
9378         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
9379
9380         * string/test-strncat.c: Update.
9381         Add new tests for checking overflow bugs.
9382
9383 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9384
9385         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9386         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
9387         * sysdeps/i386/i686/multiarch/strcat.S: New file.
9388         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
9389         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
9390         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
9391         * sysdeps/i386/i686/multiarch/strncat.S: New file.
9392         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
9393         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
9394
9395         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
9396         (USE_AS_STRCAT): Define.
9397         Add strcat and strncat support.
9398         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9399
9400 2011-07-25  Andreas Schwab  <schwab@redhat.com>
9401
9402         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
9403         __n bigger than INT_MAX+1.
9404         (__strncmp_g): Likewise.
9405
9406 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
9407
9408         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
9409         * libio/stido.h: Likewise.
9410
9411         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
9412         (AF_NFC): Define.
9413         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
9414         (AF_NFC): Define.
9415
9416         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
9417         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9418         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9419         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9420         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9421
9422         [BZ #13021]
9423         * scripts/test-installation.pl: Don't expect libnss_test1 to be
9424         installed.
9425
9426         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
9427         typo.
9428         (_dl_x86_64_save_sse): Likewise.
9429
9430 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
9431
9432         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
9433         OSXSAVE.
9434         (_dl_x86_64_save_sse): Likewise.
9435
9436         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
9437
9438         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
9439
9440 2011-07-21  Andreas Schwab  <schwab@redhat.com>
9441
9442         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
9443         change.
9444         (_dl_x86_64_save_sse): Use correct AVX check.
9445
9446 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9447
9448         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
9449         bug in strncpy/strncat.
9450         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
9451
9452 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
9453
9454         * string/tester.c (test_strcat): Add tests for different alignments
9455         of source and destination.
9456         (test_strncat): Likewise.
9457
9458 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9459
9460         [BZ #12852]
9461         * posix/glob.c (glob): Check passed in values before using them in
9462         expressions to avoid some overflows.
9463         (glob_in_dir): Likewise.
9464
9465         [BZ #13007]
9466         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
9467         check for AVX enablement so that we don't crash with old kernels and
9468         new hardware.
9469         * elf/tst-audit4.c: Add same checks here.
9470         * elf/tst-audit6.c: Likewise.
9471
9472         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
9473
9474 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
9475
9476         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
9477
9478 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9479
9480         * po/cs.po: Update from translation team.
9481         * po/bg.po: Likewise.
9482
9483 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
9484
9485         * misc/sys/cdefs.h: Add support for const attribute.
9486         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
9487         to gnu_dev_{major,minor,makedev} functions.
9488
9489 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
9490
9491         * intl/dcigettext.c (get_output_charset): Add missing bracket.
9492
9493 2011-07-20  Andreas Schwab  <schwab@redhat.com>
9494
9495         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
9496         strlen results.
9497
9498 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9499
9500         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
9501         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
9502         register in order to avoid conflicts with the soft frame pointer
9503         being held in r11 when necessary.
9504         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
9505         (INTERNAL_VSYSCALL_NCS): Likewise.
9506
9507 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
9508
9509         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
9510         * elf/dl-fini.c (_dl_fini): Adjust caller.
9511         * elf/dl-close.c (_dl_close_worker): Likewise.
9512         * sysdeps/generic/ldsodefs.h: Adjust declaration.
9513
9514 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
9515
9516         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
9517         "aux_cache->nlibs < 0".
9518
9519         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
9520         in the reload-count case.
9521
9522 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9523
9524         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9525         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
9526         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
9527         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
9528         * sysdeps/x86_64/multiarch/strcat.S: New file.
9529         * sysdeps/x86_64/multiarch/strncat.S: New file.
9530         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
9531         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
9532         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
9533         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
9534         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
9535         (USE_AS_STRCAT): Define.
9536         Add strcat and strncat support.
9537         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9538         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
9539         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
9540         * string/strncat.c: Update.
9541         (USE_AS_STRNCAT): Define.
9542         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9543         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
9544         and i7.
9545         * sysdeps/x86_64/multiarch/init-arch.h
9546         (bit_Prefer_PMINUB_for_stringop): New.
9547         (index_Prefer_PMINUB_for_stringop): Likewise.
9548         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
9549         bit_Prefer_PMINUB_for_stringop.
9550
9551 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
9552
9553         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
9554         buffer64.
9555         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
9556         of casting of buffer.
9557         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
9558         buffer32 and buffer64.
9559         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
9560         writes instead of casting of buffer.
9561         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
9562         buffer32.
9563         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
9564         casting of buffer.
9565
9566 2011-07-19  Andreas Schwab  <schwab@redhat.com>
9567
9568         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
9569
9570 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
9571
9572         * nscd/nscd.c (termination_handler): Don't do anything for a database
9573         if it has not yet been initialized.
9574
9575 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
9576
9577         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
9578
9579 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
9580
9581         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
9582
9583 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
9584
9585         * po/nl.po: Update from translation team.
9586         * po/sv.po: Likewise.
9587
9588 2011-07-16  Roland McGrath  <roland@hack.frob.com>
9589
9590         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
9591         now disallowed by GCC.
9592
9593         * configure.in (use-default-link): Default to yes if a test -shared
9594         link meets our qualifications.
9595         * configure: Regenerated.
9596
9597         * config.make.in (output-format): New variable.
9598         * configure.in: Check for ld --print-output-format support.
9599         * configure: Regenerated.
9600         * Makerules ($(common-objpfx)format.lds)
9601         [$(output-format) != unknown]: Just use $(output-format),
9602         instead of the linker-script munging.
9603
9604 2011-07-14  Roland McGrath  <roland@hack.frob.com>
9605
9606         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
9607         of $(common-objpfx)shlib.lds.
9608         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
9609
9610         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
9611         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
9612
9613         * configure.in (-z relro check): Adjust test code to add a large
9614         writable data section after it.
9615         * configure: Regenerated.
9616
9617 2011-07-11  Roland McGrath  <roland@hack.frob.com>
9618
9619         * configure.in (-z relro check): Fix test code to make the variable
9620         truly const.
9621         * configure: Regenerated.
9622
9623 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
9624
9625         * nscd/nscd.h (struct traced_file): Define.
9626         (struct database_dyn): Remove inotify_descr, reset_res, and filename
9627         elements.  Add traced_files.
9628         (inotify_fd): Declare.
9629         (register_traced_file): Declare.
9630         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
9631         (inotify_fd): Export.
9632         (resolv_conf_descr): Remove.
9633         (nscd_init): Move inotify descriptor creation to main.
9634         Don't register files for notification here.
9635         (register_traced_file): New function.
9636         (invalidate_cache): Don't use reset_res to determine whether to call
9637         res_init, go through the list of registered files.
9638         (main_loop_poll): The inotify descriptors are now stored in the
9639         structures for the traced files.
9640         (main_loop_epoll): Likewise
9641         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
9642         to __nss_disable_nscd.
9643         * nscd/cache.c (prune_cache): There is no single inotify descriptor
9644         for a database anymore.  Check the records for all the registered
9645         files instead.
9646         * nss/Makefile (libnss_files-routines): Add files-init.
9647         (libnss_db-routines): Add db-init.
9648         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
9649         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
9650         * nss/nss_db/db-init.c: New file.
9651         * nss/nss_files/files-init.c: New file.
9652         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
9653         __nss_lookup_function.
9654         (__nss_lookup_function): Call nss_load_library.
9655         (nss_load_all_libraries): New function.
9656         (__nss_disable_nscd): Take parameter with callback function for files
9657         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
9658         used for the cached services.
9659         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
9660         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
9661         options for features to all the files in nscd.
9662
9663         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
9664
9665 2011-07-10  Roland McGrath  <roland@hack.frob.com>
9666
9667         * csu/elf-init.c (__libc_csu_init): Comment typo.
9668
9669 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
9670
9671         * po/pl.po: Update from translation team.
9672         * po/ja.po: Likewise.
9673         * po/ru.po: Likewise.
9674         * po/ko.po: Likewise.
9675         * po/fr.po: Likewise.
9676
9677 2011-07-09  Roland McGrath  <roland@hack.frob.com>
9678
9679         * configure.in (.ctors/.dtors header and trailer check):
9680         Use an empirical test on a built program.
9681         * configure: Regenerated.
9682
9683         * configure.in (-z relro check): Use an empirical test on a built DSO.
9684         Detect, but do not require, on ia64.
9685         * configure: Regenerated.
9686
9687         * configure.in (READELF): Find it with AC_CHECK_TOOL.
9688         Update tests that use readelf to use $READELF instead.
9689         * configure: Regenerated.
9690
9691 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
9692
9693         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
9694         if the result is not used.
9695
9696 2011-07-05  Andreas Jaeger  <aj@suse.de>
9697
9698         [BZ#9696]
9699         * stdlib/tst-strtod.c: Add testcase.
9700
9701 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9702
9703         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
9704         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
9705         The latter has a higher limit.  Take additional parameter to pass to
9706         the new function.
9707         (__pathconf): Pass file to __statfs_link_max.
9708         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
9709         __statfs_link_max.
9710         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
9711         __statfs_link_max.
9712
9713         [BZ #12868]
9714         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
9715         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9716         Handle Lustre.
9717         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
9718         (__statfs_filesize_max): Likewise.
9719         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
9720
9721 2011-07-05  Andreas Jaeger  <aj@suse.de>
9722
9723         * resolv/res_comp.c (dn_skipname): Remove unused variable.
9724
9725 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
9726
9727         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
9728         `status' variable.
9729         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
9730         Likewise.
9731
9732 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
9733
9734         * Makefile (strop-tests): Add strncat.
9735         * string/test-strncat.c: New file.
9736
9737 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
9738
9739         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
9740
9741 2011-06-21  Andreas Jaeger  <aj@suse.de>
9742
9743         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
9744         Copy rule from iconvdata/Makefile.
9745
9746 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9747
9748         [BZ #12922]
9749         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
9750         but no long options are defined, just return 'W'.
9751
9752 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
9753
9754         [BZ #9696]
9755         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
9756
9757 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9758
9759         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
9760         netgroups to read.
9761         (innetgr): Likewise.
9762
9763 2011-07-05  Roland McGrath  <roland@hack.frob.com>
9764
9765         * config.make.in (install_root): Default to $(DESTDIR).
9766
9767 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
9768
9769         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
9770
9771 2011-07-02  Roland McGrath  <roland@hack.frob.com>
9772
9773         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
9774
9775         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
9776         containing directory rather than embedding absolute directory names.
9777
9778         * scripts/check-local-headers.sh: Rewritten using awk.
9779         Match by word, not by line.  Print error messages for matches.
9780         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
9781
9782         * Makerules [shlib-lds-flags empty]:
9783         ($(common-objpfx)libc_pic.opts): New target.
9784         ($(common-objpfx)libc_pic.os.clean): New target.
9785         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
9786
9787         * config.make.in (OBJCOPY): New variable.
9788         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
9789         * configure: Regenerated.
9790
9791         * config.make.in (use-default-link): New variable.
9792         * configure.in (use_default_link): Grok --with-default-link to set it.
9793         * configure: Regenerated.
9794         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
9795         (shlib-lds, shlib-lds-flags): Define to empty.
9796
9797         * Makerules (shlib-lds): New variable.
9798         (shlib-lds-flags): New variable.
9799         (build-shlib, build-moduile, build-module-asneeded): Use it.
9800         ($(common-objpfx)libc.so): Use $(shlib-lds).
9801         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
9802         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
9803
9804         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
9805         DT_FLAGS/DT_FLAGS_1 with zero flags.
9806
9807         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
9808         linker script munging.
9809
9810 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
9811
9812         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
9813         as 128-bit value.
9814         * crypt/sha512.c (sha512_process_block): Perform total addition using
9815         128-bit if possible.
9816         (__sha512_finish_ctx): Likewise.
9817         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
9818         as 64-bit value.
9819         * crypt/sha256.c (SWAP64): Define.
9820         (sha256_process_block): Perform total addition using 64-bit if
9821         possible.
9822         (__sha256_finish_ctx): Likewise.
9823
9824 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
9825
9826         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
9827         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9828         * nscd/hstcache.c (cache_addhst): Likewise.
9829         * nscd/grpcache.c (cache_addgr): Likewise.
9830         * nscd/aicache.c (addhstaiX): Likewise
9831         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
9832
9833 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
9834
9835         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
9836         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9837         * nscd/hstcache.c (cache_addhst): Likewise.
9838         * nscd/grpcache.c (cache_addgr): Likewise.
9839         * nscd/aicache.c (addhstaiX): Likewise
9840
9841 2011-07-01  Andreas Schwab  <schwab@redhat.com>
9842
9843         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
9844         domain only when needed.
9845
9846 2011-06-30  Andreas Schwab  <schwab@redhat.com>
9847
9848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
9849         is always restored.
9850
9851 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
9852
9853         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
9854         are re-adding the entry.
9855         * nscd/servicescache.c (cache_addserv): Likewise.
9856
9857 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
9858
9859         * sysdeps/generic/dl-irel.h: fix protection against multiple
9860         inclusions.
9861         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
9862
9863 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
9864
9865         [BZ #12935]
9866         * malloc/memusage.sh: Fix quoting in message.
9867         * debug/xtrace.sh: Likewise.
9868
9869         * configure.in: Remove support for --experimental-malloc option, make
9870         it the default.
9871         * config.make.in: Likewise.
9872         * malloc/Makefile: Likewise.
9873
9874 2011-06-27  Andreas Schwab  <schwab@redhat.com>
9875
9876         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
9877         two-byte characters.
9878
9879 2011-06-27  Roland McGrath  <roland@hack.frob.com>
9880
9881         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
9882         AC_CACHE_CHECK invocation.
9883         * configure: Regenerated.
9884
9885         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
9886
9887 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
9888
9889         [BZ #12350]
9890         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
9891         bit from old_res_options.
9892
9893         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
9894
9895         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
9896         value type for setfct.
9897
9898 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
9899
9900         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
9901         __gettimeofday instead of gettimeofday.
9902
9903 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
9904
9905         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
9906
9907 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9908
9909         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
9910
9911         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
9912         info.
9913
9914 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9915
9916         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9917         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
9918         strcpy-sse2-unaligned strncpy-sse2-unaligned
9919         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
9920         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
9921         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
9922         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
9923         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
9924         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
9925         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
9926         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
9927         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
9928         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
9929         (STRCPY): Support SSE2 and SSSE3 versions.
9930
9931 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
9932
9933         [BZ #12874]
9934         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
9935         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
9936         kernels which artificially limit size of requests.
9937
9938 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9939
9940         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9941         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
9942         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
9943         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
9944         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
9945         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
9946         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
9947         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
9948         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
9949         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
9950         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
9951         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
9952         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
9953         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
9954         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
9955         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9956         Enable unaligned load optimization for Intel Core i3, i5 and i7
9957         processors.
9958         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
9959         Define.
9960         (index_Fast_Unaligned_Load): Define.
9961         (HAS_FAST_UNALIGNED_LOAD): Define.
9962
9963 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
9964
9965         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
9966
9967 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
9968
9969         [BZ #12907]
9970         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
9971         until it is clear that the information is realy needed.
9972         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
9973
9974 2011-06-22  Andreas Schwab  <schwab@redhat.com>
9975
9976         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
9977
9978 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
9979
9980         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
9981         /sys/devices/system/cpu/online if it is usable.
9982
9983         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
9984         reading the information from the /proc filesystem to once a second.
9985
9986 2011-06-21  Andreas Jaeger  <aj@suse.de>
9987
9988         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
9989         NULL after inclusion of kernel headers.
9990
9991 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
9992
9993         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
9994         calls to internal_setent.
9995
9996         [BZ #12885]
9997         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
9998         addresses using gethostbyname4_r ignore IPv4 addresses.
9999
10000         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
10001         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
10002
10003         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
10004
10005 2011-06-20  David S. Miller  <davem@davemloft.net>
10006
10007         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
10008         inclusions.
10009         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
10010
10011         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
10012         (elf_irel): Use it.
10013         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
10014         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
10015         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
10016         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
10017         * sysdeps/x86_64/dl-irel.h: Likewise.
10018
10019         * elf/dl-runtime.c: Use elf_ifunc_invoke.
10020         * elf/dl-sym.c: Likewise.
10021
10022 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10023
10024         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
10025         need to dereference resplen2.
10026
10027 2011-06-14  Andreas Schwab  <schwab@redhat.com>
10028
10029         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
10030
10031 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10032
10033         * Makeconfig: Define vardbdir and inst_vardbdir.
10034         * nss/Makefile: Add rules to install db-Makefile.
10035
10036         * nss/nss_db/db-XXX.c: Cleanup.
10037
10038         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
10039         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
10040         GLIBC_PRIVATE.
10041         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
10042         * nss/makedb.c: Implement -g option to specify that value strings
10043         are generated and should not be added to table iterated over for
10044         get*ent calls.
10045         * nss/nss_db/db-initgroups.c: New file.
10046
10047         * nss/getent.c: Add support for initgroups lookups through getgrouplist
10048         interface.
10049
10050         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
10051         (internal_getgrouplist): Adjust to name change.
10052         Update use_initgroups_entry if this is not the first call.
10053         * nss/databases.def: Add initgroups entry.
10054
10055         * nss/makedb.c (compute_tables): Check result of multiple hash table
10056         sizes to minimize maximum chain length.
10057
10058 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
10059
10060         * Versions.def: Add entry for libnss_db.
10061         * shlib-versions: Likewise.
10062         * nss/Makefile: Add rules to build libnss_db.
10063         * nss/Versions: Add libnss_db information.  Organize libnss_files
10064         entries better.
10065         * nss/db-Makefile: Add gshadow support.  Change rules for the new
10066         makedb progra.  Some minor improvements to generate smaller files.
10067         * nss/nss_db/nss_db.h: Move NSS database header data structures to
10068         here from...
10069         * nss/makedb.c: ...here.
10070         Improve database format to be smaller and require less memory at
10071         runtime.
10072         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
10073         db anymore.
10074         * nss/nss_db/db-netgrp.c: Likewise.
10075         * nss/nss_db/db-open.c: Likewise.
10076         * nss/nss_files/flies-XXX.x: Adjust comments.
10077         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
10078         * nss/nss_files/files-grp.c: Likewise.
10079         * nss/nss_files/files-hosts.c: Likewise.
10080         * nss/nss_files/files-network.c: Likewise.
10081         * nss/nss_files/files-proto.c: Likewise.
10082         * nss/nss_files/files-pwd.c: Likewise.
10083         * nss/nss_files/files-rpc.c: Likewise.
10084         * nss/nss_files/files-service.c: Likewise.
10085         * nss/nss_files/files-sgrp.c: Likewise.
10086         * nss/nss_files/files-spwd.c: Likewise.
10087         * nss/nss_db/db-alias.c: Removed.
10088         * nss/nss_db/dummy-db.h: Removed.
10089
10090 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
10091
10092         * nss/makedb.c: Rewritten to not use database library.
10093         * nss/Makefile: Update to build new makedb program.
10094
10095 2011-06-14  Andreas Jaeger  <aj@suse.de>
10096
10097         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
10098         memset declaration.
10099
10100 2011-06-10  Andreas Schwab  <schwab@redhat.com>
10101
10102         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
10103         tmpbuf.
10104
10105 2011-06-10  Roland McGrath  <roland@hack.frob.com>
10106
10107         * Makerules (shlib.lds): Fail if the linker script comes out empty.
10108         * elf/Makefile ($(objpfx)ld.so): Likewise.
10109
10110         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
10111         Don't list ld.so twice in dependencies.
10112
10113         * posix/bug-regex31.c: Include <stdlib.h>.
10114
10115         * nscd/hstcache.c (cache_addhst): Remove unused variable.
10116
10117         * nis/nss_compat/compat-spwd.c
10118         (getspent_next_nss_netgr): Remove unused variable.
10119         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
10120
10121         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
10122         nonmembers" output to use the right array.
10123
10124         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
10125
10126         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
10127
10128         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
10129         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
10130         * catgets/gencat.c (read_input_file): Likewise.
10131         * locale/programs/locarchive.c (enlarge_archive): Likewise.
10132
10133         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
10134         variable definition inside #if's controlling its use.
10135
10136         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
10137
10138         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
10139
10140         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
10141
10142         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
10143         unreachable code.
10144
10145         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
10146
10147         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
10148         * configure: Regenerated.
10149
10150         * Makerules: Revert last change.
10151         * elf/Makefile: Likewise.
10152
10153 2011-06-09  Roland McGrath  <roland@hack.frob.com>
10154
10155         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
10156         * elf/Makefile ($(objpfx)librtld.os): Likewise.
10157         (reloc-link): Likewise.
10158
10159 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
10160
10161         * elf/Makefile: Add rules to build pldd.
10162         * elf/pldd.c: New file.
10163         * elf/pldd-xx.c: New file.
10164
10165 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
10166
10167         * version.h: Update for 2.15 development version.
10168
10169 2011-06-07  David S. Miller  <davem@davemloft.net>
10170
10171         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
10172         ifuncs.
10173         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
10174         elf_machine_lazy_rel): Likewise.
10175         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
10176         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
10177         elf_machine_lazy_rel): Likewise.
10178         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
10179         dl_hwcap via passed in argument.
10180         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
10181         Likewise.
10182
10183 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10184
10185         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
10186
10187 2011-06-06  Roland McGrath  <roland@hack.frob.com>
10188
10189         [BZ #12849]
10190         * manual/fdl-1.1.texi: New file, verbatim from:
10191         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
10192         * manual/lgpl-2.1.texi: New file, verbatim from:
10193         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
10194         * manual/Makefile (licenses): New variable, list those new file names.
10195         (texis): Use it.
10196         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
10197
10198         * manual/fdl.texi: File removed.
10199         * manual/lesser.texi: File removed.
10200         * manual/libc.texinfo (Copying, Documentation License):
10201         Use new @include file names, put @appendix directive before @include.
10202
10203 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10204
10205         [BZ #12841]
10206         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
10207         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
10208         (mq_open): Add __NTH.
10209
10210 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10211
10212         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10213         Assume Intel Core i3/i5/i7 processor if AVX is available.
10214
10215 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10216
10217         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10218         typo.
10219
10220 2011-05-31  Andreas Schwab  <schwab@redhat.com>
10221
10222         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
10223         memory.  Use alloca_account.  Fix memory leak when retrying.
10224
10225 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10226
10227         * version.h (RELEASE): Bump for 2.14 release.
10228         * include/features.h (__GLIBC_MINOR__): Bump to 14.
10229
10230         * config.make.in (RANLIB): Remove entry.
10231
10232 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
10233
10234         * po/Makefile (po-sed-cmd): Add ksh to extensions.
10235         (libc.pot): Work around missing support for .ksh extension in xgettext.
10236
10237         [BZ #12684]
10238         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
10239         if both request failed.
10240         (send_dg): In case of server errors clear resplen or *resplen2.
10241
10242         [BZ #12454]
10243         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
10244         when there are multiple maps.
10245         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
10246         (_dl_fini): Remove test here.
10247
10248         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
10249
10250 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
10251
10252         [BZ #12350]
10253         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
10254         bit from old_res_options.
10255         (gaih_inet): Likewise.
10256
10257         [BZ #11099]
10258         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
10259         as signed.
10260
10261         * resolv/res_init.c (res_setoptions): Make the code more compact.
10262
10263         [BZ #11558]
10264         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
10265         set RES_USEVC.
10266
10267         [BZ #11634]
10268         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
10269
10270         * malloc/malloc.h: Mark malloc hook variables as deprecated.
10271
10272         [BZ #11781]
10273         * malloc/malloc.h: Declare malloc hook variables as volatile.
10274
10275         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
10276         in last patch.
10277
10278         [BZ #11799]
10279         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
10280         raise in the comment.
10281         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10282         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10283         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10284
10285 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
10286
10287         [BZ #12811]
10288         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
10289         grow the buffers more if it already has to be sufficient.
10290         (build_wcs_upper_buffer): Likewise.
10291         * posix/regexec.c (check_matching): Likewise.
10292         (clean_state_log_if_needed): Likewise.
10293         (extend_buffers): Don't enlarge buffers beyond size of the input
10294         buffer.
10295         Patches mostly by Emil Wojak <emil@wojak.eu>.
10296         * posix/bug-regex32.c: New file.
10297         * posix/Makefile (tests): Add bug-regex32.
10298
10299         * locale/findlocale.c (_nl_find_locale): Return right away if
10300         _nl_explode_name failed.
10301         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10302
10303         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
10304
10305         * debug/xtrace.sh: Unify messages.
10306         * malloc/memusage.sh: Likewise.
10307
10308         [BZ #12813]
10309         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
10310         time symbol from vDSO.  Substitute with vsyscall if not available.
10311         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
10312         __vdso_time.
10313
10314         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
10315         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
10316         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
10317         Add sendmmsg and internal_sendmmsg.
10318         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
10319         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
10320         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
10321
10322         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
10323         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
10324         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
10325
10326 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
10327
10328         [BZ #12813]
10329         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
10330         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
10331         available.
10332         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
10333         __vdso_getcpu.
10334
10335         [BZ #12814]
10336         * iconvdata/Makefile (tests): Add bug-iconv9.
10337         * iconvdata/bug-iconv9.c: New file.
10338
10339 2011-05-27  Andreas Schwab  <schwab@redhat.com>
10340
10341         [BZ #12814]
10342         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
10343
10344 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
10345
10346         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10347         (struct user_regs_struct): Change intcs field back to cs.
10348
10349 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
10350
10351         * po/ja.po: Update from translation team.
10352
10353 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
10354
10355         [BZ #12795]
10356         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
10357         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
10358
10359 2011-05-20  Andreas Schwab  <schwab@redhat.com>
10360
10361         * stdlib/longlong.h: Update from GCC.
10362
10363 2011-05-23  Andreas Schwab  <schwab@redhat.com>
10364
10365         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
10366         parameter name.
10367         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
10368         Add parameter name.
10369         (__sysconf): Pass it down.
10370
10371 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
10372
10373         [BZ #12671]
10374         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
10375         some situations.
10376         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10377         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
10378         add in in __libc_use_alloca calls.  Adjust callers.
10379         (glob): Use malloc in some situations.
10380
10381         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
10382         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
10383         pltexit.
10384
10385 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
10386
10387         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
10388         and CLOCK_BOOTTIME_ALARM.
10389
10390         [BZ #12782]
10391         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
10392         is returned.
10393
10394         * string/_strerror.c (__strerror_r): Print negative errors as signed
10395         numbers.
10396
10397         [BZ #12777]
10398         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
10399         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
10400         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
10401
10402         * configure.in: Fix typo in redirection and correct removal of test
10403         files in two cases.
10404
10405         [BZ #12788]
10406         * locale/setlocale.c (new_composite_name): Fix test to check for
10407         identical name of all categories.
10408
10409         [BZ #12792]
10410         * libio/filedoalloc.c (local_isatty): New function.
10411         (_IO_file_doallocate): Use local_isatty.
10412         * stdio-common/perror.c (perror): In case a new stream is used
10413         forward the stream error.
10414         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
10415         error flag.
10416
10417 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
10418
10419         [BZ #11869]
10420         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
10421         alloca.
10422         * include/alloca.h (extend_alloca_account): Define.
10423
10424         [BZ #11857]
10425         * posix/regex.h: Fix comments with documentation of user-accessible
10426         fields after compilation and describe correct free'ing of pattern
10427         after re_compile_pattern.
10428         Patch by Reuben Thomas <rrt@sc3d.org>.
10429
10430 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
10431
10432         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
10433         and -mno-altivec to prevent the compiler from using Altivec and/or
10434         VSX instructions when the corresponding registers are not available.
10435
10436 2011-05-19  Andreas Schwab  <schwab@redhat.com>
10437
10438         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
10439
10440 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
10441
10442         * libio/freopen.c (freopen): Use __dup2, not dup2.
10443         * libio/freopen64.c (freopen64): Likewise.
10444
10445 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
10446
10447         [BZ #12775]
10448         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
10449         * math/Makefile (tests): Add test-powl.
10450         (CFLAGS-test-powl.c): Define.
10451         * math/test-powl.c: New file.
10452
10453 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10454
10455         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
10456
10457 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
10458
10459         [BZ #11837]
10460         * iconvdata/gb18030.c: Update to GB18020-2005.
10461
10462 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
10463
10464         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
10465         RE_SYNTAX_POSIX_AWK): Update to match recent development.
10466         Patch by Aharon Robbins <arnold@skeeve.com>.
10467
10468         [BZ #11892]
10469         * stdlib/putenv.c (putenv): Don't always create copy of the variable
10470         on the stack.
10471
10472         [BZ #11895]
10473         * misc/pselect.c (__pselect): Handle timeout value errors hidden
10474         through underflows.
10475
10476         [BZ #12766]
10477         * misc/error.c (error_at_line): Ensure file_name and old_file_name
10478         point to strings before performing equality test for error_one_per_line
10479         mode.
10480
10481         [BZ #11697]
10482         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
10483
10484         [BZ #11820]
10485         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10486         (struct user_fpregs_struct): Avoid __uint*_t types.
10487
10488         [BZ #6420]
10489         * malloc/mtrace.c (tr_where): Add additional parameter to point to
10490         symbol info.  Use it instead of calling _dl_addr locally.
10491         (lock_and_info): New function.
10492         (tr_freehook): Call lock_and_info and pass symbol info as additional
10493         parameter to tr_where.
10494         (tr_mallochook): Likewise.
10495         (tr_reallochook): Likewise.
10496         (tr_memalignhook): Likewise.
10497
10498         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
10499         used and couldn't be at all thread-safe.
10500
10501 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
10502
10503         * libio/freopen.c (freopen): Don't close old file descriptor
10504         before the new one is opened.  Instead dup the new file descriptor
10505         to the old one after the new stream is created.
10506         * libio/freopen64.c (freopen64): Likewise.
10507         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
10508         * libio/fileops.c (_IO_new_file_close_it): Handle new
10509         _IO_FLAGS2_NOCLOSE flag.
10510         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
10511         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
10512         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
10513         _IO_FLAGS2_NOCLOSE flag.
10514         * include/unistd.h: Add hidden_proto for dup3.
10515         Define __have_dup3.
10516         * io/dup3.c: Define hidden symbol.
10517         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
10518
10519         [BZ #7101]
10520         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
10521         when an incomplete long option is used.
10522         * posix/tst-getopt_long1.c: New file.
10523         * posix/Makefile (tests): Add tst-getopt_long1.
10524
10525         [BZ #10138]
10526         * scripts/config.guess: Update from autoconf-2.68.
10527         * scripts/config.sub: Likewise.
10528
10529         [BZ #10157]
10530         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
10531         tests into ...
10532         (has_cpuclock): ...this.  New function.
10533         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
10534         macro here based on has_cpuclock code.
10535
10536         [BZ #10149]
10537         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10538         First byte (not low byte) is now always NUL.
10539         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
10540
10541         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10542         Use non-cancelable interfaces.
10543
10544         [BZ #9809]
10545         * locale/iso-639.def: Add entry for Sorani.
10546
10547         [BZ #11901]
10548         * include/stdlib.h: Move include protection to the right place.
10549         Define abort_msg_s.  Declare __abort_msg with it.
10550         * stdlib/abort.c (__abort_msg): Adjust type.
10551         * assert/assert.c (__assert_fail_base): New function.  Majority
10552         of code from __assert_fail.  Allocate memory for __abort_msg with
10553         mmap.
10554         (__assert_fail): Now call __assert_fail_base.
10555         * assert/assert-perr.c: Remove bulk of implementation.  Use
10556         __assert_fail_base.
10557         * include/assert.hL Declare __assert_fail_base.
10558         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
10559         mmap.
10560         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
10561
10562 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
10563
10564         [BZ #11952]
10565         [BZ #12453]
10566         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
10567         until all modules are registered in the DTV.
10568         * elf/Makefile: Add rules to build and run tst-tls19.
10569         * elf/tst-tls19.c: New file.
10570         * elf/tst-tls19mod1.c: New file.
10571         * elf/tst-tls19mod2.c: New file.
10572         * elf/tst-tls19mod3.c: New file.
10573         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
10574
10575         [BZ #12083]
10576         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
10577         correctly.
10578
10579         [BZ #12601]
10580         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
10581         two-byte sequence errors.
10582         * iconvdata/Makefile (tests): Add bug-iconv8.
10583         * iconvdata/bug-iconv8.c: New file.
10584
10585         [BZ #12626]
10586         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
10587         buf2 definition.
10588
10589         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
10590
10591         [BZ #12432]
10592         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
10593         (dummy_getcfa): New function.
10594         (init): Get _Unwind_GetCFA address, use dummy if not found.
10595         (backtrace_helper): In recursion check, also check whether CFA changes.
10596         (__backtrace): Completely initialize arg.
10597
10598         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
10599         storing incomplete byte sequence in state object.  Avoid testing for
10600         guaranteed too small input if we know there is enough data available.
10601
10602 2011-05-11  Andreas Schwab  <schwab@redhat.com>
10603
10604         * Makeconfig (+link-pie): Indent.
10605         * Rules (binaries-pie): Define if $(have-fpie) and
10606         $(build-shared).
10607         (binaries-shared): Also filter out $(binaries-pie).
10608         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
10609         * nscd/Makefile (others-pie): Add nscd.
10610         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
10611         ($(objpfx)nscd): Remove command override.
10612         * login/Makefile (others-pie): Add pt_chown.
10613         ($(objpfx)pt_chown): Remove command override.
10614         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
10615         remove command overrides.
10616
10617 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
10618
10619         * libio/tst_putwc.c: Fix error messages.
10620
10621         [BZ #12724]
10622         * libio/fileops.c (_IO_new_file_close_it): Always flush when
10623         currently writing and seek to current position when not.
10624         * libio/Makefile (tests): Add bug-fclose1.
10625         * libio/bug-fclose1.c: New file.
10626
10627 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
10628
10629         [BZ #12511]
10630         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
10631         don't set DF_1_NODELETE here.
10632         (do_lookup_x): When entering new entry test for copy relocation
10633         and if necessary set DF_1_NODELETE flag.
10634         * elf/tst-unique4.cc: New file.
10635         * elf/tst-unique4.h: New file.
10636         * elf/tst-unique4lib.cc: New file.
10637         * elf/Makefile: Add rules to build and run tst-unique4.
10638         Patch by Piotr Bury <pbury@goahead.com>.
10639
10640 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10641
10642         [BZ #12052]
10643         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
10644
10645         [BZ #12625]
10646         * misc/mntent_r.c (addmntent): Flush the stream after the output
10647
10648         [BZ #12393]
10649         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
10650         (is_trusted_path_normalize): Skip initial colon.  Append slash
10651         to empty buffer.  Duplicate is_trusted_path code but allow
10652         constructed patch to be prefix.
10653         (is_dst): Allow $ORIGIN followed by /.
10654         (_dl_dst_substitute): Correct clearing of check_for_trusted.
10655         Correct testing of result of is_trusted_path_normalize
10656         (decompose_rpath): Fix warning.
10657
10658 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
10659
10660         [BZ #11257]
10661         * grp/initgroups.c (internal_getgrouplist): When we found the service
10662         list through the initgroups entry in nsswitch.conf do not always
10663         continue on a successful lookup.  Don't always use the
10664         __nss_group_database value if it is set.
10665         * nss/nsswitch.conf (initgroups): Change action for successful db
10666         lookup to continue for compatibility.
10667
10668 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
10669
10670         [BZ #11532]
10671         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
10672         and CP774 modules.
10673         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
10674         and CP774 modules.
10675         * iconvdata/tst-tables.sh: Likewise.
10676         * iconvdata/cp770.c: New file.
10677         * iconvdata/cp771.c: New file.
10678         * iconvdata/cp772.c: New file.
10679         * iconvdata/cp773.c: New file.
10680         * iconvdata/cp774.c: New file.
10681         * iconvdata/testdata/CP770: New file.
10682         * iconvdata/testdata/CP770..UTF8: New file.
10683         * iconvdata/testdata/CP771: New file.
10684         * iconvdata/testdata/CP771..UTF8: New file.
10685         * iconvdata/testdata/CP772: New file.
10686         * iconvdata/testdata/CP772..UTF8: New file.
10687         * iconvdata/testdata/CP773: New file.
10688         * iconvdata/testdata/CP773..UTF8: New file.
10689         * iconvdata/testdata/CP774: New file.
10690         * iconvdata/testdata/CP774..UTF8: New file.
10691
10692         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
10693         END CHARMAP line.
10694         * iconvdata/gen-8bit-gap.sh: Likewise.
10695         * iconvdata/gen-8bit.sh: Likewise.
10696
10697         * locale/iso-639.def: Add ary entry.
10698
10699         [BZ #11258]
10700         * locale/C-translit.h.in: Add U20A1 transliteration.
10701
10702         [BZ #12178]
10703         * locale/iso-639.def: Add wae entry.
10704         Patch by Kevin Bortis <bortis@translate-wae.ch>.
10705
10706         [BZ #12545]
10707         * locale/programs/localedef.c (construct_output_path): Use ssize_t
10708         for n.
10709
10710         [BZ #12711]
10711         * locale/C-translit.h.in: Add entry for U20B9.
10712         Patch by pravin.d.s@gmail.com.
10713
10714 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
10715
10716         [BZ #12713]
10717         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
10718         ENAMETOOLONG use generic getcwd.
10719         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
10720         in rtld.  Use *stat64.
10721         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
10722         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
10723         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
10724         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
10725         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
10726         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
10727         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
10728         __fstatat64 macros.
10729         * include/dirent.h: Add libc_hidden_proto for rewinddir.
10730         * dirent/rewinddir.c: Add libc_hidden_def.
10731         * sysdeps/mach/hurd/rewinddir.c: Likewise.
10732         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
10733
10734         * include/dirent.h (__alloc_dir): Add flags parameter.
10735         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
10736         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
10737         __alloc_dir.
10738         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
10739         from fdopendir if O_CLOEXEC is already set.
10740
10741 2011-03-15  Alan Modra  <amodra@gmail.com>
10742
10743         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
10744         l_tls_firstbyte_offset non-zero.  Save padding offset in
10745         l_tls_firstbyte_offset for later use.
10746         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
10747         freeing static tls block.
10748
10749 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
10750
10751         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
10752         where #ifdef was intended.  The intent is to prevent ARG_MAX from
10753         being defined by the kernel headers.
10754
10755 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
10756
10757         [BZ #12734]
10758         * resolv/resolv.h: Define RES_NOTLDQUERY.
10759         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
10760         no-tld-query and set RES_NOTLDQUERY.
10761         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
10762         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
10763         modern BIND to search name as TLD unless forbidden.
10764
10765 2011-05-07  Petr Baudis  <pasky@suse.cz>
10766             Ulrich Drepper  <drepper@gmail.com>
10767
10768         [BZ #12393]
10769         * elf/dl-load.c (fillin_rpath): Move trusted path check...
10770         (is_trusted_path): ...to here.
10771         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
10772         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
10773         using is_trusted_path_normalize() in setuid scripts.
10774
10775 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10776
10777         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
10778         __BEGIN/__END_DECLS.
10779
10780 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
10781
10782         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
10783         NSS_STATUS_NOTFOUND if no record was found.
10784
10785 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10786
10787         * sunrpc/Makefile (headers): Add rpc/netdb.h.
10788         (headers-not-in-tirpc): Remove rpc/netdb.h
10789         * resolv/netdb.h: Revert last change.
10790
10791 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10792
10793         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
10794         circular dependency between libgcc.a and libc.a.
10795
10796 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10797
10798         * resolv/netdb.h: Don't include <rpc/netdb.h>.
10799         * nis/Makefile: Don't install rpcsvc/*.
10800         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
10801         instead of <rpc/types.h>.
10802         (MAXHOSTNAMELEN): Define.
10803
10804 2011-05-03  Andreas Schwab  <schwab@redhat.com>
10805
10806         * elf/ldconfig.c (add_dir): Don't crash on empty path.
10807
10808 2011-04-28  Maciej Babinski  <mbabinski@google.com>
10809
10810         [BZ #12714]
10811         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
10812         gethostbyname4_r when IPv6 results are possible.
10813
10814 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
10815
10816         [BZ #12723]
10817         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
10818         _PC_PIPE_BUF handling.
10819
10820 2011-04-30  Bruno Haible  <bruno@clisp.org>
10821
10822         [BZ #12717]
10823         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
10824         * resolv/netdb.h (getnameinfo): Change type of flags parameter
10825         to 'int'.
10826         * inet/getnameinfo.c (getnameinfo): Likewise.
10827
10828 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
10829
10830         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
10831         to groups setting in database lookup.
10832         * nss/nsswitch.conf: Add initgroups entry.
10833
10834 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
10835
10836         [BZ #12685]
10837         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
10838         mode string.
10839         Patch by Eric Blake <eblake@redhat.com>.
10840
10841 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
10842
10843         * sunrpc/Makefile (need-export-routines): Add svc_run.
10844         (routines): Remove svc_run.
10845         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
10846         * sunrpc/clnt_perr.c (clnt_perrno): Export.
10847         * sunrpc/svc_run.c (svc_run): Likewise.
10848         * sunrpc/svc_udp.c (svcudp_create): Likewise.
10849
10850 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
10851
10852         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
10853         problem in reallocation in last patch.
10854
10855 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
10856
10857         * sunrpc/Makefile: Move inclusion of Rules.
10858
10859 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
10860
10861         * nss/nss_files/files-initgroups.c: New file.
10862         * nss/Makefile (libnss_files-routines): Add files-initgroups.
10863         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
10864         _nss_files_initgroups_dyn.
10865
10866 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
10867
10868         * elf/elf.h (R_ARM_IRELATIVE): Define.
10869
10870 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
10871
10872         * po/ru.po: Update from translation team.
10873
10874 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
10875
10876         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
10877         dependencies.
10878
10879 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
10880
10881         [BZ #12653]
10882         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
10883         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
10884         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10885         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10886         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10887
10888 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
10889
10890         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
10891         differing bytes.
10892         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10893         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10894         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10895
10896 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
10897
10898         [BZ #12420]
10899         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
10900         storing it.
10901         * stdlib/bug-getcontext.c: New file.
10902         * stdlib/Makefile: Add rules to build and run bug-getcontext.
10903
10904 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10905
10906         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
10907         instructions into .machine "z9-109".
10908         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
10909         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
10910
10911 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10912
10913         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
10914         between environment variables and auxiliary vector.
10915
10916 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
10917
10918         * Makefile: Add rules to build linkobj/libc.so.
10919         * include/libc-symbols.h: Define libc_hidden_nolink.
10920         * include/rpc/auth.h: Mark functions which are to be hidden.
10921         * include/rpc/auth_des.h: Likewise.
10922         * include/rpc/auth_unix.h: Likewise.
10923         * include/rpc/clnt.h: Likewise.
10924         * include/rpc/des_crypt.h: Likewise.
10925         * include/rpc/key_prot.h: Likewise.
10926         * include/rpc/pmap_clnt.h: Likewise.
10927         * include/rpc/pmap_prot.h: Likewise.
10928         * include/rpc/pmap_rmt.h: Likewise.
10929         * include/rpc/rpc_msg.h: Likewise.
10930         * include/rpc/svc.h: Likewise.
10931         * include/rpc/svc_auth.h: Likewise.
10932         * include/rpc/xdr.h: Likewise.
10933         * nis/Makefile: Link all DSOs against linkobj/libc.so.
10934         * nss/Makefile: Likewise.
10935         * sunrpc/Makefile: Don't install headers.  Build library with normal
10936         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
10937         * sunrpc/auth_des.c: Hide exported symbols by default, export some
10938         for the compat linking library.  Remove use of INTDEF/INTUSE.
10939         * sunrpc/auth_none.c: Likewise.
10940         * sunrpc/auth_unix.c: Likewise.
10941         * sunrpc/authdes_prot.c: Likewise.
10942         * sunrpc/authuxprot.c: Likewise.
10943         * sunrpc/clnt_gen.c: Likewise.
10944         * sunrpc/clnt_perr.c: Likewise.
10945         * sunrpc/clnt_raw.c: Likewise.
10946         * sunrpc/clnt_simp.c: Likewise.
10947         * sunrpc/clnt_tcp.c: Likewise.
10948         * sunrpc/clnt_udp.c: Likewise.
10949         * sunrpc/clnt_unix.c: Likewise.
10950         * sunrpc/des_crypt.c: Likewise.
10951         * sunrpc/des_soft.c: Likewise.
10952         * sunrpc/get_myaddr.c: Likewise.
10953         * sunrpc/key_call.c: Likewise.
10954         * sunrpc/key_prot.c: Likewise.
10955         * sunrpc/netname.c: Likewise.
10956         * sunrpc/pm_getmaps.c: Likewise.
10957         * sunrpc/pm_getport.c: Likewise.
10958         * sunrpc/pmap_clnt.c: Likewise.
10959         * sunrpc/pmap_prot.c: Likewise.
10960         * sunrpc/pmap_prot2.c: Likewise.
10961         * sunrpc/pmap_rmt.c: Likewise.
10962         * sunrpc/publickey.c: Likewise.
10963         * sunrpc/rpc_cmsg.c: Likewise.
10964         * sunrpc/rpc_common.c: Likewise.
10965         * sunrpc/rpc_dtable.c: Likewise.
10966         * sunrpc/rpc_prot.c: Likewise.
10967         * sunrpc/rpc_thread.c: Likewise.
10968         * sunrpc/rtime.c: Likewise.
10969         * sunrpc/svc.c: Likewise.
10970         * sunrpc/svc_auth.c: Likewise.
10971         * sunrpc/svc_authux.c: Likewise.
10972         * sunrpc/svc_raw.c: Likewise.
10973         * sunrpc/svc_run.c: Likewise.
10974         * sunrpc/svc_simple.c: Likewise.
10975         * sunrpc/svc_tcp.c: Likewise.
10976         * sunrpc/svc_udp.c: Likewise.
10977         * sunrpc/svc_unix.c: Likewise.
10978         * sunrpc/svcauth_des.c: Likewise.
10979         * sunrpc/xcrypt.c: Likewise.
10980         * sunrpc/xdr.c: Likewise.
10981         * sunrpc/xdr_array.c: Likewise.
10982         * sunrpc/xdr_float.c: Likewise.
10983         * sunrpc/xdr_intXX_t.c: Likewise.
10984         * sunrpc/xdr_mem.c: Likewise.
10985         * sunrpc/xdr_rec.c: Likewise.
10986         * sunrpc/xdr_ref.c: Likewise.
10987         * sunrpc/xdr_sizeof.c: Likewise.
10988         * sunrpc/xdr_stdio.c: Likewise.
10989
10990 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
10991
10992         [BZ #12650]
10993         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
10994         * sysdeps/ia64/dl-tls.h: Likewise.
10995         * sysdeps/powerpc/dl-tls.h: Likewise.
10996         * sysdeps/s390/dl-tls.h: Likewise.
10997         * sysdeps/sh/dl-tls.h: Likewise.
10998         * sysdeps/sparc/dl-tls.h: Likewise.
10999         * sysdeps/x86_64/dl-tls.h: Likewise.
11000         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
11001
11002 2011-03-14  Andreas Schwab  <schwab@redhat.com>
11003
11004         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
11005         rpath element also skip the following colon.
11006         (expand_dynamic_string_token): Add is_path parameter and pass
11007         down to DL_DST_REQUIRED and _dl_dst_substitute.
11008         (decompose_rpath): Call expand_dynamic_string_token with
11009         non-zero is_path.  Ignore empty rpaths.
11010         (_dl_map_object_from_fd): Call expand_dynamic_string_token
11011         with zero is_path.
11012
11013 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
11014
11015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11016         Make cancelable.
11017
11018 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
11019
11020         [BZ #12655]
11021         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
11022         Patch by Filipe David Manana <fdmanana@apache.org>.
11023
11024 2011-04-07  Andreas Schwab  <schwab@redhat.com>
11025
11026         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
11027         Maintain aligned stack.
11028         (CHECK_RSP): Remove unused macro.
11029
11030 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
11031
11032         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
11033         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
11034
11035 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
11036
11037         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
11038
11039         * include/features.h: Mention __USE_XOPEN2K8 in comment.
11040
11041 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11042
11043         [BZ #12518]
11044         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
11045         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
11046         * sysdeps/x86_64/memmove.c: New file.
11047         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
11048         (memcpy): Renamed to ...
11049         (__new_memcpy): This.
11050         (memcpy): Provide GLIBC_2_14 memcpy.
11051         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
11052         (memcpy): Provide GLIBC_2_2_5 memcpy.
11053
11054 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11055
11056         [BZ #12631]
11057         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
11058
11059 2011-03-30  Andreas Schwab  <schwab@redhat.com>
11060
11061         * misc/syncfs.c: New file.
11062         * misc/Makefile (routines): Add syncfs.
11063         * posix/unistd.h: Declare syncfs.
11064         * sysdeps/unix/syscalls.list: Add syncfs.
11065
11066 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11067
11068         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
11069         open_by_handle_at.
11070         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11071         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11072         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11073         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11074         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11075         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11076         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11077
11078 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11079
11080         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
11081         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11082         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11083         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11084         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11085         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11086         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11087
11088         * io/Makefile: Compile fallocate.c, fallocate64.c, and
11089         sync_file_range.c with -fexceptions.
11090         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
11091         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
11092         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
11093         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
11094         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
11095         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11096         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
11097         sync_file_range as cancellation point
11098         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
11099         now a wrapper around __call_sync_file_range with cancellation handling.
11100         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
11101         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
11102         function name to __call_sync_file_range.
11103         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
11104         Add call_sync_file_range.
11105
11106 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11107
11108         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11109         bits/timex.h.
11110
11111 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11112
11113         * iconv/iconv.h: Fix typo in comment.
11114         * io/fcntl.h: Likewise.
11115         * libio/stdio.h: Likewise.
11116         * posix/spawn.h: Likewise.
11117         * posix/unistd.h: Likewise.
11118         * stdlib/stdlib.h: Likewise.
11119         * time/time.h: Likewise.
11120         * wcsmbs/wchar.h: Likewise.
11121
11122         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
11123         open_by_handle): Add.
11124         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
11125         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
11126         Augment a few comments.
11127         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11128         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11129         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11131         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11132         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
11133         open_by_handle.
11134
11135         * io/fcntl.h (AT_EMPTY_PATH): Define.
11136
11137 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
11138
11139         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
11140         * sysdeps/unix/sysv/linux/bits/time.h: New file.
11141         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
11142         to...
11143         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
11144         * Versions.def: Add GLIBC_2.14.
11145         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
11146         Export.
11147
11148 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
11149
11150         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
11151         round counter.
11152         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11153
11154 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11155
11156         [BZ #12597]
11157         * string/test-strncmp.c (do_page_test): New function.
11158         (check2): Likewise.
11159         (test_main): Call check2.
11160         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
11161
11162 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
11163
11164         [BZ #12587]
11165         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11166         Handle cache information in CPU leaf 4.
11167         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11168
11169 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
11170
11171         [BZ #12583]
11172         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
11173         character representation.
11174         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
11175
11176 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
11177
11178         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
11179         END(__isnan) to END(__isnanf) to match function entry point/label
11180         EALIGN(__isnanf,...).
11181
11182 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11183
11184         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
11185
11186 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
11187
11188         [BZ #12510]
11189         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
11190         copy from the symbol referenced in the relocation to initialize the
11191         used variable.
11192         Patch by Piotr Bury <pbury@goahead.com>.
11193         * elf/Makefile: Add rules to build and tst-unique3.
11194         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
11195         * elf/tst-unique3.cc: New file.
11196         * elf/tst-unique3.h: New file.
11197         * elf/tst-unique3lib.cc: New file.
11198         * elf/tst-unique3lib2.cc: New file.
11199
11200         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
11201
11202 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
11203
11204         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
11205         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
11206         to _start.
11207
11208 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
11209
11210         * elf/dl-load.c (_dl_map_object): If we are looking for the first
11211         to-be-loaded object along a path to loader is ld.so.
11212
11213 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11214             Ulrich Drepper  <drepper@gmail.com>
11215
11216         * sysdeps/x86_64/memset.S: After aligning destination, code
11217         branches to different locations depending on the value of
11218         misalignment, when multiarch is enabled. Fix this.
11219
11220 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11221
11222         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
11223         Set _x86_64_preferred_memory_instruction for AMD processsors.
11224         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11225         Set bit_Prefer_SSE_for_memop for AMD processors.
11226
11227 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
11228
11229         * libio/fmemopen.c (fmemopen): Optimize a bit.
11230
11231 2011-03-03  Andreas Schwab  <schwab@redhat.com>
11232
11233         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
11234
11235 2011-03-03  Roland McGrath  <roland@redhat.com>
11236
11237         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
11238
11239 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
11240
11241         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
11242         __bzero_ultra1 instead of __memset_ultra1.
11243
11244 2011-02-23  Andreas Schwab  <schwab@redhat.com>
11245             Ulrich Drepper  <drepper@gmail.com>
11246
11247         [BZ #12509]
11248         * include/link.h (struct link_map): Add l_orig_initfini.
11249         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
11250         returning unsuccessfully.
11251         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
11252         close of a file loaded at startup, restore the original l_initfini
11253         list.
11254         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
11255         list, store the pointer.
11256         * elf/Makefile ($(objpfx)noload-mem): New rule.
11257         (noload-ENV): Define.
11258         (tests): Add $(objpfx)noload-mem.
11259         * elf/noload.c: Include <memcheck.h>.
11260         (main): Call mtrace.  Close all opened handles.
11261
11262 2011-02-17  Andreas Schwab  <schwab@redhat.com>
11263
11264         [BZ #12454]
11265         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
11266         dependencies are missing.
11267
11268 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11269
11270         Fix __if_freereq crash: Unlike the generic version which uses free,
11271         Hurd needs munmap.
11272         * sysdeps/mach/hurd/ifreq.h: New file.
11273
11274 2011-01-27  Petr Baudis  <pasky@suse.cz>
11275             Ulrich Drepper  <drepper@gmail.com>
11276
11277         [BZ 12445]#
11278         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
11279         to extend_alloca().
11280         * stdio-common/bug23.c: New file.
11281         * stdio-common/Makefile (tests): Add bug23.
11282
11283 2010-09-28  Andreas Schwab  <schwab@redhat.com>
11284             Ulrich Drepper  <drepper@gmail.com>
11285
11286         [BZ #12489]
11287         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
11288         before performing relro protection.  At old place add assertion
11289         to make sure nothing changed.
11290
11291 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
11292             Glauber de Oliveira Costa  <glommer@gmail.com>
11293
11294         * elf/elf.h: Add new ARM TLS relocs.
11295
11296 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
11297
11298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11299         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
11300         cast from r3.
11301         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
11302         'tests' variable.
11303         * sysdeps/wordsize-64/tst-writev.c: New file.
11304
11305 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
11306
11307         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
11308         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
11309         insns in _dl_start to prevent a TOC reference before relocs are
11310         resolved.
11311
11312 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
11313
11314         [BZ #12469]
11315         * Makeconfig: Remove RANLIB definition.
11316         * Makerules: Don't use RANLIB.
11317         * aclocal.m4: Remove ranlib test.
11318         * configure.in: No need to check for ranlib.
11319         * elf/rtld-Rules: Don't use RANLIB.
11320
11321 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11322
11323         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
11324         protection macro.
11325         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
11326         inclusion protection macro.
11327
11328         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
11329         SIGRTMIN and SIGRTMAX and print information in that case only when
11330         SIGRTMIN is defined.
11331
11332 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11333
11334         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
11335         arginfo fn returning -1.
11336
11337         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
11338         and thousands string is zero terminated.
11339
11340 2011-02-03  Andreas Schwab  <schwab@redhat.com>
11341
11342         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
11343         sysdeps/unix/sysv/linux/bits/socket.h.
11344
11345 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11346
11347         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
11348         (__CPU_COUNT): Remove old macros.
11349         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
11350         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
11351         (__CPU_ALLOC, __CPU_FREE): Add macros.
11352         (__sched_cpualloc, __sched_cpufree): Add declarations.
11353
11354 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
11355
11356         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
11357         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
11358         * nscd/aicache.c (addhstaiX): Return timeout of added value.
11359         (readdhstai): Return value of addhstaiX call.
11360         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
11361         (addgrbyX): Return value returned by cache_addgr.
11362         (readdgrbyname): Return value returned by addgrbyX.
11363         (readdgrbygid): Likewise.
11364         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
11365         (addpwbyX): Return value returned by cache_addpw.
11366         (readdpwbyname): Return value returned by addhstbyX.
11367         (readdpwbyuid): Likewise.
11368         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
11369         (addservbyX): Return value returned by cache_addserv.
11370         (readdservbyname): Return value returned by addservbyX:
11371         (readdservbyport): Likewise.
11372         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
11373         (addhstbyX): Return value returned by cache_addhst.
11374         (readdhstbyname): Return value returned by addhstbyX.
11375         (readdhstbyaddr): Likewise.
11376         (readdhstbynamev6): Likewise.
11377         (readdhstbyaddrv6): Likewise.
11378         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
11379         (readdinitgroups): Return value returned by addinitgroupsX.
11380         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
11381         (prune_cache): Keep track of timeout value of re-added entries.
11382         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
11383         * nscd/nscd.h: Adjust prototypes of readd* functions.
11384
11385 2011-02-04  Roland McGrath  <roland@redhat.com>
11386
11387         * nis/nis_server.c (nis_servstate): Use the right name for 0.
11388         (nis_stats): Likewise.
11389         * nis/nis_modify.c (nis_modify): Likewise.
11390         * nis/nis_remove.c (nis_remove): Likewise.
11391         * nis/nis_add.c (nis_add): Likewise.
11392
11393         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
11394
11395         * posix/fnmatch_loop.c: Add some consts.
11396
11397         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
11398
11399 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
11400
11401         [BZ #12460]
11402         * config.make.in (config-cflags-novzeroupper): Define.
11403         * configure.in: Substitute libc_cv_cc_novzeroupper.
11404         * elf/Makefile (AVX-CFLAGS): Define.
11405         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
11406         (CFLAGS-tst-auditmod4a.c): Likewise.
11407         (CFLAGS-tst-auditmod4b.c): Likewise.
11408         (CFLAGS-tst-auditmod6b.c): Likewise.
11409         (CFLAGS-tst-auditmod6c.c): Likewise.
11410         (CFLAGS-tst-auditmod7b.c): Likewise.
11411         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
11412
11413 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
11414
11415         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
11416         function to the callback.
11417         Patch partly by Jiri Olsa <jolsa@redhat.com>.
11418
11419 2011-02-02  Andreas Schwab  <schwab@redhat.com>
11420
11421         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
11422         of errno.
11423
11424 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
11425
11426         [BZ #11724]
11427         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
11428         of constructors.
11429         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
11430         of destructors.
11431         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
11432
11433         [BZ #11724]
11434         * elf/Makefile: Add rules to build and run new test.
11435         * elf/tst-initorder.c: New file.
11436         * elf/tst-initorder.exp: New file.
11437         * elf/tst-initordera1.c: New file.
11438         * elf/tst-initordera2.c: New file.
11439         * elf/tst-initordera3.c: New file.
11440         * elf/tst-initordera4.c: New file.
11441         * elf/tst-initorderb1.c: New file.
11442         * elf/tst-initorderb2.c: New file.
11443         * elf/tst-order-a1.c: New file.
11444         * elf/tst-order-a2.c: New file.
11445         * elf/tst-order-a3.c: New file.
11446         * elf/tst-order-a4.c: New file.
11447         * elf/tst-order-b1.c: New file.
11448         * elf/tst-order-b2.c: New file.
11449         * elf/tst-order-main.c: New file.
11450         New test case by George Gensure <werkt0@gmail.com>.
11451
11452 2010-10-01  Andreas Schwab  <schwab@redhat.com>
11453
11454         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11455         decoding ACE if AI_CANONIDN.
11456
11457 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
11458
11459         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
11460
11461 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
11462
11463         * version.h (RELEASE): Bump for 2.13 release.
11464         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
11465
11466         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
11467
11468         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
11469         MADV_NOHUGEPAGE.
11470         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
11471         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11472         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11473         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11474         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11475         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11476
11477         * posix/getconf.c: Update copyright year.
11478         * catgets/gencat.c: Likewise.
11479         * csu/version.c: Likewise.
11480         * debug/catchsegv.sh: Likewise.
11481         * debug/xtrace.sh: Likewise.
11482         * elf/ldconfig.c: Likewise.
11483         * elf/ldd.bash.in: Likewise.
11484         * elf/sprof.c (print_version): Likewise.
11485         * iconv/iconv_prog.c: Likewise.
11486         * iconv/iconvconfig.c: Likewise.
11487         * locale/programs/locale.c: Likewise.
11488         * locale/programs/localedef.c: Likewise.
11489         * malloc/memusage.sh: Likewise.
11490         * malloc/mtrace.pl: Likewise.
11491         * nscd/nscd.c (print_version): Likewise.
11492         * nss/getent.c: Likewise.
11493
11494         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
11495         PF_CAIF, and PF_ALG.
11496         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11497
11498 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
11499
11500         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
11501         (modules-names): Use them.
11502         (ifunc-test-modules, ifunc-pie-tests): Define.
11503         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
11504         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
11505         (test-extras): Likewise.
11506         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
11507         $(compile-command.c).
11508         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
11509         (all-built-dso): Define.
11510         (check-textrel.out, check-execstack.out): Depend on it.
11511
11512         * configure.in: Don't override --enable-multi-arch.
11513
11514 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
11515
11516         [BZ #6812]
11517         * nscd/hstcache.c (tryagain): Define.
11518         (cache_addhst): Return tryagain not notfound for temporary errors.
11519         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
11520         failed.
11521
11522 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
11523
11524         [BZ #10563]
11525         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
11526         to make the syscall.
11527         * sysdeps/unix/sysv/linux/setgroups.c: New file.
11528
11529         [BZ #12378]
11530         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
11531         and fall back to matching as normal character if the string ends before
11532         the matching ']' is found.  This is what POSIX requires.
11533         * posix/testfnm.c: Adjust test result.
11534         * posix/globtest.sh: Adjust test result.  Add new test.
11535         * posix/tst-fnmatch.input: Likewise.
11536         * posix/tst-fnmatch2.c: Add new test.
11537
11538 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
11539
11540         * elf/Makefile (check-execstack): Revert last change.  Depend on
11541         check-execstack.h.
11542         (check-execstack.h): New target.
11543         (generated): Add check-execstack.h.
11544         * elf/check-execstack.c: Include "check-execstack.h".
11545         (main): Revert last change.
11546         (handle_file): Return zero if GNU_STACK is absent and
11547         DEFAULT_STACK_PERMS doesn't include PF_X.
11548
11549 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
11550
11551         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
11552         in child fails because the descriptor is already closed.
11553         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
11554         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
11555         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
11556
11557         [BZ #12397]
11558         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
11559         syscall.
11560
11561         [BZ #10484]
11562         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
11563         temporary buffer used to handle multi lookups locally.
11564         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
11565
11566 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
11567
11568         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
11569         loader is ld.so.
11570
11571 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
11572
11573         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
11574         alignment for SSE2.
11575
11576 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
11577
11578         [BZ #12394]
11579         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
11580         characters.  When rounding increased number of integer digits recompute
11581         number of groups.
11582         * stdio-common/tst-grouping.c: New file.
11583         * stdio-common/Makefile: Add rules to build and run tst-grouping.
11584
11585 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
11586
11587         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
11588         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
11589
11590         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
11591         void.
11592         * bits/select.h: Likewise.
11593
11594 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
11595
11596         * po/ja.po: Update from translation team.
11597
11598 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
11599
11600         [BZ #11155]
11601         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
11602         implementation just like for lxstat, fxstatat, et al.
11603
11604 2010-12-27  Jim Meyering  <meyering@redhat.com>
11605
11606         [BZ #12348]
11607         * posix/regexec.c (build_trtable): Return failure indication upon
11608         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11609
11610 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
11611
11612         [BZ #12201]
11613         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
11614         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
11615         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
11616         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
11617
11618         [BZ #12207]
11619         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
11620
11621         [BZ #12204]
11622         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
11623         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
11624
11625 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
11626
11627         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
11628         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
11629         script has SORT_BY_INIT_PRIORITY.
11630         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
11631         NO_CTORS_DTORS_SECTIONS is defined.
11632         * elf/soinit.c: Likewise.
11633         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
11634         NO_CTORS_DTORS_SECTIONS is defined.
11635         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
11636         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
11637         * sysdeps/sh/init-first.c: Likewise.
11638         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
11639
11640 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
11641
11642         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
11643         always use the slow path.
11644
11645 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
11646
11647         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
11648         similar rule which adds the sysdep directories to the header search in
11649         order to pick up the correct platform stackinfo.h.
11650         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
11651         perform test if it is, otherwise return successfully without testing.
11652         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
11653         DEFAULT_STACK_PERMS define in stackinfo.h.
11654         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
11655         defined in stackinfo.h.
11656         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
11657         DEFAULT_STACK_PERMS defined in stackinfo.h.
11658         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
11659         * sysdeps/ia64/stackinfo.h: Likewise.
11660         * sysdeps/s390/stackinfo.h: Likewise.
11661         * sysdeps/sh/stackinfo.h: Likewise.
11662         * sysdeps/sparc/stackinfo.h: Likewise.
11663         * sysdeps/x86_64/stackinfo.h: Likewise.
11664         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
11665         PF_X for powerpc64.  Retain PF_X for powerpc32.
11666
11667 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
11668
11669         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
11670         accurately.
11671         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
11672         GETDENTS_64BIT_ALIGNED.
11673
11674 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
11675
11676         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
11677
11678 2010-12-10  Andreas Schwab  <schwab@redhat.com>
11679
11680         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
11681         _GNU_SOURCE.
11682
11683         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
11684         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
11685         Remove __restrict.
11686         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
11687         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
11688
11689 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
11690
11691         [BZ #11655]
11692         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
11693         are initialized.
11694
11695 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
11696
11697         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
11698
11699 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
11700
11701         * po/it.po: Update from translation team.
11702
11703 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
11704
11705         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
11706         unused codes.
11707
11708 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
11709
11710         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
11711
11712 2010-11-24  Andreas Schwab  <schwab@redhat.com>
11713
11714         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
11715         specially.
11716         (gaih_getanswer_slice): Likewise.
11717
11718 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
11719
11720         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
11721
11722 2010-05-31  Petr Baudis  <pasky@suse.cz>
11723
11724         [BZ #11149]
11725         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
11726         silently even in the chroot mode.
11727
11728 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
11729
11730         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
11731         last patch a bit.  Pretty printing
11732
11733 2010-05-31  Petr Baudis <pasky@suse.cz>
11734
11735         [BZ #10085]
11736         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
11737         initialization of skip_initgroups_dyn.
11738
11739 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
11740
11741         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
11742         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11743
11744 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
11745
11746         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
11747
11748 2010-11-11  Andreas Schwab  <schwab@redhat.com>
11749
11750         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
11751         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
11752         (tst-fnmatch-ENV): Set MALLOC_TRACE.
11753         ($(objpfx)tst-fnmatch-mem): New rule.
11754         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
11755         * posix/tst-fnmatch.c (main): Call mtrace.
11756
11757 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
11758
11759         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11760         Support Intel processor model 6 and model 0x2c.
11761
11762 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
11763
11764         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
11765           signed comparison.
11766
11767 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
11768
11769         [BZ #12205]
11770         * string/test-strncasecmp.c (check_result): New function.
11771         (do_one_test): Use it.
11772         (check1): New function.
11773         (test_main): Use it.
11774         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
11775         Support strcasecmp and strncasecmp.
11776
11777 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
11778
11779         [BZ #12194]
11780         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
11781         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11782
11783 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11784
11785         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
11786         IFUNC support.
11787         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11788         memset-x86-64.
11789         * sysdeps/x86_64/multiarch/bzero.S: New file.
11790         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
11791         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
11792         * sysdeps/x86_64/multiarch/memset.S: New file.
11793         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
11794         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11795         Set bit_Prefer_SSE_for_memop for Intel processors.
11796         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
11797         Define.
11798         (index_Prefer_SSE_for_memop): Define.
11799         (HAS_PREFER_SSE_FOR_MEMOP): Define.
11800
11801 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
11802
11803         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
11804         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
11805
11806 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
11807
11808         [BZ #12191]
11809         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11810         (__x86_64_raw_data_cache_size_half): Likewise.
11811         (__x86_64_raw_shared_cache_size): Likewise.
11812         (__x86_64_raw_shared_cache_size_half): Likewise.
11813
11814         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11815         (__x86_64_raw_data_cache_size_half): Likewise.
11816         (__x86_64_raw_shared_cache_size): Likewise.
11817         (__x86_64_raw_shared_cache_size_half): Likewise.
11818         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
11819         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
11820         and __x86_64_raw_shared_cache_size_half.  Round
11821         __x86_64_data_cache_size_half, __x86_64_data_cache_size
11822         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
11823         to multiple of 256 bytes.
11824
11825 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
11826
11827         [BZ #12167]
11828         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
11829         of inacessible symlinks.  Verify result of symlink before returning it.
11830         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
11831         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
11832
11833 2010-10-28  Erich Ritz  <erichritz@gmail.com>
11834
11835         * math/math.h (isinf): Fix typo in comment.
11836
11837 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
11838
11839         * po/da.po: Update from translation team.
11840
11841 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
11842
11843         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
11844         is added to the list.
11845
11846 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11847             Ulrich Drepper  <drepper@gmail.com>
11848
11849         * elf/dl-object.c (_dl_new_object): Don't append the new object to
11850         the global list here.  Move code to...
11851         (_dl_add_to_namespace_list): ...here.  New function.
11852         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
11853         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
11854         * elf/dl-load.c (lose): Don't remove the element from the list.
11855         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
11856         (_dl_map_object): Likewise.
11857
11858 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
11859
11860         [BZ #12159]
11861         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
11862         into all bytes of SSE register.
11863         Patch by Richard Li <richardpku@gmail.com>.
11864
11865 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
11866
11867         [BZ #12140]
11868         * malloc/malloc.c (_int_free): Fill correct number of bytes when
11869         perturbing.
11870
11871 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
11872
11873         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
11874         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
11875         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
11876         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
11878         submachine.
11879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
11880
11881 2010-10-22  Andreas Schwab  <schwab@redhat.com>
11882
11883         * include/dlfcn.h (__RTLD_SECURE): Define.
11884         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
11885         mode & __RTLD_SECURE instead.
11886         (open_path): Rename preloaded parameter to secure.
11887         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
11888         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
11889         * elf/dl-deps.c (openaux): Likewise.
11890         * elf/rtld.c (struct map_args): Remove is_preloaded.
11891         (map_doit): Don't use it.
11892         (dl_main): Likewise.
11893         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
11894         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
11895
11896 2010-09-09  Andreas Schwab  <schwab@redhat.com>
11897
11898         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
11899         (sysd-rules-targets): Remove duplicates.
11900         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
11901         rtld-%.$o dependency.
11902
11903 2010-10-18  Andreas Schwab  <schwab@redhat.com>
11904
11905         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
11906         _dl_map_object do it.
11907
11908 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
11909
11910         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
11911         fast fma builtins, define the macros in the C99 standard.
11912         (FP_FAST_FMAF): Likewise.
11913         (FP_FAST_FMAL): Likewise.
11914         * sysdeps/x86_64/bits/mathdef.h: Likewise.
11915
11916         * bits/mathdef.h: Update copyright year.
11917         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11918
11919 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11920
11921         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
11922         builtins, define the macros in the C99 standard.
11923         (FP_FAST_FMAF): Likewise.
11924         (FP_FAST_FMAL): Likewise.
11925         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
11926         multiply/add.
11927         (FP_FAST_FMAF): Likewise.
11928
11929 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
11930
11931         [BZ #3268]
11932         * math/libm-test.inc (fma_test): Some new testcases.
11933         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
11934         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
11935         y and infinite z.  Do multiplication by C already in long double.
11936         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
11937         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
11938         y and infinite z.  Do bitwise or of inexact bit into u.d.
11939         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
11940         * sysdeps/i386/fpu/s_fmaf.S: Removed.
11941         * sysdeps/i386/fpu/s_fma.S: Removed.
11942         * sysdeps/i386/fpu/s_fmal.S: Removed.
11943
11944 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
11945
11946         [BZ #3268]
11947         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
11948         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
11949         computation is not scheduled after fetestexcept.  Fix value
11950         of minimum denormal long double.
11951
11952 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
11953
11954         [BZ #3268]
11955         * math/libm-test.inc (fma_test): Add some more tests.
11956         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
11957         correctly.
11958
11959 2010-10-15  Andreas Schwab  <schwab@redhat.com>
11960
11961         * scripts/data/localplt-s390-linux-gnu.data: New file.
11962         * scripts/data/localplt-s390x-linux-gnu.data: New file.
11963
11964 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
11965
11966         [BZ #3268]
11967         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
11968         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
11969         instead of dbl-64.
11970         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
11971         inlines.
11972         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
11973         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
11974         if one of x and y is very large and the other is subnormal.
11975         * sysdeps/s390/fpu/s_fmaf.c: New file.
11976         * sysdeps/s390/fpu/s_fma.c: New file.
11977         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
11978         * sysdeps/powerpc/fpu/s_fma.S: New file.
11979         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
11980         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
11981         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
11982
11983 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
11984
11985         [BZ #3268]
11986         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
11987         fma tests.
11988         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
11989         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
11990         * sysdeps/i386/i686/multiarch/s_fma.c: Include
11991         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
11992         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
11993         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
11994         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
11995
11996 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
11997
11998         [BZ #12078]
11999         * posix/regcomp.c (parse_branch): One more memory leak plugged.
12000         * posix/bug-regex31.input: Add test case.
12001
12002 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12003
12004         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
12005         * posix/bug-regex31.input: New file.
12006
12007         [BZ #12078]
12008         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
12009         (parse_sub_exp): Fix last change, use postorder.
12010
12011         * posix/bug-regex31.c: New file.
12012         * posix/Makefile: Add rules to build and run bug-regex31.
12013
12014         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
12015
12016         [BZ #12078]
12017         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
12018
12019         [BZ #12108]
12020         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
12021         to have entries in sys_siglist.
12022
12023         [BZ #12093]
12024         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
12025         be NULL.
12026
12027 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
12028
12029         [BZ #3268]
12030         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
12031         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
12032         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
12033         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
12034         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12035         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
12036         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
12037         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
12038         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
12039         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
12040         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
12041         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
12042         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
12043         * math/ftestexcept.c (fetestexcept): Likewise.
12044         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
12045         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
12046         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12047         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
12048         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
12049         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
12050         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12051
12052 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12053
12054         [BZ #12107]
12055         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
12056         newline.
12057
12058 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
12059
12060         * string/bug-strstr1.c: New file.
12061         * string/Makefile: Add rules to build and run bug-strstr1.
12062
12063 2010-10-05  Eric Blake  <eblake@redhat.com>
12064
12065         [BZ #12092]
12066         * string/str-two-way.h (two_way_long_needle): Always clear memory
12067         when skipping input due to the shift table.
12068
12069 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
12070
12071         [BZ #12005]
12072         * malloc/mcheck.c: Handle large requests.
12073
12074         [BZ #12077]
12075         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
12076         for strncmp and strncasecmp.
12077         * string/stratcliff.c: Add tests for strcmp and strncmp.
12078         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
12079
12080 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12081
12082         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
12083         __set_fpscr.
12084
12085 2010-09-30  Andreas Jaeger  <aj@suse.de>
12086
12087         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
12088         (CGROUP_SUPER_MAGIC): Define.
12089         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12090         Handle btrfs and cgroup file systems.
12091         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12092         Likewise.
12093
12094 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
12095
12096         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
12097         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
12098
12099 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12100
12101         [BZ #12067]
12102         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
12103         trying to locate the ELF header.
12104
12105 2010-09-27  Andreas Schwab  <schwab@redhat.com>
12106
12107         [BZ #11611]
12108         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
12109         Mask out sign-bit copies when constructing f_fsid.
12110
12111 2010-09-24  Petr Baudis <pasky@suse.cz>
12112
12113         * debug/stack_chk_fail_local.c: Add missing licence exception.
12114         * debug/warning-nop.c: Likewise.
12115
12116 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12117
12118         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
12119         implementing getdents64 using getdents syscall, set d_type if
12120         __ASSUME_GETDENTS32_D_TYPE.
12121
12122 2010-09-16  Andreas Schwab  <schwab@redhat.com>
12123
12124         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
12125         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
12126
12127 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
12128
12129         [BZ #12037]
12130         * posix/unistd.h: Undo change of feature selection for ftruncate from
12131         2010-01-11.
12132
12133 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
12134
12135         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
12136         detection.
12137
12138 2010-09-20  Andreas Schwab  <schwab@redhat.com>
12139
12140         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
12141         fanotify_mark.
12142         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12143
12144 2010-09-14  Andreas Schwab  <schwab@redhat.com>
12145
12146         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
12147         variables after CHECK_SP call.
12148         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
12149
12150 2010-09-13  Andreas Schwab  <schwab@redhat.com>
12151             Ulrich Drepper  <drepper@redhat.com>
12152
12153         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
12154         re-relocationg ld.so.
12155         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
12156         _dl_init_paths call.
12157         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
12158         here anymore.
12159
12160 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
12161
12162         * resolv/res_init.c (__res_vinit): Count the default server we added.
12163
12164 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
12165             Ulrich Drepper  <drepper@redhat.com>
12166
12167         [BZ #11968]
12168         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12169         (____longjmp_chk): Use %ebx for saving value across system call.
12170         Add unwind info.
12171
12172 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12173
12174         * manual/Makefile: Don't mix pattern rules with normal rules.
12175
12176 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
12177
12178         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
12179         operation.
12180         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12181         * libio/iofopncook.c (_IO_cookie_init): Likewise.
12182         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12183         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12184         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12185         Likewise.
12186
12187 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
12188
12189         [BZ #11979]
12190         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
12191         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
12192
12193 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
12194
12195         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
12196         * sysdeps/x86_64/addmul_1.S: Likewise.
12197         * sysdeps/x86_64/lshift.S: Likewise.
12198         * sysdeps/x86_64/mul_1.S: Likewise.
12199         * sysdeps/x86_64/rshift.S: Likewise.
12200         * sysdeps/x86_64/sub_n.S: Likewise.
12201         * sysdeps/x86_64/submul_1.S: Likewise.
12202
12203 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12204
12205         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
12206         Define __sched_param instead of SCHED_* and sched_param when
12207         <bits/sched.h> is included with __need_schedparam defined.
12208         * bits/sched.h [__need_schedparam]
12209         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
12210         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
12211         (__defined_schedparam): Define to 1.
12212         (__sched_param): New structure, identical to sched_param.
12213         (__need_schedparam): Undefine.
12214
12215 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
12216
12217         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
12218         (epoll_create1): Declare.
12219
12220         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
12221
12222 2010-08-31  Andreas Schwab  <schwab@redhat.com>
12223
12224         [BZ #7066]
12225         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
12226         shifting retval into place.
12227
12228 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
12229
12230         * nis/rpcsvc/nis.h: Update copyright notice.
12231         * nis/rpcsvc/nis.x: Likewise.
12232         * nis/rpcsvc/nis_callback.h: Likewise.
12233         * nis/rpcsvc/nis_callback.x: Likewise.
12234         * nis/rpcsvc/nis_object.x: Likewise.
12235         * nis/rpcsvc/nis_tags.h: Likewise.
12236         * nis/rpcsvc/yp.h: Likewise.
12237         * nis/rpcsvc/yp.x: Likewise.
12238         * nis/rpcsvc/ypupd.h: Likewise.
12239         * nis/yp_xdr.c: Likewise.
12240         * nis/ypupdate_xdr.c: Likewise.
12241
12242         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
12243         mainly the body of pmap_getport.  Add parameters to specify timeouts.
12244         (pmap_getport): Use __libc_rpc_getport.
12245         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
12246         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
12247         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
12248
12249 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
12250
12251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
12252         fanotify_mark.
12253
12254 2010-08-27  Roland McGrath  <roland@redhat.com>
12255
12256         * sysdeps/i386/i686/multiarch/Makefile
12257         (CFLAGS-varshift.c): New variable.
12258
12259 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
12260
12261         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
12262         * sysdeps/i386/i686/multiarch/varshift.c: New file.
12263
12264         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
12265
12266         * sysdeps/x86_64/strlen.S: Minimal code improvement.
12267
12268 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12269
12270         * sysdeps/x86_64/strlen.S: Unroll the loop.
12271         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12272         strlen-sse2 strlen-sse2-bsf.
12273         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
12274         __strlen_no_bsf if bit_Slow_BSF is set.
12275         (__strlen_sse42): Removed.
12276         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
12277         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
12278
12279 2010-08-25  Roland McGrath  <roland@redhat.com>
12280
12281         * sysdeps/x86_64/multiarch/varshift.S: File removed.
12282         * sysdeps/x86_64/multiarch/varshift.c: New file.
12283         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
12284         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
12285         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
12286         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12287
12288 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12289
12290         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12291         strlen-sse2 strlen-sse2-bsf.
12292         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
12293         __strlen_sse2_bsf if bit_Slow_BSF is unset.
12294         (__strlen_sse2): Removed.
12295         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
12296         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
12297         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
12298         bit_Slow_BSF for Atom.
12299         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
12300         (index_Slow_BSF): Define.
12301         (HAS_SLOW_BSF): Define.
12302
12303 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
12304
12305         [BZ #10851]
12306         * resolv/res_init.c (__res_vinit): When no server address at all
12307         is given default to loopback.
12308
12309 2010-08-24  Roland McGrath  <roland@redhat.com>
12310
12311         * configure.in: Remove config-name.h generation.
12312         * configure: Regenerated.
12313         * config-name.in: File removed.
12314         * scripts/config-uname.sh: New file.
12315         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
12316         ($(objdir)config-name.h): New target.
12317
12318         * sunrpc/rpc_parse.h: Avoid nested comment.
12319
12320 2010-08-24  Richard Henderson  <rth@redhat.com>
12321             Ulrich Drepper  <drepper@redhat.com>
12322             H.J. Lu  <hongjiu.lu@intel.com>
12323
12324         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
12325         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
12326         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
12327         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
12328         _mm_alignr_epi8 with _mm_loadu_si128.
12329         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
12330         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
12331         (__m128i_shift_right): Removed.
12332         * sysdeps/i386/i686/multiarch/varshift.h: New file.
12333         * sysdeps/i386/i686/multiarch/varshift.S: New file.
12334         * sysdeps/x86_64/multiarch/varshift.h: New file.
12335         * sysdeps/x86_64/multiarch/varshift.S: New file.
12336
12337 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
12338
12339         * configure.in: Move assembler checks to before sysdep dir checking.
12340
12341 2010-08-20  Petr Baudis  <pasky@suse.cz>
12342
12343         * LICENSES: Sync the sunrpc license.
12344
12345 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
12346
12347         * sunrpc/auth_des.c: Update copyright notice once again.
12348         * sunrpc/auth_none.c: Likewise.
12349         * sunrpc/auth_unix.c: Likewise.
12350         * sunrpc/authdes_prot.c: Likewise.
12351         * sunrpc/authuxprot.c: Likewise.
12352         * sunrpc/bindrsvprt.c: Likewise.
12353         * sunrpc/clnt_gen.c: Likewise.
12354         * sunrpc/clnt_perr.c: Likewise.
12355         * sunrpc/clnt_raw.c: Likewise.
12356         * sunrpc/clnt_simp.c: Likewise.
12357         * sunrpc/clnt_tcp.c: Likewise.
12358         * sunrpc/clnt_udp.c: Likewise.
12359         * sunrpc/clnt_unix.c: Likewise.
12360         * sunrpc/des_crypt.c: Likewise.
12361         * sunrpc/des_soft.c: Likewise.
12362         * sunrpc/get_myaddr.c: Likewise.
12363         * sunrpc/getrpcport.c: Likewise.
12364         * sunrpc/key_call.c: Likewise.
12365         * sunrpc/key_prot.c: Likewise.
12366         * sunrpc/openchild.c: Likewise.
12367         * sunrpc/pm_getmaps.c: Likewise.
12368         * sunrpc/pm_getport.c: Likewise.
12369         * sunrpc/pmap_clnt.c: Likewise.
12370         * sunrpc/pmap_prot.c: Likewise.
12371         * sunrpc/pmap_prot2.c: Likewise.
12372         * sunrpc/pmap_rmt.c: Likewise.
12373         * sunrpc/rpc/auth.h: Likewise.
12374         * sunrpc/rpc/auth_unix.h: Likewise.
12375         * sunrpc/rpc/clnt.h: Likewise.
12376         * sunrpc/rpc/des_crypt.h: Likewise.
12377         * sunrpc/rpc/key_prot.h: Likewise.
12378         * sunrpc/rpc/netdb.h: Likewise.
12379         * sunrpc/rpc/pmap_clnt.h: Likewise.
12380         * sunrpc/rpc/pmap_prot.h: Likewise.
12381         * sunrpc/rpc/pmap_rmt.h: Likewise.
12382         * sunrpc/rpc/rpc.h: Likewise.
12383         * sunrpc/rpc/rpc_des.h: Likewise.
12384         * sunrpc/rpc/rpc_msg.h: Likewise.
12385         * sunrpc/rpc/svc.h: Likewise.
12386         * sunrpc/rpc/svc_auth.h: Likewise.
12387         * sunrpc/rpc/types.h: Likewise.
12388         * sunrpc/rpc/xdr.h: Likewise.
12389         * sunrpc/rpc_clntout.c: Likewise.
12390         * sunrpc/rpc_cmsg.c: Likewise.
12391         * sunrpc/rpc_common.c: Likewise.
12392         * sunrpc/rpc_cout.c: Likewise.
12393         * sunrpc/rpc_dtable.c: Likewise.
12394         * sunrpc/rpc_hout.c: Likewise.
12395         * sunrpc/rpc_main.c: Likewise.
12396         * sunrpc/rpc_parse.c: Likewise.
12397         * sunrpc/rpc_parse.h: Likewise.
12398         * sunrpc/rpc_prot.c: Likewise.
12399         * sunrpc/rpc_sample.c: Likewise.
12400         * sunrpc/rpc_scan.c: Likewise.
12401         * sunrpc/rpc_scan.h: Likewise.
12402         * sunrpc/rpc_svcout.c: Likewise.
12403         * sunrpc/rpc_tblout.c: Likewise.
12404         * sunrpc/rpc_util.c: Likewise.
12405         * sunrpc/rpc_util.h: Likewise.
12406         * sunrpc/rpcinfo.c: Likewise.
12407         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
12408         * sunrpc/rpcsvc/key_prot.x: Likewise.
12409         * sunrpc/rpcsvc/klm_prot.x: Likewise.
12410         * sunrpc/rpcsvc/mount.x: Likewise.
12411         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
12412         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
12413         * sunrpc/rpcsvc/rex.x: Likewise.
12414         * sunrpc/rpcsvc/rstat.x: Likewise.
12415         * sunrpc/rpcsvc/rusers.x: Likewise.
12416         * sunrpc/rpcsvc/sm_inter.x: Likewise.
12417         * sunrpc/rpcsvc/spray.x: Likewise.
12418         * sunrpc/rpcsvc/yppasswd.x: Likewise.
12419         * sunrpc/rtime.c: Likewise.
12420         * sunrpc/svc.c: Likewise.
12421         * sunrpc/svc_auth.c: Likewise.
12422         * sunrpc/svc_authux.c: Likewise.
12423         * sunrpc/svc_raw.c: Likewise.
12424         * sunrpc/svc_run.c: Likewise.
12425         * sunrpc/svc_simple.c: Likewise.
12426         * sunrpc/svc_tcp.c: Likewise.
12427         * sunrpc/svc_udp.c: Likewise.
12428         * sunrpc/svc_unix.c: Likewise.
12429         * sunrpc/svcauth_des.c: Likewise.
12430         * sunrpc/xcrypt.c: Likewise.
12431         * sunrpc/xdr.c: Likewise.
12432         * sunrpc/xdr_array.c: Likewise.
12433         * sunrpc/xdr_float.c: Likewise.
12434         * sunrpc/xdr_mem.c: Likewise.
12435         * sunrpc/xdr_rec.c: Likewise.
12436         * sunrpc/xdr_ref.c: Likewise.
12437         * sunrpc/xdr_sizeof.c: Likewise.
12438         * sunrpc/xdr_stdio.c: Likewise.
12439
12440         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
12441         handling.
12442
12443 2010-08-19  Andreas Schwab  <schwab@redhat.com>
12444
12445         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
12446
12447 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
12448
12449         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
12450         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
12451         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
12452         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
12453         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
12454         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
12455         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
12456         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
12457         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
12458         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
12459         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
12460         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
12461         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
12462         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
12463
12464 2010-07-26  Anton Blanchard  <anton@samba.org>
12465
12466         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
12467         * malloc/arena.c (heap_trim): Likewise.
12468
12469 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
12470
12471         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
12472         here.  Not...
12473         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
12474         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
12475
12476 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
12477
12478         * sysdeps/i386/elf/Makefile: New file.
12479
12480 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12481
12482         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
12483         from fanotify_init.
12484         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
12485         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12486
12487 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
12488
12489         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
12490         of strncasecmp_l.
12491         * sysdeps/multiarch/strcmp.S: Likewise.
12492
12493 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
12494
12495         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12496         strncase_l-nonascii.
12497         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12498         Add strncase_l-ssse3.
12499         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
12500         * sysdeps/x86_64/strcmp.S: Likewise.
12501         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
12502         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
12503         * sysdeps/x86_64/strncase.S: New file.
12504         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
12505         * sysdeps/x86_64/strncase_l.S: New file.
12506         * string/Makefile (strop-tests): Add strncasecmp.
12507         * string/test-strncasecmp.c: New file.
12508
12509         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
12510         warning.
12511
12512         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
12513         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
12514
12515 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12516
12517         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
12518
12519 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
12520
12521         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
12522         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
12523         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
12524
12525 2010-05-01  Alan Modra  <amodra@gmail.com>
12526
12527         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
12528         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
12529         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
12530         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
12531         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
12532         tidying.  Don't tail-call __sigjmp_save for static lib.
12533         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
12534         save location.
12535         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
12536         (CALL_MCOUNT): Add eh info, and nop after bl.
12537         (TAIL_CALL_SYSCALL_ERROR): New macro.
12538         (PSEUDO_RET): Use it.
12539         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
12540         Correct save location of integer regs and cr.
12541         (_dl_profile_resolve): Correct cr save location.  Delete nops
12542         after bl when SHARED.  Reduce cfi size a little by better
12543         placement of cfi directives.
12544         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
12545         make a stack frame.  Instead use parm save area as a temp.
12546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
12547         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
12548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
12549         Don't make a stack frame for parent, use parm save area.
12550         Increase child stack frame to 112 bytes.  Don't save unused reg,
12551         and adjust reg usage.  Set up cfi on error recovery and
12552         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
12553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12554         (__makecontext): Add dummy nop after jump to exit.
12555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
12556         Use correct parm save area and cr save, reduce stack frame.
12557         Correct cfi for possible PSEUDO_RET frame setup.
12558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
12559         Branch to local label emitted by PSEUDO_RET rather than
12560         __syscall_error.
12561
12562 2010-08-12  Andreas Schwab  <schwab@redhat.com>
12563
12564         [BZ #11904]
12565         * locale/programs/locale.c (print_assignment): New function.
12566         (show_locale_vars): Use it.
12567
12568 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
12569
12570         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
12571         field.
12572         (struct statfs64): Likewise.
12573         (_STATFS_F_FLAGS): Define.
12574         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
12575         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12576         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
12577         (ST_VALID): Define locally.
12578         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
12579         __statvfs_getflags, use the provided value.
12580         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12581         __ASSUME_STATFS_F_FLAGS.
12582
12583         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
12584
12585         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
12586         Add sys/fanotify.h.
12587         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
12588         fanotify_mask for GLIBC_2.13.
12589         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
12590         fanotify_init and fanotify_mark.
12591         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12592         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
12593
12594         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
12595         Add prlimit.
12596         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
12597         prlimit64 for GLIBC_2.13.
12598         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
12599         prlimit64.
12600         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
12601         syscall.
12602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12603         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12604         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
12605         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
12606         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
12607         add prlimit alias.
12608         * sysdeps/unix/sysv/linux/prlimit.c: New file.
12609
12610         [BZ #11903]
12611         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
12612         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
12613
12614         * nss/Makefile: Add rules to build and run tst-nss-test1.
12615         * shlib-versions: Add entry for libnss_test1.
12616         * nss/nss_test1.c: New file.
12617         * nss/tst-nss-test1.c: New file.
12618
12619         * nss/nsswitch.c (__nss_database_custom): Define new variable.
12620         (__nss_configure_lookup): Set appropriate entry in
12621         __nss_configure_lookup to true.
12622         * nss/nsswitch.h: Define enum with indeces of databases in
12623         databases and __nss_database_custom arrays.  Declare
12624         __nss_database_custom.
12625         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
12626         to avoid using nscd when custom rules are installed.
12627         * nss/getXXbyYY_r.c: Likewise.
12628         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12629
12630         * nss/nss_files/files-parse.c: Whitespace fixes.
12631
12632 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
12633
12634         [BZ #11883]
12635         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
12636         * posix/fnmatch_loop.c: Likewise.
12637
12638 2010-07-17  Andi Kleen  <ak@linux.intel.com>
12639
12640         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
12641         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
12642         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
12643         * Versions.def [GLIBC_2.13]: Add.
12644
12645 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
12646
12647         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12648         Also fail if tpwd after pwuid call is NULL.
12649
12650 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12651
12652         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
12653         when converting to ms.
12654
12655 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12656
12657         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
12658         EOPNOTSUPP errors with ENOTTY.
12659         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
12660         EOPNOTSUPP errors with ENOTTY.
12661
12662 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
12663
12664         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12665         Add strcasecmp_l-ssse3.
12666         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
12667         strcasecmp.
12668         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
12669         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
12670         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
12671
12672 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
12673
12674         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
12675
12676         * string/Makefile (strop-tests): Add strcasecmp.
12677         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12678         strcasecmp_l-nonascii.
12679         (gen-as-const-headers): Add locale-defines.sym.
12680         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
12681         * sysdeps/x86_64/strcasecmp.S: New file.
12682         * sysdeps/x86_64/strcasecmp_l.S: New file.
12683         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
12684         * sysdeps/x86_64/locale-defines.sym: New file.
12685         * string/test-strcasecmp.c: New file.
12686
12687         * string/test-strcasestr.c: Test both ends of the range of characters.
12688         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
12689
12690 2010-07-29  Roland McGrath  <roland@redhat.com>
12691
12692         [BZ #11856]
12693         * manual/locale.texi (Yes-or-No Questions): Fix example code.
12694
12695 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
12696
12697         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
12698         for ld.so.
12699
12700 2010-07-27  Andreas Schwab  <schwab@redhat.com>
12701
12702         * manual/memory.texi (Malloc Tunable Parameters): Document
12703         M_PERTURB.
12704
12705 2010-07-26  Roland McGrath  <roland@redhat.com>
12706
12707         [BZ #11840]
12708         * configure.in (-fgnu89-inline check): Set and substitute
12709         gnu89_inline, not libc_cv_gnu89_inline.
12710         * configure: Regenerated.
12711         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
12712
12713 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
12714
12715         * string/test-strnlen.c: New file.
12716         * string/Makefile (strop-tests): Add strnlen.
12717         * string/tester.c (test_strnlen): Add a few more test cases.
12718         * string/tst-strlen.c: Better error reporting.
12719
12720         * sysdeps/x86_64/strnlen.S: New file.
12721
12722 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
12723
12724         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
12725         lower-latency instructions.
12726
12727 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
12728
12729         * string/test-strcasestr.c: New file.
12730         * string/test-strstr.c: New file.
12731         * string/Makefile (strop-tests): Add strstr and strcasestr.
12732         * string/str-two-way.h: Don't undefine MAX.
12733         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
12734
12735 2010-07-21  Andreas Schwab  <schwab@redhat.com>
12736
12737         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12738         strcasestr-nonascii.
12739         (CFLAGS-strcasestr-nonascii.c): Define.
12740         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
12741         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
12742         Remove unused attribute.
12743
12744 2010-07-20  Roland McGrath  <roland@redhat.com>
12745
12746         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
12747         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
12748         ld.so.cache was broken.  With it, there is no way to disable dsocaps
12749         like LD_HWCAP_MASK can disable hwcaps.
12750
12751 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12752
12753         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
12754
12755 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
12756
12757         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
12758         call in strcasestr.
12759         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
12760         __strcasestr_sse42_nonascii.
12761         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
12762         strcasestr-nonascii.c.
12763         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
12764
12765 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
12766
12767         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
12768         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
12769         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
12770         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
12771
12772 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
12773
12774         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
12775         fcntl.
12776
12777 2010-07-06  Andreas Schwab  <schwab@redhat.com>
12778
12779         [BZ #11577]
12780         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
12781         dl_signal_cerror.
12782
12783 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
12784
12785         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
12786         _PC_PIPE_BUF using F_GETPIPE_SZ.
12787
12788 2010-07-05  Roland McGrath  <roland@redhat.com>
12789
12790         * manual/arith.texi (Rounding Functions): Fix rint description
12791         implicit in round description.
12792
12793 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
12794
12795         * elf/Makefile: Fix linking for a few tests to make recent linker
12796         happy.
12797
12798 2010-06-30  Andreas Schwab  <schwab@redhat.com>
12799
12800         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12801         $(common-objpfx)libc_nonshared.a.
12802
12803 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
12804
12805         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
12806         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
12807         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12808         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12809         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
12810         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
12811         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12812         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
12814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
12815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
12816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
12818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
12820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
12821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
12822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
12823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
12825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
12827         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
12828         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
12829         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
12830         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
12831         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
12832         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
12833         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
12834         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
12835         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
12836         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
12837         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
12838         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
12839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
12840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
12841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
12842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
12843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
12844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
12845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
12846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
12847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
12848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
12849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
12850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
12851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
12852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
12853
12854 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
12855
12856         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
12857         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
12858         * string/memmove.c (memmove): Renamed to ...
12859         (MEMMOVE): ...this.  Default to memmove.
12860         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
12861         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
12862         (END_CHK): Define.
12863         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12864         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
12865         mempcpy-ssse3-back memmove-ssse3-back.
12866         * sysdeps/x86_64/multiarch/bcopy.S: New file .
12867         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
12868         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
12869         * sysdeps/x86_64/multiarch/memcpy.S: New file.
12870         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
12871         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
12872         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
12873         * sysdeps/x86_64/multiarch/memmove.c: New file.
12874         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
12875         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
12876         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
12877         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
12878         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
12879         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
12880         Define.
12881         (index_Fast_Copy_Backward): Define.
12882         (HAS_ARCH_FEATURE): Define.
12883         (HAS_FAST_REP_STRING): Define.
12884         (HAS_FAST_COPY_BACKWARD): Define.
12885
12886 2010-06-21  Andreas Schwab  <schwab@redhat.com>
12887
12888         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12889         Restore proper fallback handling.
12890
12891 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
12892
12893         [BZ #11701]
12894         * posix/group_member.c (__group_member): Correct checking loop.
12895
12896         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
12897         OOM in getpwuid_r correctly.  Return error number when the caller
12898         should return, otherwise -1.
12899         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
12900         call returning > 0 value.
12901         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
12902
12903 2010-06-07  Andreas Schwab  <schwab@redhat.com>
12904
12905         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
12906         libc_nonshared.a from targets in modules-names.
12907
12908 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
12909
12910         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
12911         requires it.
12912
12913 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
12914
12915         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
12916         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
12917         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
12918         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
12919
12920 2010-06-02  Andreas Schwab  <schwab@redhat.com>
12921
12922         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
12923
12924 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
12925
12926         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
12927         and F_GETPIPE_SZ.
12928         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12929         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12930         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12931         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12932         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12933         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
12934
12935 2010-06-14  Roland McGrath  <roland@redhat.com>
12936
12937         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
12938
12939 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
12940
12941         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
12942         __REDIRECT followed by __THROW.
12943         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
12944         * posix/getopt.h (getopt): Likewise.
12945
12946 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12947
12948         * hurd/lookup-at.c (__file_name_lookup_at): Accept
12949         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
12950         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
12951         in AT_FLAGS.
12952         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
12953         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
12954
12955 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
12956
12957         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
12958
12959 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12960
12961         [BZ #11640]
12962         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12963         Properly check family and model.
12964
12965 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
12966
12967         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
12968
12969 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
12970
12971         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
12972
12973 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
12974
12975         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
12976         symbol reference.
12977
12978 2010-05-19  Andreas Schwab  <schwab@redhat.com>
12979
12980         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
12981         symbol reference.
12982
12983 2010-05-21  Andreas Schwab  <schwab@redhat.com>
12984
12985         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
12986         and internal_recvmmsg.
12987         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
12988         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
12989         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
12990         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
12991
12992         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
12993         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12994         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12995
12996 2010-05-20  Andreas Schwab  <schwab@redhat.com>
12997
12998         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
12999
13000 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
13001
13002         POWER7 optimizations.
13003         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
13004         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
13005
13006 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
13007
13008         * version.h: Update for 2.13 development version.
13009
13010 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
13011
13012         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
13013         exceptions.  Return 0.
13014
13015 2010-05-07  Roland McGrath  <roland@redhat.com>
13016
13017         * elf/ldconfig.c (main): Add a const.
13018
13019 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
13020
13021         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
13022         (args_options): Add no-idn option.
13023         (ahosts_keys_int): Add idn_flags to ai_flags.
13024         (parse_option): Handle 'i' option to clear idn_flags.
13025
13026         * malloc/malloc.c (_int_free): Possible race in the most recently
13027         added check.  Only act on the data if no current modification
13028         happened.
13029
13030 See ChangeLog.17 for earlier changes.