7fb8d569c523249e987064c83cdac570908729f2
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
4         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5         and R_X86_64_TPOFF64.
6
7 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8
9         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
10         sysdeps/unix/sysv/syscalls.list.
11         (stime): Likewise.
12         (utime): Likewise.
13         * sysdeps/unix/sysv/syscalls.list: Remove file.
14
15 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16
17         [BZ #3440]
18         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
19         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
20         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
21         (__LC_IDENTIFICATION): Make these macros useful in #if
22         expressions, as required by C99.
23
24 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25
26         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
27         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
28         after this.
29
30 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
31
32         * stdlib/longlong.h: Updated from GCC.
33
34 2012-05-09  Andreas Jaeger  <aj@suse.de>
35
36         * nscd/nscd.c (run_modes): Make named enum, reorder so that
37         default is first entry.
38         (run_mode): Set type.
39         (main): Remove informal message about syslog.
40         (options): Fix typo.
41
42         [BZ #14053]
43         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
44         to asm.
45         (lrint): Likewise.
46         (llrintf): Likewise.
47         (llrint): Likewise.
48         (rint): Likewise.
49         (rintf): Likewise.
50         (nearbyint): Likewise.
51         (nearbyintf): Likewise.
52
53 2012-05-09  Andreas Jaeger  <aj@suse.de>
54             Pedro Alves  <palves@redhat.com>
55
56         * nscd/nscd.c (run_mode): Use enum.
57         (main): Cleanup coding style issue.
58
59 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
60             Andreas Jaeger  <aj@suse.de>
61
62         * nscd/nscd.c (go_background): Replaced with...
63         (run_mode): ... this.
64         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
65         (options): Add -F --foreground.
66         (main): Implement it.
67         (parse_opt): Parse it.
68
69 2012-05-09  Andreas Jaeger  <aj@suse.de>
70
71         [BZ #14083]
72         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
73         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
74         -Wconversion warning.
75         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
76         Likewise.
77
78 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
79
80         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
81         == 0.
82         (LC_ALL): Use macro-int-constant.
83         (LC_COLLATE): Likewise.
84         (LC_CTYPE): Likewise.
85         (LC_MESSAGES): Likewise.
86         (LC_MONETARY): Likewise.
87         (LC_NUMERIC): Likewise.
88         (LC_TIME): Likewise.
89         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
90         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
91         [ISO || ISO99 || ISO11] (*_t): Do not allow.
92         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
93         Specify type.
94         [C99-based standards] (float_t): Expect type.
95         [C99-based standards] (double_t): Expect type.
96         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
97         type.
98         [C99-based standards] (HUGE_VALL): Likewise.
99         [C99-based standards] (INFINITY): Likewise.
100         [C99-based standards] (NAN): Likewise.
101         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
102         [C99-based standards] (FP_NAN): Likewise.
103         [C99-based standards] (FP_NORMAL): Likewise.
104         [C99-based standards] (FP_SUBNORMAL): Likewise.
105         [C99-based standards] (FP_ZERO): Likewise.
106         [C99-based standards] (FP_FAST_FMA): Use
107         optional-macro-int-constant.  Specify type.  Require == 1.
108         [C99-based standards] (FP_FAST_FMAF): Likewise.
109         [C99-based standards] (FP_FAST_FMAL): Likewise.
110         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
111         [C99-based standards] (FP_ILOGBNAN): Likewise.
112         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
113         Specify type.
114         [C99-based standards] (MATH_ERREXCEPT): Likewise.
115         [C99-based standards] (math_errhandling): Specify type.
116         [ISO99 || ISO11] (signgam): Do not allow.
117         [non-C99-based standards] (copysignf): Do not allow.
118         [non-C99-based standards] (exp2f): Likewise.
119         [non-C99-based standards] (log2f): Likewise.
120         [non-C99-based standards] (modff): Allow.
121         [non-C99-based standards] (erff): Do not allow.
122         [non-C99-based standards] (erfcf): Likewise.
123         [non-C99-based standards] (gammaf): Likewise.
124         [non-C99-based standards] (hypotf): Likewise.
125         [non-C99-based standards] (j0f): Likewise.
126         [non-C99-based standards] (j1f): Likewise.
127         [non-C99-based standards] (jnf): Likewise.
128         [non-C99-based standards] (lgammaf): Likewise.
129         [non-C99-based standards] (tgammaf): Likewise.
130         [non-C99-based standards] (y0f): Likewise.
131         [non-C99-based standards] (y1f): Likewise.
132         [non-C99-based standards] (ynf): Likewise.
133         [non-C99-based standards] (isnanf): Likewise.
134         [non-C99-based standards] (acoshf): Likewise.
135         [non-C99-based standards] (asinhf): Likewise.
136         [non-C99-based standards] (atanhf): Likewise.
137         [non-C99-based standards] (cbrtf): Likewise.
138         [non-C99-based standards] (expm1f): Likewise.
139         [non-C99-based standards] (ilogbf): Likewise.
140         [non-C99-based standards] (log1pf): Likewise.
141         [non-C99-based standards] (logbf): Likewise.
142         [non-C99-based standards] (nextafterf): Likewise.
143         [non-C99-based standards] (remainderf): Likewise.
144         [non-C99-based standards] (rintf): Likewise.
145         [non-C99-based standards] (scalbf): Likewise.
146         [non-C99-based standards] (copysignl): Likewise.
147         [non-C99-based standards] (exp2l): Likewise.
148         [non-C99-based standards] (log2l): Likewise.
149         [non-C99-based standards] (modfl): Allow.
150         [non-C99-based standards] (erfl): Do not allow.
151         [non-C99-based standards] (erfcl): Likewise.
152         [non-C99-based standards] (gammal): Likewise.
153         [non-C99-based standards] (hypotl): Likewise.
154         [non-C99-based standards] (j0l): Likewise.
155         [non-C99-based standards] (j1l): Likewise.
156         [non-C99-based standards] (jnl): Likewise.
157         [non-C99-based standards] (lgammal): Likewise.
158         [non-C99-based standards] (tgammal): Likewise.
159         [non-C99-based standards] (y0l): Likewise.
160         [non-C99-based standards] (y1l): Likewise.
161         [non-C99-based standards] (ynl): Likewise.
162         [non-C99-based standards] (isnanl): Likewise.
163         [non-C99-based standards] (acoshl): Likewise.
164         [non-C99-based standards] (asinhl): Likewise.
165         [non-C99-based standards] (atanhl): Likewise.
166         [non-C99-based standards] (cbrtl): Likewise.
167         [non-C99-based standards] (expm1l): Likewise.
168         [non-C99-based standards] (ilogbl): Likewise.
169         [non-C99-based standards] (log1pl): Likewise.
170         [non-C99-based standards] (logbl): Likewise.
171         [non-C99-based standards] (nextafterl): Likewise.
172         [non-C99-based standards] (remainderl): Likewise.
173         [non-C99-based standards] (rintl): Likewise.
174         [non-C99-based standards] (scalbl): Likewise.
175         [ISO || ISO99 || ISO11] (*_t): Do not allow.
176         [non-C99-based standards] (FP_*): Do not allow.
177         [C99-based standards] (FP_*): Change to
178         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
179         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
180         allow.
181         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
182         (SIG_ERR): Likewise.
183         [X/Open-based standards] (SIG_HOLD): Likewise.
184         (SIG_IGN): Likewise.
185         (SIGABRT): Use macro-int-constant.  Specify type.  Require
186         positive value.
187         (SIGFPE): Likewise.
188         (SIGILL): Likewise.
189         (SIGINT): Likewise.
190         (SIGSEGV): Likewise.
191         (SIGTER): Likewise.
192         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
193         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
194         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
195         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
196         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
197         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
198         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
199         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
200         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
201         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
202         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
203         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
204         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
205         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
206         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
207         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
208         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
209         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
210         [X/Open-based standards] (SIGTRAP): Likewise.
211         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
212         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
213         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
214         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
215         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
216         allow.
217
218 2012-05-08  Ian Wienand  <ianw@vmware.com>
219
220         [BZ #14080]
221         * time/tzset.c (__tzset_parse_tz): Update default rules for
222         daylight time changes in the Energy Policy Act of 2005.
223
224 2012-05-09  Andreas Jaeger  <aj@suse.de>
225
226         [BZ #13983]
227         * elf/ldconfig.c (parse_conf): Change string to make clear that
228         ldconfig only issued a warning if ld.so.conf does not exist.
229
230 2012-05-08  David S. Miller  <davem@davemloft.net>
231
232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
233         movxtod instead of popping the value on the stack.
234
235         * sysdeps/sparc/fpu/libm-test-ulps: Update.
236
237 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
238
239         * config.h.in: Add HAVE_ARM_PCS_VFP.
240
241 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
242
243         [BZ #13979]
244         * include/features.h: Warn if user requests __FORTIFY_SOURCE
245         checking but the checks are disabled for any reason.
246
247 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
248
249         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
250         and ELF64_R_TYPE with ELFW(R_TYPE).
251
252 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
253
254         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
255         (ulimit): Likewise.
256
257         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
258         (settimeofday): Likewise.
259
260 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
261
262         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
263         a struct th_u2 inside the union, and move tu_block/tu_code into
264         a new th_u3 union of tu_block/tu_code inside of that.  Move
265         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
266         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
267         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
268         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
269         (th_stuff): Change to th_u1.tu_stuff.
270         (th_data): Define.
271         (th_msg): Change to th_u1.th_u2.tu_data.
272
273 2012-05-07  David S. Miller  <davem@davemloft.net>
274
275         * sysdeps/sparc/fpu/libm-test-ulps: Update.
276
277         [BZ #14074]
278         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
279         (SETUP_PIC_REG): Use it.
280         (SETUP_PIC_REG_LEAF): Use it.
281
282 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
283
284         [BZ #13885]
285         [BZ #13923]
286         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
287         USE_AS_EXPM1L.
288         (EXPL_FINITE): Likewise.
289         (FLDLOG): Likewise.
290         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
291         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
292         e_expl.S.
293         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
294         USE_AS_EXPM1L.
295         (EXPL_FINITE): Likewise.
296         (FLDLOG): Likewise.
297         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
298         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
299         e_expl.S.
300         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
301         test of -max_value argument for long double.
302         * sysdeps/i386/fpu/libm-test-ulps: Update.
303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
304
305 2012-05-06  David S. Miller  <davem@davemloft.net>
306
307         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
308         quad soft-float symbols whose references which are compiler
309         generated.
310         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
311
312 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
313
314         [BZ #13884]
315         [BZ #13914]
316         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
317         USE_AS_EXP10L.
318         (EXPL_FINITE): Likewise.
319         (FLDLOG): Likewise.
320         (c0): Likewise.
321         (c1): Likewise.
322         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
323         Adjust comments for base varying.
324         (__expl_finite): Change alias to EXPL_FINITE.
325         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
326         e_expl.S.
327         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
328         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
329         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
330         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
331         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
332         USE_AS_EXP10L.
333         (EXPL_FINITE): Likewise.
334         (FLDLOG): Likewise.
335         (c0): Likewise.
336         (c1): Likewise.
337         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
338         Adjust comments for base varying.
339         (__expl_finite): Change alias to EXPL_FINITE.
340         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
341         tests for bugs.
342         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
343
344         [BZ #14064]
345         * math/libm-test.inc (check_float_internal): Correct ulp
346         calculation for subnormal expected results.
347
348 2012-05-06  Andreas Jaeger  <aj@suse.de>
349
350         * Makeconfig (+math-flags): New, set to -frounding-math.
351         (+cflags): Add +math-flags so that all of glibc gets compiled with
352         it.
353
354         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
355
356 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
357
358         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
359         Disable one test.
360
361         [BZ #13787]
362         [BZ #13922]
363         [BZ #14036]
364         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
365         (__ieee754_expl): Allow for and saturate large arguments.
366         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
367         (u_threshold): Likewise.
368         (__exp): Call __ieee754_exp before checking for overflow and
369         underflow.
370         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
371         (u_threshold): Likewise.
372         (__expf): Call __ieee754_expf before checking for overflow and
373         underflow.
374         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
375         (u_threshold): Likewise.
376         (__expl): Call __ieee754_expl before checking for overflow and
377         underflow.
378         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
379         (__ieee754_expl): Allow for and saturate large arguments.
380         * math/libm-test.inc (exp_test): Add another test.  Do not allow
381         missing overflow exception on overflow.
382         (expm1_test): Do not allow missing overflow exception on overflow.
383
384         * sysdeps/i386/fpu/e_expl.c: Move to ...
385         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
386         rather than using inline asm.
387         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
388         * sysdeps/x86_64/fpu/e_expl.S: Copy from
389         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
390
391         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
392         (nice): Likewise.
393         (poll): Likewise.
394         (signal): Likewise.
395         (time): Likewise.
396         (times): Likewise.
397
398 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
399
400         * sysdeps/unix/syscalls.list (adjtime): Add entry from
401         sysdeps/unix/common/syscalls.list.
402         (fchmod): Likewise.
403         (fchown): Likewise.
404         (ftruncate): Likewise.
405         (getrusage): Likewise.
406         (gettimeofday): Likewise.
407         (setpgid): Likewise.
408         (setregid): Likewise.
409         (setreuid): Likewise.
410         (sigaction): Likewise.
411         (truncate): Likewise.
412         (vhangup): Likewise.
413         * sysdeps/unix/common/syscalls.list: Remove file.
414         * sysdeps/unix/bsd/Implies: Don't include unix/common.
415         * sysdeps/unix/sysv/linux/Implies: Likewise.
416
417 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
418
419         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
420         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
421         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
422         Moved to ...
423         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
424         Here.
425         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
426         to ...
427         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
428         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
429         to ...
430         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
431         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
432         to ...
433         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
434         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
435         to ...
436         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
437         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
438         to ...
439         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
440         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
441         to ...
442         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
443         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
444         to ...
445         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
446         Here.
447         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
448         to ...
449         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
450         Here.
451         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
452         to ...
453         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
454         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
455         Moved to ...
456         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
457         Here.
458         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
459         to ...
460         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
461
462 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
463
464         * sysdeps/unix/common/bits/dirent.h: Remove file.
465         * sysdeps/unix/common/bits/fcntl.h: Likewise.
466
467         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
468         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
469         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
470         * sysdeps/unix/bsd/isatty.c: Likewise.
471         * sysdeps/unix/bsd/tcdrain.c: Likewise.
472         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
473         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
474
475 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
476
477         [BZ #13563]
478         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
479         long double comparison inaccuracies.
480         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
481         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
482
483 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
484
485         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
486         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
487
488 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
489
490         [BZ #14049]
491         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
492         nonzero digits before rounding a hex value.
493         * stdlib/tst-strtod.c (tests): Add another test.
494
495 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
496
497         * sysdeps/s390/fpu/libm-test-ulps: Update.
498
499 2012-05-03  Andreas Jaeger  <aj@suse.de>
500
501         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
502         does not get optimized out.
503         (malloc_opt_barrier): New.
504
505 2012-05-03  Andreas Jaeger  <aj@suse.de>
506             Roland McGrath  <roland@hack.frob.com>
507
508         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
509         intermediate file deletion.
510         (generated): Add .symlist files.
511
512 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
513
514         [BZ #13775]
515         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
516         Redirect under this condition.
517         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
518         [__USE_GNU] (__dprintf_chk): Not under this condition.
519         [__USE_GNU] (__vdprintf_chk): Likewise.
520         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
521         under this condition.
522         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
523         [__USE_XOPEN2K8] (dprintf): Define under this condition.
524         [__USE_XOPEN2K8] (vdprintf): Likewise.
525         [__USE_GNU] (__dprintf_chk): Not under this condition.
526         [__USE_GNU] (__vdprintf_chk): Likewise.
527         [__USE_GNU] (dprintf): Likewise.
528         [__USE_GNU] (vdprintf): Likewise.
529
530 2012-05-03  Roland McGrath  <roland@hack.frob.com>
531
532         * elf/Makefile (common-generated): Set this instead of generated for
533         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
534         $(all-built-dso)-derived lists.
535
536 2012-05-03  Andreas Jaeger  <aj@suse.de>
537
538         * sysdeps/i386/fpu/libm-test-ulps: Update.
539
540         * FAQ: Removed.
541         * FAQ.in: Likewise.
542         * scripts/gen-FAQ.pl: Likewise.
543         * manual/install.texi (Installation): Point to online location of
544         FAQ.
545         * Makefile (files-for-dist): Remove FAQ.
546         (FAQ): Remove.
547
548 2012-05-02  Allan McRae  <allan@archlinux.org>
549
550         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
551         (LDFLAGS-reldepmod5.so): Likewise.
552         (LDFLAGS-reldep6mod1.so): Likewise.
553         (LDFLAGS-reldep6mod4.so): Likewise.
554         (LDFLAGS-reldep8mod3.so): Likewise.
555         (LDFLAGS-unload4mod1.so): Likewise.
556         (LDFLAGS-unload4mod2.so): Likewise.
557         (LDFLAGS-tst-initorder): Likewise.
558         (LDFLAGS-tst-initordera2.so): Likewise.
559         (LDFLAGS-tst-initordera3.so): Likewise.
560         (LDFLAGS-tst-initordera4.so): Likewise.
561         (LDFLAGS-tst-initorderb2.so): Likewise.
562         (LDFLAGS-noload): Likewise.
563         (LDFLAGS-next): Likewise.
564         (LDFLAGS-order2mod1.so): Likewise.
565         (LDFLAGS-order2mod2.so): Likewise.
566         (LDFLAGS-tst-initorder2): Likewise.
567         (LDFLAGS-tst-initorder2a.so): Likewise.
568         (LDFLAGS-tst-initorder2b.so): Likewise.
569         (LDFLAGS-tst-initorder2c.so): Likewise.
570         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
571
572 2012-05-02  David S. Miller  <davem@davemloft.net>
573
574         * sysdeps/sparc/fpu/libm-test-ulps: Update.
575
576 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
577
578         [BZ #14055]
579         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
580
581 2012-05-02  Andreas Jaeger  <aj@suse.de>
582
583         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
584         since we manipulate rounding mode.
585         (CPPFLAGS-test-idouble.c): Likewise.
586         (CPPFLAGS-test-ifloat.c): Likewise.
587         (CFLAGS-test-ldouble.c): Likewise.
588         (CFLAGS-test-double.c): Likewise.
589         (CFLAGS-test-float.c): Likewise.
590         (CFLAGS-test-misc.c): Likewise.
591         (CFLAGS-test-test-fenv.c): Likewise.
592
593 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
594
595         [BZ #2550]
596         [BZ #2570]
597         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
598         comparisons to determine direction to adjust input.
599
600 2012-05-01  Roland McGrath  <roland@hack.frob.com>
601
602         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
603         output to the target.
604
605         * scripts/localplt.awk: New file.
606         * elf/Makefile ($(objpfx)check-localplt): Target removed.
607         (check-localplt-CFLAGS): Variable removed.
608         ($(all-built-dso:=.jmprel)): New static pattern rule.
609         (generated): Add those targets.
610         (localplt-built-dso): New variable.
611         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
612
613         * elf/check-localplt.c: File removed.
614
615         * scripts/check-execstack.awk: New file.
616         * elf/Makefile ($(objpfx)check-execstack): Target removed.
617         (check-execstack-CFLAGS): Variable removed.
618         ($(objpfx)check-execstack.h): Target removed.
619         ($(objpfx)execstack-default): New target.
620         (generated): Add that instead of check-execstack.h.
621         ($(all-built-dso:=.phdr)): New static pattern rule.
622         (generated): Add those targets.
623         * elf/check-execstack.c: File removed.
624
625         * scripts/check-textrel.awk: New file.
626         * elf/Makefile ($(objpfx)check-textrel): Target removed.
627         (check-textrel-CFLAGS): Variable removed.
628         (all-built-dso): Use := to define.o
629         ($(all-built-dso:=.dyn)): New static pattern rule.
630         (generated): Add those targets.
631         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
632         * config.make.in (READELF): New substituted variable.
633         * elf/check-textrel.c: File removed.
634
635 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
636
637         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
638         allow.
639         * conform/data/ctype.h-data [C99-based standards] (isblank):
640         Expect function.
641         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
642         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
643         [ISO || ISO99 || ISO11] (*_t): Do not allow.
644         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
645         Specify type.  Require positive value.
646         (EILSEQ): Likewise.
647         (ERANGE): Likewise.
648         [ISO || POSIX] (EILSEQ): Do not expect.
649         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
650         Specify type.  Require positive value.
651         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
652         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
653         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
654         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
655         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
656         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
657         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
658         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
659         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
660         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
661         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
662         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
663         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
664         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
665         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
666         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
667         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
668         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
669         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
670         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
671         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
672         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
673         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
674         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
675         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
676         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
677         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
678         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
679         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
680         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
681         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
682         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
683         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
684         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
685         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
686         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
687         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
688         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
689         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
690         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
691         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
692         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
693         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
694         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
695         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
696         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
697         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
698         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
699         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
700         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
701         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
702         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
703         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
704         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
705         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
706         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
707         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
708         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
709         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
710         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
711         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
712         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
713         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
714         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
715         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
716         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
717         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
718         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
719         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
720         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
721         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
722         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
723         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
724         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
725         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
726         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
727         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
728         Require >= 2.
729         (FLT_ROUNDS): Expect as macro, not constant.
730         (FLT_MANT_DIG): Use macro-int-constant.
731         (DBL_MANT_DIG): Likewise.
732         (LDBL_MANT_DIG): Likewise.
733         (FLT_DIG): Likewise.
734         (DBL_DIG): Likewise.
735         (LDBL_DIG): Likewise.
736         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
737         (DBL_MIN_EXP): Likewise.
738         (LDBL_MIN_EXP): Likewise.
739         (FLT_MAX_EXP): Use macro-int-constant.
740         (DBL_MAX_EXP): Likewise.
741         (LDBL_MAX_EXP): Likewise.
742         (FLT_MAX_10_EXP): Likewise.
743         (DBL_MAX_10_EXP): Likewise.
744         (LDBL_MAX_10_EXP): Likewise.
745         (FLT_MAX): Use macro-constant.
746         (DBL_MAX): Likewise.
747         (LDBL_MAX): Likewise.
748         (FLT_EPSILON): Use macro-constant.  Give upper bound.
749         (DBL_EPSILON): Likewise.
750         (LDBL_EPSILON): Likewise.
751         (FLT_MIN): Likewise.
752         (DBL_MIN): Likewise.
753         (LDBL_MIN): Likewise.
754         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
755         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
756         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
757         [ISO11] (FLT_HAS_SUBNORM): Likewise.
758         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
759         [ISO11] (DBL_DECIMAL_DIG): Likewise.
760         [ISO11] (FLT_DECIMAL_DIG): Likewise.
761         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
762         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
763         [ISO11] (FLT_TRUE_MIN): Likewise.
764         [ISO11] (LDBL_TRUE_MIN): Likewise.
765         [ISO || ISO99 || ISO11] (*_t): Do not allow.
766         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
767         (SCHAR_MIN): Use macro-int-constant.  Specify type.
768         (SCHAR_MAX): Likewise.
769         (UCHAR_MAX): Likewise.
770         (CHAR_MIN): Likewise.
771         (CHAR_MAX): Likewise.
772         (MB_LEN_MAX): Use macro-int-constant.
773         (SHRT_MIN): Use macro-int-constant.  Specify type.
774         (SHRT_MAX): Likewise.
775         (USHRT_MAX): Likewise.
776         (INT_MAX): Likewise.
777         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
778         bound negative.
779         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
780         bound with "U".
781         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
782         bound with "L".
783         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
784         bound negative.  Suffix upper bound with "L".
785         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
786         bound with "UL".
787         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
788         Specify type.
789         [C99-based standards] (LLONG_MAX): Likewise.
790         [C99-based standards] (ULLONG_MAX): Likewise.
791         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
792         == 0.
793         [ISO11] (max_align_t): Require type.
794         [ISO || ISO99 || ISO11] (*_t): Do not allow.
795
796         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
797         from $CFLAGS, without defining away __attribute__ calls.
798         (checknamespace): Use $CFLAGS_namespace.
799
800         * conform/conformtest.pl (@keywords): Only include C99 keywords
801         for standards based on C99 or C11.
802
803         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
804         Disable tests.
805         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
806         UNIX98]: Likewise.
807
808         * conform/conformtest.pl: Handle "macro-int-constant" and test for
809         usability of symbols in #if.
810
811         * conform/conformtest.pl: If macro or constant types start
812         "promoted:", expect the symbol to be of the following type
813         promoted by the integer promotions.
814
815         * conform/conformtest.pl: Parse all "constant" and "macro" lines
816         in one place.  Also handle "macro-constant".
817
818         * conform/conformtest.pl: Only accept expected macro values with
819         "==".  Parse all "macro" lines in one place.
820         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
821
822         * conform/conformtest.pl: Handle braced types on "constant" lines
823         instead of handling "typed-constant".
824         * conform/data/signal.h-data: Use "constant" instead of
825         "typed-constant".
826
827         * conform/conformtest.pl: Handle "optional-" at start of lines in
828         one place rather than duplicating several cases.  Handle each
829         format of "macro" line with initial "optional-".
830
831         * conform/conformtest.pl: Only accept expected constant or
832         optional-constant values with "==".  Parse all "constant" lines in
833         one place.  Parse all "optional-constant" lines in one place.
834         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
835         * conform/data/fmtmsg.h-data: Likewise.
836         * conform/data/netinet/in.h-data: Likewise.
837         * conform/data/tar.h-data: Likewise.
838         * conform/data/limits.h-data: Use "==" form on "constant" and
839         "optional-constant" lines.
840
841         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
842         Use -std=c99 for XOPEN2K.
843         (@knownproblems): Remove.
844         (newtoken): Don't check %isknown.
845
846         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
847         Do not expect macro.
848         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
849         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
850         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
851         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
852         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
853         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
854         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
855         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
856         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
857         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
858         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
859         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
860         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
861         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
862         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
863         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
864         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
865         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
866         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
867         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
868         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
869         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
870         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
871         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
872         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
873         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
874         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
875         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
876         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
877         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
878         [XPG3] (acosh): Likewise.
879         [XPG3] (asinh): Likewise.
880         [XPG3] (atanh): Likewise.
881         [XPG3] (cbrt): Likewise.
882         [XPG3] (expm1): Likewise.
883         [XPG3] (ilogb): Likewise.
884         [XPG3] (log1p): Likewise.
885         [XPG3] (logb): Likewise.
886         [XPG3] (nextafter): Likewise.
887         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
888         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
889         [XPG3] (remainder): Likewise.
890         [XPG3] (rint): Likewise.
891         [XPG3 || XPG4 || UNIX98] (round): Likewise.
892         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
893         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
894         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
895         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
896         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
897         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
898         [UNIX98 || XOPEN2K] (scalb): Expect.
899         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
900         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
901         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
902         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
903         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
904         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
905         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
906         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
907         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
908         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
909         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
910         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
911         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
912         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
913         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
914         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
915         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
916         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
917         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
918         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
919         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
920         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
921         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
922         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
923         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
924         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
925         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
926         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
927         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
928         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
929         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
930         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
931         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
932         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
933         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
934         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
935         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
936         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
937         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
938         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
939         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
940         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
941         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
942         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
943         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
944         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
945         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
946         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
947         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
948         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
949         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
950         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
951         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
952         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
953         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
954         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
955         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
956         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
957         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
958         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
959         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
960         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
961         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
962         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
963         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
964         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
965         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
966         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
967         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
968         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
969         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
970         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
971         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
972         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
973         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
974         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
975         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
976         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
977         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
978         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
979         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
980         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
981         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
982         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
983         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
984         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
985         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
986         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
987         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
988         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
989         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
990         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
991         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
992         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
993         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
994         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
995         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
996         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
997         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
998         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
999         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
1000         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
1001         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
1002         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
1003         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
1004         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
1005         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
1006         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
1007         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
1008         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
1009         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
1010         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
1011         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
1012         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
1013         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
1014         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
1015         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
1016         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
1017         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
1018         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
1019         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
1020         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
1021         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
1022         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
1023         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
1024         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
1025         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
1026         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
1027         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
1028         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
1029         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
1030         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
1031         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
1032         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
1033         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
1034         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
1035         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
1036
1037         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
1038         _XOPEN_SOURCE_EXTENDED for XPG4.
1039
1040         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
1041
1042         * Makeconfig (localtime): Remove variable.
1043         (inst_localtime-file): Likewise.
1044
1045 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1046
1047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
1048         Update.
1049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1050         Update.
1051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
1052         Update.
1053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
1054         Update.
1055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
1056         Update.
1057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
1058         Update.
1059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1060         Update.
1061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
1062         Update.
1063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1064         Update.
1065
1066 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
1067
1068         [BZ #2550]
1069         [BZ #2570]
1070         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
1071         comparisons to determine direction to adjust input.
1072         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
1073         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
1074         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
1075         Likewise.
1076         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
1077         Likewise.
1078         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
1079         Likewise.
1080         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1081         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
1082         Likewise.
1083         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
1084         Likewise.
1085         * math/libm-test.inc (nexttoward_test): Add more tests.
1086
1087 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1088
1089         [BZ #14040]
1090         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
1091         in version GLIBC_2.1, not GLIBC_2.0.
1092         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
1093         Likewise.
1094
1095 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
1096
1097         [BZ #13942]
1098         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
1099         (1 - x) * (1 + x).
1100         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
1101         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
1102         * math/libm-test.inc (acos_test): Add more tests.
1103         (asin_test): Likewise.
1104         * sysdeps/i386/fpu/libm-test-ulps: Update.
1105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1106
1107         [BZ #14034]
1108         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
1109         of square root.
1110         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
1111         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
1112         * math/libm-test.inc (acos_test_tonearest): New function.
1113         (acos_test_towardzero): Likewise.
1114         (acos_test_downward): Likewise.
1115         (acos_test_upward): Likewise.
1116         (asin_test_tonearest): Likewise.
1117         (asin_test_towardzero): Likewise.
1118         (asin_test_downward): Likewise.
1119         (asin_test_upward): Likewise.
1120         (main): Call the new functions.
1121         * sysdeps/i386/fpu/libm-test-ulps: Update.
1122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1123
1124         [BZ #13884]
1125         [BZ #13924]
1126         * math/e_exp10.c: Include <float.h>.
1127         (__ieee754_exp10): Handle underflow here rather than multiplying
1128         large negative argument by M_LN10.
1129         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
1130         of __ieee754_expf.
1131         * math/e_exp10l.c: Include <float.h>.
1132         (__ieee754_exp10l): Handle underflow here rather than multiplying
1133         large negative argument by M_LN10l.
1134         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
1135         spurious overflow exception on underflow.
1136
1137 2012-04-29  Marek Polacek  <polacek@redhat.com>
1138
1139         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
1140         (__fortify_function): New macro.
1141         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
1142         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
1143         __extern_always_inline.
1144         * libio/bits/stdio2.h: Likewise.
1145         * libio/bits/stdio.h: Likewise.
1146         * string/string.h: Likewise.
1147         * string/bits/string3.h: Likewise.
1148         * include/stdio.h: Likewise.
1149         * stdlib/bits/stdlib.h: Likewise.
1150         * stdlib/stdlib.h: Likewise.
1151         * rt/bits/mqueue2.h: Likewise.
1152         * rt/mqueue.h: Likewise.
1153         * posix/bits/unistd.h: Likewise.
1154         * posix/unistd.h: Likewise.
1155         * io/bits/poll2.h: Likewise.
1156         * io/bits/fcntl2.h: Likewise.
1157         * io/fcntl.h: Likewise.
1158         * io/sys/poll.h: Likewise.
1159         * misc/bits/syslog.h: Likewise.
1160         * misc/bits/syslog-ldbl.h: Likewise.
1161         * misc/sys/syslog.h: Likewise.
1162         * socket/bits/socket2.h: Likewise.
1163         * socket/sys/socket.h: Likewise.
1164         * debug/tst-chk1.c: Likewise.
1165         * wcsmbs/bits/wchar2.h: Likewise.
1166         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1167         * wcsmbs/wchar.h: Likewise.
1168
1169 2012-04-29  Andreas Jaeger  <aj@suse.de>
1170
1171         * Makerules (tests): Remove enable-check-abi protection.
1172         (check-abi-warn): Remove.
1173         (check-abi-%): Remove check-abi-warn usage.
1174
1175         * configure.in: Remove check-abi configure option.
1176         * configure: Regenerated.
1177         * config.make.in (enable-check-abi): Remove.
1178
1179 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
1180
1181         [BZ #14033]
1182         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
1183         double functions to double *_finite functions.
1184
1185         [BZ #13941]
1186         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
1187         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
1188         LDBL_MIN_EXP.
1189         * stdio-common/Makefile (tests): Add tst-sprintf3.
1190         * stdio-common/tst-sprintf3.c: New file.
1191
1192         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
1193         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
1194
1195 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1196
1197         * conform/conformtest.pl: Remove duplicate typed-constant
1198         handling.
1199
1200 2012-04-28  David S. Miller  <davem@davemloft.net>
1201
1202         * Makerules (%.abilist): Add vpath on sysdep_dirs.
1203         (check-abi-%): Remove AWK script prerequisite and explicit
1204         abilist directory.
1205         (check-abi): Rewrite to just diff the symlist with the abilist.
1206         (config-tls, config-abi-config): Delete, no longer used.
1207         (update-abi-%): Remove AWK script and explicit abilist directory.
1208         (update-abi): Rewrite to simply compare and conditionally copy the
1209         symlist and the sysdep abilist file.  Remove update-abi-config
1210         checks.
1211         * abilist/ld.abilist: Remove.
1212         * abilist/libBrokenLocale.abilist: Remove.
1213         * abilist/libanl.abilist: Remove.
1214         * abilist/libcrypt.abilist: Remove.
1215         * abilist/libdl.abilist: Remove.
1216         * abilist/librt.abilist: Remove.
1217         * abilist/libthread_db.abilist: Remove.
1218         * abilist/libutil.abilist: Remove.
1219         * scripts/extract-abilist.awk: Remove.
1220         * scripts/merge-abilist.awk: Remove.
1221         * sysdeps/generic/libcidn.abilist: New file.
1222         * sysdeps/generic/libnss_compat.abilist: New file.
1223         * sysdeps/generic/libnss_db.abilist: New file.
1224         * sysdeps/generic/libnss_dns.abilist: New file.
1225         * sysdeps/generic/libnss_files.abilist: New file.
1226         * sysdeps/generic/libnss_hesiod.abilist: New file.
1227         * sysdeps/generic/libnss_nis.abilist: New file.
1228         * sysdeps/generic/libnss_nisplus.abilist: New file.
1229         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
1230         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
1231         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
1232         file.
1233         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
1234         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
1235         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
1236         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
1237         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
1238         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
1239         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
1240         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
1241         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
1242         file.
1243         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
1244         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
1245         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
1246         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
1247         file.
1248         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
1249         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
1250         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
1251         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
1252         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
1253         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
1254         file.
1255         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
1256         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
1257         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
1258         file.
1259         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
1260         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
1261         New file.
1262         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
1263         New file.
1264         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
1265         New file.
1266         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
1267         New file.
1268         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
1269         New file.
1270         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
1271         New file.
1272         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
1273         New file.
1274         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
1275         New file.
1276         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
1277         New file.
1278         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
1279         New file.
1280         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
1281         New file.
1282         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
1283         New file.
1284         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
1285         New file.
1286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
1287         file.
1288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
1289         New file.
1290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
1291         New file.
1292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
1293         file.
1294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
1295         New file.
1296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
1297         New file.
1298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
1299         file.
1300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
1301         New file.
1302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1303         New file.
1304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
1305         New file.
1306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
1307         New file.
1308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
1309         New file.
1310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
1311         New file.
1312         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
1313         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
1314         file.
1315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
1316         New file.
1317         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
1318         file.
1319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
1320         file.
1321         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
1322         file.
1323         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
1324         file.
1325         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
1326         file.
1327         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1328         New file.
1329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
1330         file.
1331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
1332         file.
1333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
1334         New file.
1335         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
1336         file.
1337         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
1338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
1339         file.
1340         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
1341         New file.
1342         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
1343         file.
1344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
1345         file.
1346         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
1347         file.
1348         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
1349         file.
1350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
1351         file.
1352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1353         New file.
1354         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
1355         file.
1356         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
1357         file.
1358         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
1359         New file.
1360         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
1361         file.
1362         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1363         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
1364         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
1365         file.
1366         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
1367         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
1368         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
1369         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
1370         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
1371         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
1372         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
1373         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
1374         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
1375         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
1376         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
1377         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
1378         file.
1379         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
1380         New file.
1381         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
1382         file.
1383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
1384         file.
1385         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
1386         file.
1387         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
1388         file.
1389         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
1390         file.
1391         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1392         New file.
1393         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
1394         New file.
1395         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
1396         file.
1397         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
1398         New file.
1399         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
1400         file.
1401         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
1402         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
1403         file.
1404         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
1405         New file.
1406         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
1407         file.
1408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
1409         file.
1410         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
1411         file.
1412         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
1413         file.
1414         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
1415         file.
1416         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1417         New file.
1418         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
1419         New file.
1420         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
1421         file.
1422         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
1423         New file.
1424         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
1425         file.
1426
1427 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1428
1429         * conform/conformtest.pl: Fix typo in handling typed-constant from
1430         allow-header.
1431
1432 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1433
1434         * README: Cut down references to pre-2.6 Linux kernels and
1435         Linuxthreads.  Update lists of configurations in libc and ports
1436         and sort alphabetically.  Say "or newer" with Linux kernel version
1437         requirements.
1438
1439         * config.h.in [IS_IN_build]: Allow compiling without optimization.
1440
1441 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1442
1443         [BZ #887]
1444         * math/libm-test.inc (logb_test_downward): New test to expose
1445         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
1446         rounding mode.
1447
1448 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1449
1450         [BZ #14027]
1451         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
1452         to be done.
1453         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
1454         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
1455
1456 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
1457
1458         * sysdeps/unix/i386/brk.S: Remove file.
1459         * sysdeps/unix/i386/dl-brk.S: Likewise.
1460         * sysdeps/unix/i386/pipe.S: Likewise.
1461         * sysdeps/unix/i386/sigreturn.S: Likewise.
1462         * sysdeps/unix/i386/syscall.S: Likewise.
1463         * sysdeps/unix/i386/vfork.S: Likewise.
1464         * sysdeps/unix/i386/wait.S: Likewise.
1465
1466         * sysdeps/unix/common/tcsendbrk.c: Move to ...
1467         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
1468
1469         * configure.in (arm*-none*): Do not allow without
1470         --enable-hacker-mode.
1471         (netbsd*): Remove case setting base_os.
1472         (386bsd*): Likewise.
1473         (freebsd*): Likewise.
1474         (bsdi*): Likewise.
1475         (osf*): Likewise.
1476         (sunos*): Likewise.
1477         (ultrix*): Likewise.
1478         (newsos*): Likewise.
1479         (dynix*): Likewise.
1480         (*bsd*): Likewise.
1481         (sysv*): Likewise.
1482         (isc*): Likewise.
1483         (esix*): Likewise.
1484         (sco*): Likewise.
1485         (minix*): Likewise.
1486         (irix4*): Likewise.
1487         (irix6*): Likewise.
1488         (solaris[2-9]*): Likewise.
1489         (none): Likewise.
1490         * configure: Regenerated.
1491
1492 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1493
1494         [BZ #11521]
1495         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
1496         overflow or cancellation in calculating denominator.
1497         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
1498         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
1499         down expression to avoid unexpected rounding in newer GCCs.
1500         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
1501
1502 2012-04-26  David S. Miller  <davem@davemloft.net>
1503
1504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
1505         long-double compat symbols.
1506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
1510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
1512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
1513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
1514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
1515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
1516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
1517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
1518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
1519
1520 2012-04-25  David S. Miller  <davem@davemloft.net>
1521
1522         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
1523         HWCAP_* values only after the memory barriers have been defined.
1524         (atomic_full_barrier): Define.
1525         (atomic_read_barrier): Define.
1526         (atomic_write_barrier): Define.
1527
1528 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1529
1530         * shlib-versions: Add libgcc_s version information.
1531         * sysdeps/generic/libgcc_s.h: Remove.
1532         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
1533         libgcc_s.h.
1534         * sysdeps/gnu/unwind-resume.c: Likewise.
1535         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
1536
1537 2012-04-25  David S. Miller  <davem@davemloft.net>
1538
1539         * sysdeps/unix/sparc/brk.S: Delete.
1540         * sysdeps/unix/sparc/dl-brk.S: Delete.
1541         * sysdeps/unix/sparc/pipe.S: Delete.
1542         * sysdeps/unix/sparc/sysdep.S: Delete.
1543         * sysdeps/unix/sparc/sysdep.h: Delete.
1544         * sysdeps/unix/sparc/vfork.S: Delete.
1545         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
1546         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
1547         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
1548         ret_ERRVAL, r0, r1, MOVE): Define.
1549         (JUMPTARGET): Remove.
1550         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
1551         sysdeps/unix/sparc/sysdep.h
1552         (ENTRY, END): Remove.
1553         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1554
1555 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
1556
1557         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
1558         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
1559         -DIS_IN_build.
1560
1561         * timezone/README: Update upstream location and email address for
1562         tzcode and tzdata.
1563         * timezone/zdump.c: Update from tzcode 2012b.
1564         * timezone/zic.c: Likewise.
1565
1566         * configure.in (libc_cv_as_needed): Remove test.
1567         * configure: Regenerated.
1568         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
1569         conditional definition.
1570         [$(have-as-needed) != yes] (no-as-needed): Likewise.
1571         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
1572         * config.make.in (have-as-needed): Remove variable.
1573
1574 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1575             Paul Pluzhnikov  <ppluzhnikov@google.com>
1576
1577         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
1578         strings correctly.
1579
1580 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
1581
1582         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
1583         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
1584         * sysdeps/sh/strlen.S: Likewise.
1585
1586 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1587
1588         * sysdeps/unix/fork.S: Remove file.
1589         * sysdeps/unix/i386/fork.S: Likewise.
1590         * sysdeps/unix/sparc/fork.S: Likewise.
1591
1592         * sysdeps/unix/system.c: Remove file.
1593         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
1594
1595         * sysdeps/unix/getegid.S: Remove file.
1596         * sysdeps/unix/geteuid.S: Likewise.
1597
1598 2012-04-24  Roland McGrath  <roland@hack.frob.com>
1599
1600         * scripts/check-localplt.awk: New file.
1601         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
1602         of diff.
1603         * scripts/data/localplt-generic.data: Add a comment.
1604
1605         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
1606         NODE when __dir_mkfile failed.
1607         * sysdeps/mach/hurd/symlinkat.c: Likewise.
1608         Reported by Ludovic Courtès <ludo@gnu.org>.
1609
1610 2012-04-24  Andreas Jaeger  <aj@suse.de>
1611
1612         * Makerules (common-clean): Also remove gen-as-const-headers
1613         files.
1614
1615 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1616
1617         * Makerules (native-compile): Do not change working directory for
1618         build.  Use $(OUTPUT_OPTION) in command.
1619         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
1620
1621 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1622
1623         [BZ #13886]
1624         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
1625         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
1626         * math/libm-test.inc (floor_test): Add more tests.
1627         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
1628
1629 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1630
1631         * sysdeps/unix/getdents.c: Remove file.
1632         * sysdeps/unix/sysv/getdents.c: Likewise.
1633         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
1634
1635         * sysdeps/unix/syscalls.list (madvise): Add syscall from
1636         sysdeps/unix/mman/syscalls.list.
1637         (mmap): Likewise.
1638         (mprotect): Likewise.
1639         (msync): Likewise.
1640         (munmap): Likewise.
1641         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
1642         * sysdeps/unix/mman/syscalls.list: Remove.
1643         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
1644
1645         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
1646         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
1647         * configure: Regenerated.
1648         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
1649         $(libgcc_s_suffix).
1650         * config.make.in (libgcc_s_suffix): Remove variable.
1651
1652 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
1653
1654         * sysdeps/unix/sysv/gethostname.c: Move to ...
1655         * sysdeps/posix/gethostname.c: ... here.
1656
1657         * sysdeps/unix/execve.S: Remove file.
1658
1659         * sysdeps/unix/_exit.S: Remove file.
1660
1661 2012-04-23  Andreas Jaeger  <aj@suse.de>
1662
1663         [BZ #13739]
1664         * manual/Makefile: Remove make dist support, there's no
1665         need for a stand-alone documentation tar ball.
1666         (TEXI2DVI): Define always, it's not in Makeconfig.
1667         (dist): Removed.
1668         (tar-it): Removed.
1669         (edition): Removed.
1670         (glibc-doc-$(edition).tar): Removed
1671         (%.Z): Removed.
1672         (%.gz): Removed.
1673         (%.uu): Removed.
1674         (ETAGS): Remove, it's in Makeconfig.
1675         (move-if-change): Remove, it's in Makeconfig.
1676
1677 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1678
1679         [BZ #13970]
1680         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
1681         (strtod, strtof, strtold, strtol, strtoul, strtoq)
1682         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
1683         (strtod_l, strtof_l, strtold_l): Remove __wur.
1684         It is not necessarily an error to ignore strtol's return value.
1685         One can reliably look at the stored endptr to decide whether
1686         the number had valid syntax.
1687
1688 2012-04-21  Andreas Jaeger  <aj@suse.de>
1689
1690         [BZ #13739]
1691         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
1692
1693 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
1694
1695         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
1696         * sysdeps/unix/sysv/Versions: Remove file.
1697
1698 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1699
1700         [BZ #13927]
1701         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1702
1703 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
1704
1705         [BZ #7064]
1706         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
1707         version from __vm86.
1708
1709 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
1710
1711         * sysdeps/unix/common/lxstat.c: Remove file.
1712         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
1713
1714         * sysdeps/unix/sysv/Makefile: Remove file.
1715
1716         * sysdeps/unix/sysv/direct.h: Remove file.
1717
1718         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
1719         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
1720         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
1721         * sysdeps/unix/sysv/bits/signum.h: Likewise.
1722         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1723         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
1724         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
1725
1726         * sysdeps/unix/sysv/setrlimit.c: Remove file.
1727
1728         * sysdeps/unix/xmknod.c: Remove file.
1729         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
1730
1731         * sysdeps/unix/sysv/settimeofday.c: Remove file.
1732
1733         * sysdeps/unix/sysv/i386/time.S: Remove file.
1734
1735         * sysdeps/unix/fxstat.c: Remove file.
1736         * sysdeps/unix/xstat.c: Likewise.
1737         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
1738
1739         * sysdeps/unix/sysv/sigaction.c: Remove file.
1740
1741         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
1742         (sysdep_headers): Remove variable.
1743         [termio.h not in sysdep_headers] (generated): Likewise.
1744         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
1745         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
1746         * sysdeps/unix/sysv/tcdrain.c: Likewise.
1747         * sysdeps/unix/sysv/tcflow.c: Likewise.
1748         * sysdeps/unix/sysv/tcflush.c: Likewise.
1749         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
1750         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
1751         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
1752         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
1753         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
1754
1755         * sysdeps/unix/siglist.c: Remove file.
1756
1757         * sysdeps/unix/getppid.S: Remove file.
1758
1759         * sysdeps/unix/mkdir.c: Remove file.
1760         * sysdeps/unix/rmdir.c: Likewise.
1761
1762 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1763
1764         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
1765         ERR_MAX value.
1766         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
1767         errlist-compat value.
1768
1769 2012-04-18  David S. Miller  <davem@davemloft.net>
1770
1771         * sysdeps/generic/memcopy.h (reg_char): Delete.
1772         * debug/strcat_chk.c: Use char, not reg_char.
1773         * debug/strcpy_chk.c: Likewise.
1774         * debug/strncat_chk.c: Likewise.
1775         * debug/strncpy_chk.c: Likewise.
1776         * string/memchr.c: Likewise.
1777         * string/memrchr.c: Likewise.
1778         * string/rawmemchr.c: Likewise.
1779         * string/strcat.c: Likewise.
1780         * string/strchr.c: Likewise.
1781         * string/strchrnul.c: Likewise.
1782         * string/strcmp.c: Likewise.
1783         * string/strcpy.c: Likewise.
1784         * string/strncat.c: Likewise.
1785         * string/strncmp.c: Likewise.
1786         * string/strncpy.c: Likewise.
1787
1788 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1789
1790         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
1791         __builtin_memcopy is called when src and dest ranges are known to not
1792         overlap.
1793
1794 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1795
1796         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
1797         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
1798         fwd_align_merge macro call.
1799         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
1800         bwd_align_merge macro call.
1801         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1802
1803 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1804
1805         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
1806         bwd_align_merge macros.
1807         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
1808         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
1809         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1810
1811 2012-04-18  David S. Miller  <davem@davemloft.net>
1812
1813         * sysdeps/sparc/sparc64/memcopy.h: Delete.
1814
1815 2012-04-18  Andreas Jaeger  <aj@suse.de>
1816
1817         [BZ# 6794]
1818         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
1819         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
1820         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1821
1822         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
1823         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
1824         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1825
1826         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
1827         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
1828         Adjust for changed ldbl-128 files.
1829
1830         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
1831         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
1832         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1833
1834 2012-04-17  David S. Miller  <davem@davemloft.net>
1835
1836         * sysdeps/sparc/sparc32/memcopy.h: Delete.
1837
1838 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
1839
1840         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
1841         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
1842         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
1843         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
1844         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
1845         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
1846
1847 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1848
1849         [BZ #6794]
1850         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
1851         * math/libm-test.inc: Add ilogb errno and exception tests.
1852         * math/w_ilogb.c: New file: ilogb wrapper.
1853         * math/w_ilogbf.c: New file: ilogbf wrapper.
1854         * math/w_ilogbl.c: New file: ilogbl wrapper.
1855         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
1856         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
1857         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
1858         exception being thrown with 0.0 as argument.
1859         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
1860         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
1861         exception being thrown with 0.0 as argument.
1862         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
1863         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1864         exception being thrown with 0.0 as argument.
1865         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
1866         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1867         exception being thrown with 0.0 as argument.
1868         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
1869         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
1870         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
1871         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
1872         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
1873         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
1874         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
1875         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
1876         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
1877
1878 2012-04-17  Petr Baudis  <pasky@ucw.cz>
1879
1880         * include/sys/uio.h: Change __vector to __iovec to avoid clash
1881         with altivec.
1882
1883 2012-04-16  Marek Polacek  <polacek@redhat.com>
1884
1885         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
1886
1887 2012-04-16  Marek Polacek  <polacek@redhat.com>
1888
1889         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
1890         operands of fdivp instruction.
1891
1892 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1893
1894         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
1895         * elf/tst-auditmod3b.c: Likewise.
1896         * elf/tst-auditmod4b.c: Likewise.
1897         * elf/tst-auditmod5b.c: Likewise.
1898         * elf/tst-auditmod6b.c: Likewise.
1899         * elf/tst-auditmod6c.c: Likewise.
1900         * elf/tst-auditmod7b.c: Likewise.
1901         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
1902         * sysdeps/x86_64/preconfigure.in: Likewise.
1903         * sysdeps/x86_64/preconfigure: Regenerated.
1904
1905 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1906
1907         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
1908         __ILP32__.
1909
1910 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
1911
1912         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1913         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
1914
1915 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
1916
1917         [BZ #13973]
1918         * locale/iso-639.def: Fix gl language name. Spotted by
1919         Yaron Shahrabani.
1920
1921 2012-04-12  Roland McGrath  <roland@hack.frob.com>
1922
1923         [BZ #2074]
1924         * libio/libio.h (__io_write_fn): Update comment.
1925
1926 2012-04-12  Petr Baudis  <pasky@ucw.cz>
1927
1928         [BZ #2074]
1929         * stdio.texi (Hook Functions): The user provided writer function
1930         is not allowed to return -1.
1931
1932 2012-04-11  David S. Miller  <davem@davemloft.net>
1933
1934         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1935
1936 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
1937
1938         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
1939         Add a leading slash to rtkaio.
1940
1941 2012-04-11  Jim Meyering  <meyering@redhat.com>
1942
1943         [BZ #11959]
1944         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
1945         It is not necessarily an error to ignore fwrite's return
1946         value.  One can reliably use ferror to test for errors after
1947         the fact.
1948
1949 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1950
1951         * bits/types.h (__snseconds_t): New type.
1952         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
1953
1954         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
1955         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1956         (__SNSECONDS_T_TYPE): Likewise.
1957         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1958         (__SNSECONDS_T_TYPE): Likewise.
1959         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1960         (__SNSECONDS_T_TYPE): Likewise.
1961
1962 2012-04-10  Andreas Jaeger  <aj@suse.de>
1963
1964         [BZ #2636]
1965         * manual/time.texi (Processor Time): Return type of times is
1966         elapsed real time since an arbitrary point in the past.
1967         (CPU Time): Move CLK_TCK from here...
1968         (Processor Time): ...to here.  Correct description.
1969         * manual/conf.texi (Constants for Sysconf): Correct description of
1970         _SC_CLK_TCK.
1971
1972 2012-04-10  David S. Miller  <davem@davemloft.net>
1973
1974         [BZ #13967]
1975         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
1976         where the is a gap between DT_REL(A) and DT_JMPREL.
1977
1978 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1979
1980         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
1981         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1982         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1983
1984 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1985
1986         * elf/dl-support.c (_dl_inhibit_cache): New variable.
1987         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
1988         (dl_main): Handle --inhibit-cache.
1989         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
1990         _dl_inhibit_cache.
1991         * elf/dl-load.c (_dl_map_object): Use it.
1992         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
1993
1994 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1995
1996         [BZ #13872]
1997         * sysdeps/i386/fpu/e_powl.S (p78): New object.
1998         (__ieee754_powl): Saturate large exponents rather than testing for
1999         overflow of y*log2(x).
2000         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2001         * math/libm-test.inc (pow_test): Do not permit spurious overflow
2002         exceptions.
2003
2004         [BZ #11521]
2005         * math/s_ctan.c: Include <float.h>.
2006         (__ctan): Avoid internal overflow or cancellation in calculating
2007         denominator.
2008         * math/s_ctanf.c: Likewise.
2009         * math/s_ctanl.c: Likewise.
2010         * math/s_ctanh.c: Likewise.
2011         * math/s_ctanhf.c: Likewise.
2012         * math/s_ctanhl.c: Likewise.
2013         * math/libm-test.inc (ctan_test): Add more tests.
2014         (ctanh_test): Likewise.
2015         * sysdeps/i386/fpu/libm-test-ulps: Update.
2016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2017
2018 2012-04-09  Andreas Jaeger  <aj@suse.de>
2019
2020         [BZ #6894]
2021         * manual/filesys.texi (Directory Entries): Mention that d_namlen
2022         is an optional BSD extension.
2023
2024         [BZ #10254]
2025         * manual/stdio.texi (Opening Streams): Document additional fopen
2026         parameters.
2027
2028 2012-04-09  Roland McGrath  <roland@hack.frob.com>
2029
2030         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
2031         %eax without telling the compiler.
2032
2033 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
2034
2035         [BZ # 13963]
2036         * manual/install.texi: Use sourceware.org.
2037
2038 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
2039
2040         [BZ #13873]
2041         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
2042         (__ieee754_pow): Generate overflow and underflow using huge*huge
2043         and tiny*tiny rather than just returning constant infinity or zero
2044         for large exponents.
2045         * math/libm-test.inc (pow_test): Require overflow exceptions for
2046         applicable cases of large exponents.
2047
2048         [BZ #706]
2049         * sysdeps/i386/fpu/e_pow.S (p10): New object.
2050         (__ieee754_pow): Use iterative multiplication algorithm only for
2051         integer exponents with absolute value below 1024.  Check for odd
2052         integer exponents when using algorithm for real exponents.
2053         * math/libm-test.inc (pow_test): Add more tests.
2054         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2055
2056 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
2057
2058         [BZ #13705]
2059         * math/libm-test.inc (exp_test): Do not allow overflow exception
2060         on underflow test.
2061
2062 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
2063
2064         [BZ #13705]
2065         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
2066         instead of __kernel_standard_f.
2067
2068 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
2069
2070         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
2071         * sysdeps/x86_64/memset_chk.S: Likewise.
2072
2073 2012-04-08  Andreas Jaeger  <aj@suse.de>
2074
2075         [BZ #10153]
2076         * manual/startup.texi (Environment Access): Describe return value
2077         for putenv and setenv.
2078
2079         [BZ #6895]
2080         * manual/filesys.texi (Directory Entries): Add description for
2081         DT_LNK.
2082
2083         [BZ #6890]
2084         * manual/filesys.texi (Directory Entries): Clarify that it's file
2085         system not operating system in the description of DT_UNKNOWN.
2086
2087         [BZ #6578]
2088         * manual/syslog.texi (closelog): Fix reference, it's openlog.
2089
2090 2012-04-08  Stephen Compall  <s11@member.fsf.org>
2091
2092         [BZ #6649]
2093         * manual/llio.texi (Opening and Closing Files): Add cross
2094         reference to explain mode argument.
2095
2096 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
2097
2098         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
2099         * sysdeps/x86_64/memset_chk.S: Likewise.
2100
2101 2012-04-07  David S. Miller  <davem@davemloft.net>
2102
2103         * elf/elf.h (R_SPARC_WDISP10): Define.
2104         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
2105         R_SPARC_SIZE32.
2106         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
2107         R_SPARC_SIZE64 and R_SPARC_H34.
2108
2109 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
2110
2111         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
2112         conditions and remove no longer applicable assertion.
2113
2114 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2115
2116         * bits/byteswap.h: Include <features.h>.
2117         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
2118         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
2119
2120 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2121
2122         * bits/byteswap.h (__bswap_16): Removed.
2123         Include <bits/byteswap-16.h> to get __bswap_16.
2124         * sysdeps/i386/bits/byteswap.h: Likewise.
2125         * sysdeps/s390/bits/byteswap.h: Likewise.
2126         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2127         * bits/byteswap-16.h: New file.
2128         * sysdeps/i386/bits/byteswap-16.h: Likewise.
2129         * sysdeps/s390/bits/byteswap-16.h: Likewise.
2130         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
2131         * string/Makefile (headers): Add bits/byteswap-16.h.
2132
2133 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2134
2135         [BZ #13895]
2136         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
2137         extra indirection.
2138         * nss/Makefile (tests-static, tests): Add tst-nss-static.
2139         * nss/tst-nss-static.c: New.
2140
2141 2012-04-06  Robert Millan  <rmh@gnu.org>
2142
2143         [BZ #6486]
2144         * manual/llio.texi (File Position Primitive): lseek
2145         refers to WHENCE when it really means OFFSET.
2146
2147 2012-04-06  Andreas Jaeger  <aj@suse.de>
2148
2149         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
2150         strncmp declarations.
2151
2152         * abilist/libc.abilist: Add __poll and __ppoll.
2153
2154 2012-04-05  David S. Miller  <davem@davemloft.net>
2155
2156         * scripts/check-local-headers.sh: Accept a host triplet in the
2157         path matched by the exclude regexp.
2158
2159         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
2160         definition.
2161         * sysdeps/powerpc/powerpc32/dl-machine.h
2162         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
2163         * sysdeps/s390/s390-32/dl-machine.h
2164         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2165         * sysdeps/sparc/sparc32/dl-machine.h
2166         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2167         * sysdeps/sparc/sparc64/dl-machine.h
2168         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2169
2170         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
2171         lazy binding.
2172         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
2173         undefined symbol errors.
2174
2175         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
2176         DT_NEEDED entries.
2177
2178 2012-04-05  Michael Matz  <matz@suse.de>
2179
2180         [BZ #13592]
2181         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
2182
2183 2012-04-05  Andreas Jaeger  <aj@suse.de>
2184
2185         [BZ #13908]
2186         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
2187         comment.
2188
2189 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2190
2191         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
2192         which ROUND is no valid rounding mode.
2193
2194 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2195
2196         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
2197         read again.
2198         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
2199
2200 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2201
2202         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
2203         an exception using FPU order intentionally.
2204
2205 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2206
2207         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
2208         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
2209         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
2210         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
2211
2212 2012-04-05  Simon Josefsson  <simon@josefsson.org>
2213
2214         [BZ #12340]
2215         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
2216         EINVAL when BUFLEN is too smal.
2217
2218 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
2219
2220         [BZ #13553]
2221         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
2222         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
2223
2224 2012-04-03  Andreas Jaeger  <aj@suse.de>
2225
2226         [BZ #13938]
2227         * manual/setjmp.texi (System V contexts): Fix sentence.
2228
2229         [BZ #13926]
2230         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
2231         New macro for this case.
2232         [!__GNUC__] (__bswap_64): New inline function for this case.
2233         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2234         * bits/byteswap.h: Likewise.
2235         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
2236         ull, guard with __GLIBC_HAVE_LONG_LONG.
2237
2238         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
2239         __GLIBC_HAVE_LONG_LONG.
2240
2241         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
2242         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
2243
2244 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2245
2246         [BZ #13691]
2247         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
2248         inptr and inend, rather than using last_ch.
2249
2250 2012-04-02  David S. Miller  <davem@davemloft.net>
2251
2252         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
2253         * stdio-common/printf-parse.h (read_int): Change return type to
2254         'int', return -1 on INT_MAX overflow.
2255         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
2256         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
2257         overflows INT_MAX.  Check for overflow of in-format-string precision
2258         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
2259         SIZE_MAX not INT_MAX for integer overflow test.
2260         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
2261         skip the construct in the format string but do not record anything.
2262         * stdio-common/bug22.c: Adjust to test both width/prevision
2263         INT_MAX overflow as well as total length INT_MAX overflow.  Check
2264         explicitly for proper errno values.
2265
2266 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2267
2268         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
2269         CHAR_MAX.
2270         * string/test-strcmp.c [! WIDE]: Likewise.
2271         * time/tst-mktime2.c: Likewise for INT_MAX.
2272         * string/test-string.h: #include <sys/param.h> for MIN.
2273
2274         * csu/init-first.c (__libc_init_first): Call __ctype_init.
2275         * sysdeps/i386/init-first.c (init): Likewise.
2276         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
2277         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
2278         * sysdeps/sh/init-first.c (init): Likewise.
2279
2280 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
2281
2282         * po/ru.po: Update from translation team.
2283         * po/vi.po: Likewise.
2284
2285 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2286
2287         * resolv/nss_dns/dns-host.c: Merge copyright years.
2288
2289 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2290
2291         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
2292         Optimize memcpy with prefetch if
2293         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
2294         src, dst pointers have unequal 16 byte alignments.
2295
2296 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2297
2298         [BZ #13928]
2299         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
2300         from a CNAME entry and return the minimum ttl for the query.
2301         (gaih_getanswer_slice): Likewise.
2302
2303 2012-03-30  Jeff Law  <law@redhat.com>
2304
2305         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
2306         due to long keys.
2307         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
2308         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
2309
2310         * resolv/nss_dns/dns-host.c: Update copyright year.
2311
2312 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
2313
2314         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
2315         requests to save a system call.  Fix check that all bytes are sent.
2316
2317         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
2318         comments for sendmmsg.
2319
2320 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2321
2322         [BZ #13691]
2323         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
2324         with only 1 character between 0x0041 and 0x01b0.
2325         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
2326         * wcsmbs/tst-mbsnrtowcs.c: New file.
2327
2328 2012-03-29  David S. Miller  <davem@davemloft.net>
2329
2330         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
2331         small copies by hand.
2332
2333 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2334
2335         [BZ #13761]
2336         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
2337         _nss_compat_initgroups_dyn): Fall back to malloc/free
2338         for large group memberships.
2339
2340 2012-03-28  David S. Miller  <davem@davemloft.net>
2341
2342         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
2343         that branches into memcpy.
2344         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2345         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
2346         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2347         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
2348         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
2349         bits.
2350         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
2351         implementation too.
2352         * sysdeps/sparc/mempcpy.S: New file.
2353
2354         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
2355         the IFUNC routine in the libc case.
2356         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2357
2358         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
2359         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
2360         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
2361         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
2362         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
2363         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
2364         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
2365         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
2366
2367         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
2368         loop to 256 bytes instead of 64 bytes and fix test signedness.
2369
2370         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
2371         * sysdeps/sparc/sparc32/Makefile: rather than here...
2372         * sysdeps/sparc/sparc64/Makefile: and here.
2373
2374 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
2375
2376         * malloc/mallocbug.c: Avoid warnings about unused variables.
2377
2378 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2379
2380         [BZ #13760]
2381         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
2382         in the right place. Discard and retry query if response is
2383         larger than input buffer size.
2384
2385 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
2386
2387         [BZ #369]
2388         [BZ #2678]
2389         [BZ #3866]
2390         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
2391         x for large integer exponent.
2392         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2393         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
2394         sign of result as needed afterwards.
2395         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2396         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
2397         result for underflowing pow the same as for overflow.
2398         (__kernel_standard_l): Handle powl overflow and underflow here
2399         rather than calling __kernel_standard.
2400         * math/libm-test.inc (pow_test): Add more tests.
2401
2402         [BZ #3868]
2403         [BZ #13879]
2404         [BZ #13910]
2405         [BZ #13911]
2406         [BZ #13912]
2407         [BZ #13913]
2408         [BZ #13915]
2409         [BZ #13916]
2410         [BZ #13917]
2411         [BZ #13918]
2412         [BZ #13919]
2413         [BZ #13920]
2414         [BZ #13921]
2415         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
2416         * sysdeps/ieee754/k_standard.c: Include <float.h>.
2417         (__kernel_standard_l): New function.
2418         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
2419         __kernel_standard.
2420         * math/w_acosl.c (__acosl): Likewise.
2421         * math/w_asinl.c (__asinl): Likewise.
2422         * math/w_atan2l.c (__atan2l): Likewise.
2423         * math/w_atanhl.c (__atanhl): Likewise.
2424         * math/w_coshl.c (__coshl): Likewise.
2425         * math/w_exp10l.c (__exp10l): Likewise.
2426         * math/w_exp2l.c (__exp2l): Likewise.
2427         * math/w_fmodl.c (__fmodl): Likewise.
2428         * math/w_hypotl.c (__hypotl): Likewise.
2429         * math/w_j0l.c (__j0l, __y0l): Likewise.
2430         * math/w_j1l.c (__j1l, __y1l): Likewise.
2431         * math/w_jnl.c (__jnl, __ynl): Likewise.
2432         * math/w_lgammal.c (__lgammal): Likewise.
2433         * math/w_log10l.c (__log10l): Likewise.
2434         * math/w_log2l.c (__log2l): Likewise.
2435         * math/w_logl.c (__logl): Likewise.
2436         * math/w_powl.c (__powl): Likewise.
2437         * math/w_remainderl.c (__remainderl): Likewise.
2438         * math/w_scalbl.c (sysv_scalbl): Likewise.
2439         * math/w_sinhl.c (__sinhl): Likewise.
2440         * math/w_sqrtl.c (__sqrtl): Likewise.
2441         * math/w_tgammal.c (__tgammal): Likewise.
2442         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
2443         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
2444         * math/libm-test.inc (acos_test): Add more tests.
2445         (acosh_test): Likewise.
2446         (asin_test): Likewise.
2447         (atanh_test): Likewise.
2448         (exp_test): Likewise.
2449         (exp10_test): Likewise.
2450         (exp2_test): Likewise.
2451         (expm1_test): Likewise.
2452         (lgamma_test): Likewise.
2453         (log_test): Likewise.
2454         (log10_test): Likewise.
2455         (log1p_test): Likewise.
2456         (log2_test): Likewise.
2457         (pow_test): Do not allow some spurious overflow exceptions.
2458         (sqrt_test): Add more tests.
2459         (tgamma_test): Likewise.
2460         (y0_test): Likewise.
2461         (y1_test): Likewise.
2462         (yn_test): Likewise.
2463
2464 2012-03-27  Anton Blanchard  <anton@samba.org>
2465
2466         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
2467         MAP_HUGETLB.
2468         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2469         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2470         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2471
2472 2012-03-27  David S. Miller  <davem@davemloft.net>
2473
2474         * conform/Makefile: Run run-conformtest.sh using $(BASH).
2475
2476         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
2477         have-as-vis3 check.
2478
2479 2012-03-27  Andreas Jaeger  <aj@suse.de>
2480
2481         * sysdeps/x86_64/elf/configure.in: Moved to ...
2482         * sysdeps/x86_64/configure.in: ... here.
2483         * sysdeps/x86_64/elf/start.S: Moved to ...
2484         * sysdeps/x86_64/start.S: ... here.
2485         * sysdeps/x86_64/elf/configure: Delete.
2486
2487         * sysdeps/x86_64/configure.in: Merge contents from
2488         sysdeps/i386/configure.in (without i686 check).
2489
2490         * sysdeps/i386/elf/Versions: Merge into ...
2491         * sysdeps/i386/Versions: ... this.
2492         * sysdeps/i386/elf/Versions: Delete file.
2493         * sysdeps/i386/elf/start.S: Moved to ...
2494         * sysdeps/i386/start.S: ...here.
2495         * sysdeps/i386/elf/configure.in: Merge into...
2496         * sysdeps/i386/configure.in: ...here.
2497         * sysdeps/i386/elf/configure.in: Delete file.
2498         * sysdeps/i386/elf/configure: Delete file.
2499
2500         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
2501         * debug/backtracesyms.c: ... here.
2502         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
2503         * debug/backtracesymsfd.c: ... here.
2504         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
2505         * sysdeps/generic/ifunc-sel.h: ... here.
2506
2507         * sysdeps/unix/i386/start.c: Delete file.
2508         * sysdeps/unix/sparc/start.c: Delete file.
2509         * sysdeps/unix/start.c: Delete file.
2510
2511         * sysdeps/sh/elf/configure.in: Moved to ...
2512         * sysdeps/sh/configure.in: ... here.
2513         * sysdeps/sh/elf/start.S: Moved to ...
2514         * sysdeps/sh/start.S: ... here.
2515         * sysdeps/sh/elf/configure: Delete file.
2516
2517         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
2518         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
2519         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
2520         * sysdeps/powerpc/powerpc64/entry.h: ... here.
2521         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
2522         * sysdeps/powerpc/powerpc64/start.S: here.
2523         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
2524         * sysdeps/powerpc/powerpc64/Makefile: ... this.
2525         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
2526         * sysdeps/powerpc/powerpc64/configure.in: ... this.
2527         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
2528
2529         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
2530         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
2531         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
2532         * sysdeps/powerpc/powerpc32/start.S: ... here.
2533         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
2534         * sysdeps/powerpc/powerpc32/configure.in: ... this.
2535         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
2536
2537         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
2538         * sysdeps/powerpc/ifunc-sel.h: ... here.
2539         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
2540         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
2541
2542         * sysdeps/sparc/elf/configure.in: Moved to ...
2543         * sysdeps/sparc/configure.in: ... here.
2544         * sysdeps/sparc/elf/configure: Delete file.
2545         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
2546         * sysdeps/sparc/sparc32/start.S: ... here.
2547         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
2548         * sysdeps/sparc/sparc64/start.S: ... here.
2549         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
2550         * sysdeps/sparc/sparc32/Makefile: ... this.
2551         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
2552         * sysdeps/sparc/sparc64/Makefile: ... this.
2553
2554         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
2555         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
2556         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
2557         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
2558         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
2559         * sysdeps/s390/s390-32/setjmp.S: ... here.
2560         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
2561         * sysdeps/s390/s390-32/configure.in: ... here.
2562         * sysdeps/s390/s390-32/elf/configure: Delete file.
2563         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
2564         * sysdeps/s390/s390-32/start.S: ... here.
2565
2566         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
2567         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
2568         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
2569         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
2570         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
2571         * sysdeps/s390/s390-64/setjmp.S: ... here.
2572         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
2573         * sysdeps/s390/s390-64/configure.in: ... here
2574         * sysdeps/s390/s390-64/elf/configure: Delete file.
2575         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
2576         * sysdeps/s390/s390-64/start.S: ... here.
2577         * sysdeps/s390/s390-64/elf/configure: Delete.
2578
2579         * configure.in: Remove support for elf directories in sysdeps.
2580
2581         * configure: Regenerated.
2582         * sysdeps/i386/configure: Regenerated.
2583         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2584         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2585         * sysdeps/s390/s390-32/configure: Regenerated.
2586         * sysdeps/s390/s390-64/configure: Regenerated.
2587         * sysdeps/sh/configure: Regenerated.
2588         * sysdeps/sparc/configure: Regenerated.
2589         * sysdeps/x86_64/configure: Regenerated.
2590
2591 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
2592
2593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2594
2595         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
2596         denormal result into account.
2597
2598 2012-03-25  Roland McGrath  <roland@hack.frob.com>
2599
2600         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
2601         Reported by Allan McRae <allan@archlinux.org>.
2602
2603 2012-03-23  Jeff Law  <law@redhat.com>
2604
2605         * nss/getnssent.c (__nss_getent): Fix typo.
2606
2607 2012-03-23  David S. Miller  <davem@davemloft.net>
2608
2609         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2610
2611 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2612
2613         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
2614         to pad to uint64_t for each field.
2615         (dl_tls_index): Replace unsigned long with uint64_t.
2616
2617 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
2618         Paul Pluzhnikov  <ppluzhnikov@google.com>
2619
2620         [BZ #6528]
2621         * grp/Makefile (otherlibs): Don't set it.
2622         * inet/Makefile (otherlibs): Likewise.
2623         * login/Makefile (otherlibs): Likewise.
2624         * nscd/Makefile (otherlibs): Likewise.
2625         * posix/Makefile (otherlibs): Likewise.
2626         * pwd/Makefile (otherlibs): Likewise.
2627         * rt/Makefile (otherlibs): Likewise.
2628         * sunrpc/Makefile (otherlibs): Likewise.
2629         * nss/Makefile (otherlibs): Likewise.
2630         Add libnss_files to routines and static-only-routines.
2631         ($(objpfx)getent): Remove rule.
2632         * resolv/Makefile: Add libnss_dns and libresolv to routines and
2633         static-only-routines.
2634
2635 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2636
2637         [BZ #13892]
2638         * math/s_cexp.c: Include <float.h>.
2639         (__cexp): Handle exp result overflowing not necessarily
2640         overflowing both real and imaginary parts of result.
2641         * math/s_cexpf.c: Likewise.
2642         * math/s_cexpl.c: Likewise.
2643         * math/libm-test.inc (cexp_test): Add more tests.
2644         * sysdeps/i386/fpu/libm-test-ulps: Update.
2645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2646
2647 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2648
2649         * include/link.h (ELFW): New macro.
2650         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
2651         Replace ELF64_R_TYPE with ELFW(R_TYPE).
2652
2653 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2654
2655         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
2656         with uint64_t.
2657
2658 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2659
2660         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
2661         declaration.
2662         (struct La_x32_retval): Likewise.
2663
2664 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2665
2666         * sysdeps/x86_64/preconfigure.in: New file.
2667         * sysdeps/x86_64/preconfigure: New generated file.
2668
2669 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2670
2671         [BZ #13824]
2672         * math/e_exp2l.c: Include <float.h>.
2673         (__ieee754_exp2l): Handle overflow and underflow cases
2674         separately.  Only pass fractional part of argument to
2675         __ieee754_expl.
2676         * math/libm-test.inc (exp2_test): Add more tests.
2677
2678         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
2679         negating x to take absolute value.
2680         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
2681         Likewise.
2682         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
2683         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
2684         Likewise.
2685         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
2686         computing low part if x was negated.
2687         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
2688
2689 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2690
2691         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
2692         la_x32_gnu_pltexit.
2693         (pltexit): Cast int_retval to ptrdiff_t.
2694         * elf/tst-auditmod3b.c: Likewise.
2695         * elf/tst-auditmod4b.c: Likewise.
2696         * elf/tst-auditmod5b.c: Likewise.
2697         * elf/tst-auditmod6b.c: Likewise.
2698         * elf/tst-auditmod6c.c: Likewise.
2699         * elf/tst-auditmod7b.c: Likewise.
2700
2701         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
2702         and x32_gnu_pltexit.
2703
2704         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
2705         __ELF_NATIVE_CLASS.
2706         (La_x32_regs): New macro.
2707         (La_x32_retval): Likewise.
2708         (la_x32_gnu_pltenter): New function prototype.
2709         (la_x32_gnu_pltexit): Likewise.
2710
2711 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
2712
2713         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
2714         exponent.
2715
2716         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2717
2718         * configure.in (libc_cv_cc_nofma): Check for option to disable
2719         generation of FMA instructions.
2720         * configure: Regenerate.
2721         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
2722         * sysdeps/ieee754/dbl-64/Makefile: New file.
2723         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2724         Remove brandred-fma4.
2725         (CFLAGS-brandred-fma4.c): Remove.
2726         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
2727         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
2728         define.
2729         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
2730         define.
2731
2732 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2733
2734         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2735         LLONG_MAX != LONG_MAX.
2736         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2737         (_fitoa_word): Likewise.
2738         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
2739         LLONG_MAX != LONG_MAX.
2740         * stdio-common/_itowa.h: Include <_itoa.h>.
2741         (_itowa_word): Use _ITOA_WORD_TYPE on value.
2742         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
2743         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
2744         only if not defined.
2745         (_ITOA_WORD_TYPE): Likewise.
2746         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2747         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
2748
2749 2012-03-21  David S. Miller  <davem@davemloft.net>
2750
2751         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2752
2753 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2754
2755         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
2756         of x86_64 when setting libc_cv_slibdir, libdir and
2757         libc_cv_localedir.
2758         * sysdeps/unix/sysv/linux/configure: Regenerated.
2759
2760 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2761
2762         * manual/lang.texi (Old Varargs): Remove section.
2763         (How Variadic): Update menu.
2764         (va_start): Do not mention varargs.h.
2765
2766 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2767             Joseph Myers  <joseph@codesourcery.com>
2768
2769         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
2770         link test.
2771         * configure: Regenerated.
2772
2773 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2774
2775         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
2776         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
2777         conformtest.pl
2778
2779 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2780
2781         * NOTES: Remove.
2782         * Makefile (files-for-dist): Remove NOTES.
2783         (NOTES): Remove rule.
2784         * README: Don't refer to NOTES.
2785         * manual/creature.texi: Don't include macros.texi.
2786         * manual/intro.texi (creature.texi): Remove comment referring to
2787         NOTES.
2788
2789         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
2790         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
2791         * configure: Regenerated.
2792         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
2793         LIBC_TRY_CC_OPTION.
2794         (libc_cv_as_i686): Likewise.
2795         (libc_cv_cc_avx): Likewise.
2796         (libc_cv_cc_sse2avx): Likewise.
2797         (libc_cv_cc_fma4): Likewise.
2798         (libc_cv_cc_novzeroupper): Likewise.
2799         * sysdeps/i386/configure: Regenerated.
2800
2801         [BZ #13883]
2802         * sysdeps/i386/fpu/s_cexp.S: Remove.
2803         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
2804         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
2805         * math/libm-test.inc (cexp_test): Add more tests.
2806         * sysdeps/i386/fpu/libm-test-ulps: Update.
2807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2808
2809 2012-03-21  Allan McRae  <allan@archlinux.org>
2810
2811         * timezone/Makefile: Do not install iso3166.tab and zone.tab
2812
2813 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2814
2815         [BZ #13871]
2816         * math/w_exp2.c: Do not include <float.h>.
2817         (o_threshold, u_threshold): Remove.
2818         (__exp2): Calculate result before checking finiteness and calling
2819         __kernel_standard.
2820         * math/w_exp2f.c: Likewise.
2821         * math/w_exp2l.c: Likewise.
2822         * math/libm-test.inc (exp2_test): Require overflow exception for
2823         1e6 input.
2824
2825         [BZ #3866]
2826         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
2827         range of signed 64-bit integers before using fistpll.  Remove
2828         checks for whether integers fit in mantissa bits.
2829         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
2830         the range of signed 32-bit integers before using fistpl.  Remove
2831         checks for whether integers fit in mantissa bits.
2832         * sysdeps/i386/fpu/e_powl.S (p64): New object.
2833         (__ieee754_powl): Test for y outside the range of signed 64-bit
2834         integers before using fistpll.  Reduce 64-bit values to 63-bit
2835         ones as needed.
2836         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
2837         divide-by-zero is raised for zero to large negative powers.
2838         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
2839         (__ieee754_powl): Test for y outside the range of signed 64-bit
2840         integers before using fistpll.  Reduce 64-bit values to 63-bit
2841         ones as needed.
2842         * math/libm-test.inc (pow_test): Add more tests.
2843
2844 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2845
2846         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
2847         <stdio-common/_itoa.h>.
2848         * debug/segfault.c: Likewise.
2849         * elf/dl-cache.c: Likewise.
2850         * elf/dl-minimal.c: Likewise.
2851         * elf/dl-misc.c: Likewise.
2852         * elf/dl-sysdep.c: Likewise.
2853         * elf/dl-version.c: Likewise.
2854         * elf/rtld.c: Likewise.
2855         * hurd/hurdsock.c: Likewise.
2856         * hurd/lookup-retry.c: Likewise.
2857         * malloc/malloc.c: Likewise.
2858         * malloc/mtrace.c: Likewise.
2859         * nscd/nscd_getgr_r.c: Likewise.
2860         * nscd/nscd_getpw_r.c: Likewise.
2861         * nscd/nscd_getserv_r.c: Likewise.
2862         * posix/getopt_init.c: Likewise.
2863         * posix/wordexp.c: Likewise.
2864         * stdio-common/_itoa.c: Likewise.
2865         * stdio-common/printf_fphex.c: Likewise.
2866         * stdio-common/vfprintf.c: Likewise.
2867         * string/_strerror.c: Likewise.
2868         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2869         * sysdeps/i386/i686/hp-timing.h: Likewise.
2870         * sysdeps/mach/_strerror.c: Likewise.
2871         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
2872         * sysdeps/mach/hurd/sethostid.c: Likewise.
2873         * sysdeps/mach/hurd/xmknodat.c: Likewise.
2874         * sysdeps/mach/xpg-strerror.c: Likewise.
2875         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2876         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2877         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
2878         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
2879         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
2880         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
2881         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2882         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2883         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
2884         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
2885         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
2886         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2887         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
2888         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
2889         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
2890         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2891         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
2892         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
2893         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2894         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2895         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
2896
2897         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
2898
2899         * stdio-common/_itoa.h: Moved to ...
2900         * sysdeps/generic/_itoa.h: Here.
2901
2902         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
2903
2904         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
2905         instead of "_itoa.h" and "_itowa.h".
2906         * stdio-common/vfprintf.: Likewise.
2907
2908 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2909
2910         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
2911         <bits/wordsize.h>.
2912         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
2913         (__signbit): Likwise.
2914         (llrintf): Likwise.
2915         (llrint): Likwise.
2916
2917 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2918
2919         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
2920         __WORDSIZE != 64.
2921
2922 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
2923
2924         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
2925         OVERFLOW_EXCEPTION_OK.
2926         * math/libm-test.inc ("Philosophy"): Update comment about
2927         exception testing.
2928         (OVERFLOW_EXCEPTION): Define.
2929         (OVERFLOW_EXCEPTION_OK): Likewise.
2930         (INVALID_EXCEPTION_OK): Renumber.
2931         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2932         (IGNORE_ZERO_INF_SIGN): Likewise.
2933         (test_exceptions): Handle FE_OVERFLOW.
2934         (exp10_test): Expect overflow exceptions.
2935         (exp2_test): Likewise.
2936         (expm1_test): Likewise.
2937         (nextafter_test): Likewise.
2938         (pow_test): Likewise.
2939         (scalbn_test): Likewise.
2940         (scalbln_test): Likewise.
2941
2942 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2943
2944         * sysdeps/x86_64/bits/atomic.h
2945         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
2946         64bit integer.
2947         (atomic_exchange_acq): Likewise.
2948         (__arch_exchange_and_add_body): Likewise.
2949         (__arch_add_body): Likewise.
2950         (atomic_add_negative): Likewise.
2951         (atomic_add_zero): Likewise.
2952
2953 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2954
2955         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
2956         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
2957
2958 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2959
2960         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
2961         Check __x86_64__ instead of __WORDSIZE.
2962
2963 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2964
2965         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
2966
2967 2012-03-19  David S. Miller  <davem@davemloft.net>
2968
2969         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2970
2971         * sysdeps/sparc/fpu/fenv_private.h: New file.
2972         * sysdeps/sparc/fpu/math_private.h: Use it.
2973         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
2974         Remove.
2975         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
2976         (libc_feholdexcept_setroundl): Remove.
2977         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
2978         Remove.
2979         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
2980         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
2981
2982 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2983
2984         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
2985         int64_t instead of long int.
2986         (INSERT_WORDS64): Likwise.
2987
2988 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2989
2990         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
2991         _Unwind_GetCFA return to _Unwind_Ptr first.
2992
2993 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
2994
2995         [BZ #13629]
2996         * math/s_clog.c: Include <float.h>.
2997         (__clog): Scale large or subnormal inputs.
2998         * math/s_clogf.c: Likewise.
2999         * math/s_clogl.c: Likewise.
3000         * math/s_clog10.c: Include <float.h>.
3001         (M_LOG10_2): Define.
3002         (__clog10): Scale large or subnormal inputs.
3003         * math/s_clog10f.c: Likewise.
3004         * math/s_clog10l.c: Likewise.
3005         * math/libm-test.inc (clog_test): Add more tests.
3006         (clog10_test): Likewise.
3007         * sysdeps/i386/fpu/libm-test-ulps: Update.
3008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3009
3010         [BZ #11451]
3011         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
3012         x and y.
3013         * math/libm-test.inc (atan2_test): Add another test.
3014
3015         * Makerules (common-objdir-compile): Remove.
3016         * sysdeps/unix/Makefile (config-generated): Do not add
3017         $(unix-generated) to variable.
3018         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
3019         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
3020         Remove rule.
3021         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
3022         Likewise.
3023         [generic bits/local_lim.h] (before-compile): Do not append to
3024         variable.
3025         [generic bits/local_lim.h] (common-generated): Likewise.
3026         [generic sys/param.h] (before-compile): Do not append to variable.
3027         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
3028         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
3029         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
3030         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
3031         include.
3032         [generic sys/param.h] (sys/param.h-includes): Remove variable.
3033         [generic sys/param.h] (sys/param.h-includes): Remove rule.
3034         [generic sys/param.h] ($(addprefix
3035         $(common-objpfx),$(sys/param.h-includes))): Likewise.
3036         [generic sys/param.h] (common-generated): Do not append to
3037         variable.
3038         [generic sys/param.h] (sysdep_headers): Likewise.
3039         [generic bits/errno.h] (before-compile): Do not append to
3040         variable.
3041         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
3042         rule.
3043         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
3044         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
3045         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
3046         [generic bits/errno.h] (common-generated): Do not append to
3047         variable.
3048         [generic bits/ioctls.h] (before-compile): Do not append to
3049         variable.
3050         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
3051         rule.
3052         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
3053         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
3054         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
3055         rule.
3056         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
3057         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
3058         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
3059         [generic bits/ioctls.h] (common-generated): Do not append to
3060         variable.
3061         [generic sys/syscall.h] (syscall.h): Remove variable.
3062         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
3063         rule.
3064         [generic sys/syscall.h] (before-compile): Do not append to
3065         variable.
3066         [generic sys/syscall.h] (common-generated): Likewise.
3067         * sysdeps/unix/errnos-tmpl.c: Remove file.
3068         * sysdeps/unix/errnos.awk: Likewise.
3069         * sysdeps/unix/ioctls-tmpl.c: Likewise.
3070         * sysdeps/unix/ioctls.awk: Likewise.
3071         * sysdeps/unix/mk-local_lim.c: Likewise.
3072         * sysdeps/unix/snarf-ioctls: Likewise.
3073
3074 2012-03-19  Richard Henderson  <rth@twiddle.net>
3075
3076         * sysdeps/i386/fpu/fenv_private.h: New file.
3077         * sysdeps/i386/fpu/math_private.h: Use it.
3078         (math_opt_barrier, math_force_eval): Remove.
3079         (libc_feholdexcept_setround_53bit): Remove.
3080         (libc_feupdateenv_53bit): Remove.
3081         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3082         (math_opt_barrier, math_force_eval): Remove.
3083         (libc_feholdexcept): Remove.
3084         (libc_feholdexcept_setround): Remove.
3085         (libc_fetestexcept, libc_fesetenv): Remove.
3086         (libc_feupdateenv_test): Remove.
3087         (libc_feupdateenv, libc_feholdsetround): Remove.
3088         (libc_feresetround): Remove.
3089
3090         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
3091         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
3092
3093         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
3094         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
3095         (libc_feupdateenv_testl): New.
3096         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
3097         (libc_feupdateenv_testf): New.
3098         (libc_feupdateenv): Use libc_feupdateenv_test.
3099         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
3100         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
3101
3102         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
3103         (libc_feholdsetroundf, libc_feholdsetroundl): New.
3104         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
3105         (libc_feresetround_noex): New.
3106         (libc_feresetround_noexf): New.
3107         (libc_feresetround_noexl): New.
3108         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
3109         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
3110         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
3111         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
3112         SET_RESTORE_ROUND.
3113         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
3114         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
3115         (__cos): Likewise.
3116         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
3117         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
3118         SET_RESTORE_ROUND_NOEX.
3119         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
3120         SET_RESTORE_ROUND_NOEXF.
3121         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
3122         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
3123         (libc_feholdsetroundf): New.
3124         (libc_feresetround, libc_feresetroundf): New.
3125
3126         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
3127         (libc_feholdexcept_setround_53bit): Convert from macro to function.
3128         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
3129
3130         * sysdeps/generic/math_private.h: Include <fenv.h>.
3131         (default_libc_feholdexcept): New.
3132         (default_libc_feholdexcept_setround): New.
3133         (default_libc_fesetenv, default_libc_feupdateenv): New.
3134         (libc_feholdexcept): Only define if undefined.
3135         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
3136         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
3137         (libc_feholdexcept_setroundl): Likewise.
3138         (libc_feholdexcept_setround_53bit): Likewise.
3139         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
3140         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
3141         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
3142         (libc_feupdateenv_53bit): Likewise.
3143         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
3144         (libc_feholdexcept): Convert from macro to inline function.
3145         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
3146         (libc_fesetenv, libc_feupdateenv): Likewise.
3147
3148         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
3149         not previously defined.
3150         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
3151         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
3152         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
3153         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
3154         * sysdeps/ieee754/flt-32/math_private.h: New file.
3155         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
3156         math_private.h below SET_FLOAT_WORD.
3157         (__isnan, __isinf_ns, __finite): Remove.
3158         (__isnanf, __isinf_nsf, __finitef): Remove.
3159
3160 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
3161
3162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3163
3164 2012-03-17  David S. Miller  <davem@davemloft.net>
3165
3166         [BZ #6471]
3167         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
3168         for 2.16.
3169
3170 2012-03-16  David S. Miller  <davem@davemloft.net>
3171
3172         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
3173         warnings.
3174
3175         [BZ #6471]
3176         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
3177         properly.
3178         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
3179         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
3180         sysdep_routines when subdir is sysvipc.
3181         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
3182         __getshmlba helper.
3183
3184         * sysdeps/sparc/fpu/libm-test/ulps: Update.
3185
3186 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3187
3188         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
3189         [__LP64__].
3190
3191 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3192
3193         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
3194         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
3195         (__lround): Renamed to ...
3196         (__llround): This.  Replace long int with long long int.
3197         Define lround functions as aliases of llround functions.
3198         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
3199
3200 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3201
3202         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3203         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
3204         adresses to uintptr_t.  Replace "long int" and "unsigned long
3205         int" with "greg_t" on va_arg.
3206
3207 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3208
3209         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
3210         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
3211
3212         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
3213         Move e_machine check before EI_CLASS check.  Handle x32
3214         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
3215         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
3216         SKIP_EM_IA_64 and include
3217         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
3218
3219         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
3220         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
3221         (add_system_dir): New macro.
3222
3223         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
3224         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
3225
3226 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3227
3228         [BZ #2551]
3229         [BZ #2552]
3230         [BZ #2553]
3231         [BZ #2554]
3232         [BZ #2562]
3233         [BZ #2563]
3234         [BZ #2565]
3235         [BZ #2566]
3236         [BZ #2576]
3237         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
3238         (y0): Likewise.
3239         * math/w_j0f.c (j0f): Likewise.
3240         (y0f): Likewise.
3241         * math/w_j0l.c (__j0l): Likewise.
3242         (__y0l): Likewise.
3243         * math/w_j1.c (j1): Likewise.
3244         (y1): Likewise.
3245         * math/w_j1f.c (j1f): Likewise.
3246         (y1f): Likewise.
3247         * math/w_j1l.c (__j1l): Likewise.
3248         (__y1l): Likewise.
3249         * math/w_jn.c (jn): Likewise.
3250         (yn): Likewise.
3251         * math/w_jnf.c (jnf): Likewise.
3252         (ynf): Likewise.
3253         * math/w_jnl.c (__jnl): Likewise.
3254         (__ynl): Likewise.
3255         * math/libm-test.inc (j0_test): Add more tests.
3256         (j1_test): Likewise.
3257         (jn_test): Likewise.  Add trailing semicolon to existing test.
3258         (y0_test): Likewise.
3259         (y1_test): Likewise.
3260         * sysdeps/i386/fpu/libm-test-ulps: Update.
3261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3262
3263         [BZ #13851]
3264         [BZ #13854]
3265         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
3266         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
3267         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
3268         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
3269         (__tanl): Set errno for infinite argument.
3270         * sysdeps/i386/fpu/mptan.c: Remove.
3271         * sysdeps/i386/fpu/s_tan.S: Likewise.
3272         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3273         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
3274         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3275         * math/libm-test.inc (tan_test): Add more tests and enable more
3276         tests for double and long double.
3277         * sysdeps/i386/fpu/libm-test-ulps: Update.
3278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3279
3280 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3281
3282         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
3283         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
3284
3285 2012-03-16  Roland McGrath  <roland@hack.frob.com>
3286
3287         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
3288         * configure.in: Use it for both main tree and add-ons.
3289         * configure: Regenerated.
3290
3291 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3292
3293         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
3294
3295 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3296
3297         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
3298         in comment.
3299
3300         [BZ #13851]
3301         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
3302         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
3303         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
3304         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
3305         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
3306         infinite argument.
3307         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
3308         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
3309         != 0 for prec == 2.
3310         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
3311         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
3312         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3313         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3314         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3315         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
3316         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
3317         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
3318         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3319         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
3320         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3321         * math/libm-test.inc (cos_test): Add more tests and enable more
3322         tests for long double.
3323         (sin_test): Likewise.
3324         (sincos_test): Likewise.
3325         * sysdeps/i386/fpu/libm-test-ulps: Update.
3326         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3327
3328 2012-03-16  David S. Miller  <davem@davemloft.net>
3329
3330         * sysdeps/sparc/fpu/math_private.h: New file.
3331
3332 2012-03-15  David S. Miller  <davem@davemloft.net>
3333
3334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
3335         file.
3336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
3337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
3338         file.
3339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
3340         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
3341         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
3342         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
3343         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
3344         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
3345         sysdep routines.
3346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3347
3348         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
3349         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
3350
3351         * sysdeps/sparc/sparc-ifunc.h: New file.
3352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
3353         sparc-ifunc.h
3354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3356         Likewise.
3357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
3358         Likewise.
3359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
3360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
3361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
3363         Likewise.
3364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
3366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
3368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
3369         Likewise.
3370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
3371         Likewise.
3372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
3374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
3375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
3376         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3377         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3378         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
3379         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
3380         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3381         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3382         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
3383         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
3384         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
3385         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
3386         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
3387         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
3388         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
3389         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
3390         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
3391         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
3392         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
3393         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
3394         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
3395         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
3396
3397 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3398
3399         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
3400         scaling.
3401         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3402
3403 2012-03-15  Andreas Jaeger  <aj@suse.de>
3404
3405         [BZ #13852]
3406         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
3407         ieee754/flt-32 implementation for sin, cos and sincos.
3408         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
3409         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3410         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3411         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3412         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
3413         ieee754/flt-32 implementation for tan.
3414
3415         * math/libm-test.inc (cos_test): Enable some large input tests for
3416         float as well
3417         (sin_test): Likewise.
3418         (sincos_test): Likewise.
3419         (tan_test): Add tests for large input.
3420
3421         * sysdeps/i386/fpu/libm-test-ulps: Update.
3422
3423 2012-03-15  Andreas Jaeger  <aj@suse.de>
3424
3425         [BZ #13658]
3426         * math/libm-test.inc (cos_test): Add more test cases.
3427         (sin_test): Likewise.
3428         (sincos_test): Likewise.
3429
3430 2012-03-15  Andreas Jaeger  <aj@suse.de>
3431
3432         [BZ #13837]
3433         * math/libm-test.inc (cos_test): Add a test case for large input
3434         value.
3435         (sin_test): Likewise.
3436         (sincos_test): Likewise.
3437
3438 2012-03-15  Andreas Jaeger  <aj@suse.de>,
3439         Joseph Myers  <joseph@codesourcery.com>
3440
3441         [BZ #13658]
3442         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
3443         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
3444         * sysdeps/i386/fpu/branred.c: Likewise.
3445         * sysdeps/i386/fpu/dosincos.c: Likewise.
3446         * sysdeps/i386/fpu/mpa.c: Likewise.
3447         * sysdeps/i386/fpu/s_cos.S: Likewise.
3448         * sysdeps/i386/fpu/s_sin.S: Likewise.
3449         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3450         * sysdeps/i386/fpu/sincos32.c: Likewise.
3451
3452         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
3453         Define.
3454         (libc_feupdateenv_53bit): Define.
3455         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
3456         Define.
3457         (libc_feupdateenv_53bit): Define.
3458
3459         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
3460         53 bit (without extend i386 double precision).
3461
3462         * math/libm-test.inc (sincos_test): Add tests for large input.
3463         (sin): Likewise.
3464         (cos): Likewise.
3465
3466         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
3467
3468 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3469
3470         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3471
3472 2012-03-15  David S. Miller  <davem@davemloft.net>
3473
3474         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
3475         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
3476         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
3477         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
3478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
3479         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
3480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
3481         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
3482         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
3483         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
3484         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
3485         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
3486         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
3487         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
3488         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
3489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
3490         file.
3491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
3492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
3493         file.
3494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
3495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
3496         file.
3497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
3498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
3499         file.
3500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
3501         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
3502         fmin/fmax sysdep routines.
3503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3504
3505 2012-03-14  David S. Miller  <davem@davemloft.net>
3506
3507         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
3508         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
3509         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
3510         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
3511         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
3512         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
3513         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
3514         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
3515         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
3516         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
3517         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
3518         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
3519         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
3520         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
3521         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
3522         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
3523         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
3524         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
3525         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
3526         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
3527         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
3528         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
3529         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
3530         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
3531         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
3532         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
3533         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
3534         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
3535         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
3536         routines.
3537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
3538         file.
3539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
3540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
3541         file.
3542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
3543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
3544         file.
3545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
3546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
3547         file.
3548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
3549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
3550         file.
3551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
3552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
3553         file.
3554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
3555         file.
3556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
3557         file.
3558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
3559         file.
3560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
3561         New file.
3562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
3563         file.
3564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
3565         file.
3566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
3567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
3568         file.
3569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
3570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
3571         file.
3572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
3573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
3574         file.
3575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
3576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
3577         VIS3 routines.
3578
3579         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3580         New file.
3581
3582         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3583
3584         * sysdeps/sparc/configure.in: New file.
3585         * sysdeps/sparc/configure: Generate.
3586         * configure.in (libc_cv_sparc_as_vis3): Substitute.
3587         * configure: Regenerate.
3588         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
3589         * config.make.in (have-as-vis3): New.
3590         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
3591         available use -Av9d instead of -Av9a.
3592         * sysdeps/sparc/sparc64/Makefile: Likewise.
3593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
3594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
3595         New file.
3596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
3597         file.
3598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
3599         New file.
3600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
3601         file.
3602         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
3603         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
3604         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
3605         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
3606         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
3607
3608         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
3609         fzeros/fnegs to load 0x80000000 into a float register instead of
3610         using the stack.
3611         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
3612
3613 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3614
3615         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3616         bits/syscall.h.
3617         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
3618         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
3619         ($(inst_includedir)/bits/syscall.h): Remove rule.
3620         ($(objpfx)bits/syscall.d): Include instead of
3621         $(objpfx)syscall-list.d.
3622         (generated): Change syscall-list.h and syscall-list.d to
3623         bits/syscall.h and bits/syscall.d.
3624
3625 2012-03-14  Roland McGrath  <roland@hack.frob.com>
3626
3627         [BZ #13846]
3628         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
3629
3630 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3631
3632         [BZ #13841]
3633         * math/s_csqrt.c: Include <float.h>.
3634         (__csqrt): Scale large or subnormal inputs.
3635         * math/s_csqrtf.c: Likewise.
3636         * math/s_csqrtl.c: Likewise.
3637         * math/libm-test.inc (csqrt_test): Add more tests.
3638         * sysdeps/i386/fpu/libm-test-ulps: Update.
3639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3640
3641         [BZ #13840]
3642         * math/libm-test.inc (hypot_test): Add more tests.
3643
3644 2012-03-13  David S. Miller  <davem@davemloft.net>
3645
3646         [BZ #13840]
3647         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
3648         double-precision for the calculation instead of scaling.
3649
3650 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
3651
3652         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
3653         manipulate bits before adding and subtracting TWO52[sx].
3654         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
3655         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3656         Likewise.
3657         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
3658
3659 2012-03-13  David S. Miller  <davem@davemloft.net>
3660
3661         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
3662         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
3663         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
3664         rtld-global-offsets.h
3665         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3666
3667         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
3668         large parameters.
3669
3670         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
3671
3672         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
3673         'err' in the ifdef scope in which it is actually used.
3674
3675         * nss/nss_db/db-init.c: Include string.h
3676
3677 2012-03-12  David S. Miller  <davem@davemloft.net>
3678
3679         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
3680         masking out of the most significant byte of random value used.
3681         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3682         Fix coding style in previous change.
3683
3684         * sysdeps/unix/sysv/linux/kernel-features.h
3685         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
3686         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
3687         expression.
3688         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
3689         later.
3690
3691 2012-03-11  David S. Miller  <davem@davemloft.net>
3692
3693         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
3694         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
3695         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
3696         for 'resultvar' otherwise things get truncated on 64-bit.
3697
3698         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3699         Fix masking out of the most significant byte of random value used.
3700
3701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3702
3703 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
3704
3705         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3706
3707 2012-03-09  David S. Miller  <davem@davemloft.net>
3708
3709         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
3710         variables with appropriate CPP guards.
3711         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
3712         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
3713         on resulting framesize and the management of the outregs buffer for pltexit.
3714         Preserve floating point return values across _dl_call_pltexit call.
3715         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
3716         framesize and the management of the outregs buffer for pltexit.
3717         Preserve floating point return values across _dl_call_pltexit
3718         call.
3719         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
3720         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
3721         (print_exit): Fix format string for return register value.
3722
3723 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
3724
3725         * sunrpc/Makefile (others): Add rpcgen.
3726         ($(objpfx)rpcgen): Remove special build rule and dependency on
3727         libc.
3728         * sunrpc/rpcgen.c: New file.
3729
3730 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
3731
3732         [BZ #13673]
3733         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
3734         * stdio-common/bug-vfprintf-nargs.c: Likewise.
3735         * sysdeps/i386/crti.S: Likewise.
3736         * sysdeps/i386/crtn.S: Likewise.
3737         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
3738         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
3739         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
3740         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
3741         * sysdeps/sh/crti.S: Likewise.
3742         * sysdeps/sh/crtn.S: Likewise.
3743         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3744
3745         [BZ #13673]
3746         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
3747         with URL.
3748         * locale/programs/locfile-kw.gperf: Likewise.
3749         * locale/programs/charmap-kw.h: Regenerated.
3750         * locale/programs/locfile-kw.h: Likewise.
3751
3752         [BZ #13673]
3753         * intl/plural.y: Replace FSF snail mail address with URL.
3754         * intl/plural.c: Regenerated.
3755
3756 2012-03-09  Richard Henderson  <rth@twiddle.net>
3757
3758         * include/math_private.h: Remove file.
3759         * math/math_private.h: Move file ...
3760         * sysdeps/generic/math_private.h: ... here.
3761
3762         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
3763         * sysdeps/powerpc/fpu/math_private.h: Likewise.
3764         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3765
3766         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
3767         and <math_private.h>.
3768         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
3769         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3770         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
3771         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3772         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
3773         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
3774         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3775         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3776         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3777         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3778         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3779         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3780         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3781         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3782         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3783         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3784         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3785         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3786         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3787         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
3788         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3789         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3790         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3791         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3792         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3793         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3794         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3795         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3796         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3797         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3798         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3799         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3800         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3801         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3802         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3803         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3804         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3805         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3806         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3807         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3808         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
3809         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3810         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
3811         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3812         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3813         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3814         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3815         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3816         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3817         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3818         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3819         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3820         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3821         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3822         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3823         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3824         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3825         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3826         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3827         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
3828         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3829         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3830         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3831         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3832         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3833         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3834         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3835         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3836         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
3837         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
3838         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
3839         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3840         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
3841         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3842         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
3843         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
3844         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
3845         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
3846         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
3847         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3848         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
3849         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
3850         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
3851         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3852         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3853         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
3854         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
3855         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
3856         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
3857         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
3858         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
3859         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
3860         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3861         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
3862         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
3863         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
3864         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
3865         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3866         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3867         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3868         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
3869         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
3870         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
3871         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
3872         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3873         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
3874         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
3875         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
3876         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3877         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3878         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3879         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3880         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
3881         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3882         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
3883         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3884         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3885         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3886         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3887         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3888         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3889         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3890         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3891         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
3892         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3893         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
3894         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
3895         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3896         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3897         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3898         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3899         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
3900         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3901         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3902         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3903         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
3904         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3905         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3906         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
3907         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3908         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3909         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
3910         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
3911         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
3912         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
3913         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3914         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3915         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
3916         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
3917         * sysdeps/ieee754/k_standard.c: Likewise.
3918         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
3919         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3920         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3921         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3922         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3923         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3924         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
3925         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3926         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3927         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3928         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3929         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3930         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3931         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3932         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3933         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3934         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3935         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3936         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3937         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
3938         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
3939         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
3940         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3941         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
3942         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3943         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
3944         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3945         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
3946         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
3947         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3948         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3949         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
3950         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3951         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3952         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3953         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
3954         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
3955         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
3956         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3957         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3958         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3959         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3960         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3961         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
3962         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3963         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3964         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
3965         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3966         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
3967         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3968         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3969         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3970         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3971         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
3972         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3973         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3974         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
3975         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
3976         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
3977         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
3978         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3979         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3980         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3981         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
3982         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
3983         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
3984         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
3985         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
3986         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
3987         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
3988         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
3989         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3990         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
3991         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
3992         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
3993         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
3994         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
3995         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
3996         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3997         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3998         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3999         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4000         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4001         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4002         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
4003         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4004         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4005         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
4006         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4007         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4008         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
4009         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4010         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
4011         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
4012         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4013         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4014         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
4015         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
4016         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
4017         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
4018         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4019         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4020         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4021         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4022         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
4023         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4024         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4025         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
4026         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
4027         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4028         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4029         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4030         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
4031         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4032         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
4033         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4034         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
4035         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4036         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
4037         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
4038         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4039         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4040         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
4041         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
4042         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4043         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
4044         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4045         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4046         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4047         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4048         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4049         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4050         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4051         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
4052         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4053         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4054         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
4055         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4056         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4057         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
4058         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
4059         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4060         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
4061         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
4062         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4063         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4064         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4065         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4066         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4067         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
4068         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4069         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
4070         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4071         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4072         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
4073         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
4074         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4075         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4076         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4077         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
4078         * sysdeps/ieee754/s_lib_version.c: Likewise.
4079         * sysdeps/ieee754/s_matherr.c: Likewise.
4080         * sysdeps/ieee754/s_signgam.c: Likewise.
4081         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4082         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4083         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
4084         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
4085         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
4086         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4087         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
4088         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
4089         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4090         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
4091         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
4092         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
4093         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4094         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4095         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
4096         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4097         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4098         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4099         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4100         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4101         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4102
4103 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
4104
4105         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
4106         * sunrpc/rpc_main.c: Likewise.
4107         * sunrpc/rpc_svcout.c: Likewise.
4108
4109 2012-03-09  David S. Miller  <davem@davemloft.net>
4110
4111         * include/math_private.h: New file.
4112
4113 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
4114
4115         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
4116         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
4117         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
4118         from <bits/socket_type.h>.
4119         (enum __socket_type): Don't define here.
4120         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
4121         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4122         bits/socket_type.h.
4123
4124         [BZ #13566]
4125         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
4126         checking __USE_GNU.
4127
4128         * Makerules ($(inst_includedir)/%.h): New rule.
4129         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
4130         (install-others): Remove variable setting.
4131         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
4132
4133 2012-03-08  Richard Henderson  <rth@twiddle.net>
4134
4135         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
4136         from macro to inline function; merge with the
4137         !__LIBC_INTERNAL_MATH_INLINES version.
4138         (__ieee754_sqrtf): Likewise.
4139
4140         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
4141         to inline function.
4142         (__rintf, __floor, __floorf): Likewise.
4143
4144         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
4145         macro to inline function.
4146         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
4147
4148         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
4149         not <math/math_private.h>.
4150
4151 2012-03-08  David S. Miller  <davem@davemloft.net>
4152
4153         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
4154         copyright year.
4155         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
4156
4157 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
4158
4159         * resolv/gai_misc.c (handle_requests): Fix struct timespec
4160         normalization.
4161         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
4162         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
4163
4164 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
4165
4166         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
4167         be defined individually, they must be defined as a block.  Define
4168         S for printing a string instead of hidint the different by using a
4169         macro for adding the 'l'.
4170         * stdio-common/tst-fphex-wide.c: Adjust.
4171
4172 2012-03-07  Marek Polacek  <polacek@redhat.com>
4173
4174         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
4175
4176 2012-03-08  Marek Polacek  <polacek@redhat.com>
4177
4178         [BZ #13806]
4179         * stdio-common/Makefile (tests): Add tst-fphex-wide.
4180         * stdio-common/tst-fphex.c: Define a few macros to make the
4181         test reusable.  Use them.
4182         * stdio-common/tst-fphex-wide.c: New file.
4183
4184 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
4185
4186         [BZ #6911]
4187         * manual/macros.texi (gnusystems): New macro.
4188         (nongnusystems): Likewise.
4189         (gnulinuxhurdsystems): Likewise.
4190         (gnuhurdsystems): Likewise..
4191         (gnulinuxsystems): Likewise.
4192         * manual/charset.texi: Use new macros or @theglibc{} to refer to
4193         variants of the GNU system, not "GNU system".
4194         * manual/conf.texi: Likewise.
4195         * manual/errno.texi: Likewise.  Update example of errno macro
4196         expansion.
4197         * manual/filesys.texi: Likewise.
4198         (getumask): Document as specific to GNU/Hurd.
4199         * manual/install.texi: Likewise.  Reword some references to
4200         GNU/Linux.
4201         * manual/intro.texi: Likewise.
4202         * manual/io.texi: Likewise.
4203         (File Name Portability): Detail which constraints are inapplicable
4204         to all GNU systems and which are only inapplicable to GNU/Hurd.
4205         * manual/job.texi: Likewise.
4206         * manual/llio.texi: Likewise.
4207         (O_NOCTTY): Document as present on GNU/Linux.
4208         * manual/maint.texi: Likewise.
4209         * manual/memory.texi: Likewise.
4210         * manual/pattern.texi: Likewise.
4211         * manual/pipe.texi: Likewise.
4212         * manual/process.texi: Likewise.
4213         * manual/resource.texi: Likewise.
4214         (RUSAGE_CHILDREN): Remove statement about specifying a particular
4215         child on GNU/Hurd.
4216         * manual/setjmp.texi: Likewise.
4217         * manual/signal.texi: Likewise.
4218         * manual/startup.texi: Likewise.
4219         * manual/stdio.texi: Likewise.
4220         * manual/terminal.texi: Likewise.
4221         (ONLCR): Document as POSIX.
4222         (OXTABS): Document availability on GNU/Linux as XTABS.
4223         (ONOEOT): Document availability separately from other bits.
4224         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
4225         * manual/time.texi: Likewise.
4226         * manual/users.texi: Likewise.
4227         * INSTALL: Regenerated.
4228         * sysdeps/gnu/errlist.c: Regenerated.
4229
4230         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
4231         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
4232         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
4233         puts.
4234         * configure: Regenerated.
4235
4236 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
4237
4238         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
4239         default includes instead of AC_HEADER_CHECK.
4240         * sysdeps/i386/configure: Regenerated.
4241
4242         [BZ #10716]
4243         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
4244         * math/s_cacoshf.c (__cacoshf): Likewise.
4245         * math/s_cacoshl.c (__cacoshl): Likewise.
4246         * math/s_casinh.c (__casinh): Set signs of result from argument.
4247         * math/s_casinhf.c (__casinhf): Likewise.
4248         * math/s_casinhl.c (__casinhl): Likewise.
4249         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
4250         (casinh_test): Add more tests.
4251         * sysdeps/i386/fpu/libm-test-ulps: Update.
4252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4253
4254 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
4255
4256         * po/zh_TW.po: Update from translation team.
4257
4258         * login/Makefile (distribute): Remove variable.
4259         * catgets/Makefile: Likewise.
4260         * mach/Makefile: Likewise.
4261         * malloc/Makefile: Likewise.
4262         * misc/Makefile: Likewise.
4263         * iconv/Makefile: Likewise.
4264         * nscd/Makefile: Likewise.
4265         * hurd/Makefile: Likewise.
4266         * manual/Makefile: Likewise.
4267         * locale/Makefile: Likewise.
4268         * intl/Makefile: Likewise.
4269         * conform/Makefile: Likewise.
4270         * nss/Makefile: Likewise.
4271         * time/Makefile: Likewise.
4272         * soft-fp/Makefile: Likewise.
4273         * dirent/Makefile: Likewise.
4274         * gmon/Makefile: Likewise.
4275         * po/Makefile: Likewise.
4276         * rt/Makefile: Likewise.
4277         * socket/Makefile: Likewise.
4278         * math/Makefile: Likewise.
4279         * signal/Makefile: Likewise.
4280         * debug/Makefile: Likewise.
4281         * elf/Makefile: Likewise.
4282         * timezone/Makefile: Likewise.
4283         * stdlib/Makefile: Likewise.
4284         * iconvdata/Makefile: Likewise.
4285         * sunrpc/Makefile: Likewise.
4286         * io/Makefile: Likewise.
4287         * argp/Makefile: Likewise.
4288         * inet/Makefile: Likewise.
4289         * hesiod/Makefile: Likewise.
4290         * grp/Makefile: Likewise.
4291         * csu/Makefile: Likewise.
4292         * wctype/Makefile: Likewise.
4293         * crypt/Makefile: Likewise.
4294         * libio/Makefile: Likewise.
4295         * string/Makefile: Likewise.
4296         * nis/Makefile: Likewise.
4297         * resolv/Makefile: Likewise.
4298         * stdio-common/Makefile: Likewise.
4299         * wcsmbs/Makefile: Likewise.
4300         * dlfcn/Makefile: Likewise.
4301         * posix/Makefile: Likewise.
4302
4303         [BZ #6959]
4304         * timezone/Makefile: Don't install timezone files, just the programs
4305         and scripts.
4306
4307 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
4308
4309         * nss/databases.def: Add missing gshadow entry.
4310
4311         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
4312
4313 2012-03-06  Marek Polacek  <polacek@redhat.com>
4314
4315         [BZ #13726]
4316         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
4317         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4318         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
4319         * stdio-common/tst-long-dbl-fphex.c: New file.
4320
4321 2012-03-06  David S. Miller  <davem@davemloft.net>
4322
4323         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4324         (set_obp_int): New function.
4325         (get_obp_int): New function.
4326         (__get_clockfreq_via_dev_openprom): Likewise.
4327         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4328         Avoid unused variable warnings on 'val' and use builtin_expect.
4329         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
4330         __builtin_expect.
4331         (INLINE_CLONE_SYSCALL): Likewise.
4332
4333 2012-03-05  David S. Miller  <davem@davemloft.net>
4334
4335         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4336
4337 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
4338
4339         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4340
4341         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
4342         only for |x| >= 40.
4343         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4344
4345 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4346
4347         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
4348         Replace gettimeofday with __vdso_gettimeofday.
4349
4350         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4351         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
4352         __vdso_clock_gettime and __vdso_getcpu.
4353
4354         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
4355         time with __vdso_time.
4356
4357 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4358
4359         * manual/lang.texi (size_t): Note types to which size_t may be
4360         equivalent with the GNU C Library, but do not describe when
4361         differences between them are significant.
4362
4363 2012-03-05  Andreas Jaeger  <aj@suse.de>
4364
4365         * sysdeps/i386/fpu/libm-test-ulps: Update.
4366
4367 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4368
4369         [BZ #3976]
4370         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
4371         (__ieee754_pow): Save and restore rounding mode and use
4372         round-to-nearest for main computations.
4373         * math/libm-test.inc (pow_test_tonearest): New function.
4374         (pow_test_towardzero): Likewise.
4375         (pow_test_downward): Likewise.
4376         (pow_test_upward): Likewise.
4377         (main): Call the new functions.
4378         * sysdeps/i386/fpu/libm-test-ulps: Update.
4379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4380
4381         [BZ #3976]
4382         * math/libm-test.inc (cosh_test_tonearest): New function.
4383         (cosh_test_towardzero): Likewise.
4384         (cosh_test_downward): Likewise.
4385         (cosh_test_upward): Likewise.
4386         (sinh_test_tonearest): Likewise.
4387         (sinh_test_towardzero): Likewise.
4388         (sinh_test_downward): Likewise.
4389         (sinh_test_upward): Likewise.
4390         (main): Call the new functions.
4391         * sysdeps/i386/fpu/libm-test-ulps: Update.
4392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4393
4394 2012-03-05  Tom de Vries  <tom@codesourcery.com>
4395
4396         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
4397         default stack guard is set in last bytes.
4398         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
4399
4400 2012-03-05  Kees Cook  <keescook@chromium.org>
4401
4402         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
4403
4404         [BZ #13656]
4405         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
4406         possibly allocate from heap instead of stack.
4407         * stdio-common/bug-vfprintf-nargs.c: New file.
4408         * stdio-common/Makefile (tests): Add nargs overflow test.
4409
4410 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
4411
4412         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4413
4414 2012-03-03  Marek Polacek  <polacek@redhat.com>
4415
4416         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
4417         * math/math_private.h: Likewise.
4418         * stdlib/tst-strtod.c: Likewise.
4419         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4420         * sysdeps/x86_64/bits/atomic.h: Likewise.
4421
4422 2012-03-02  David S. Miller  <davem@davemloft.net>
4423
4424         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
4425         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
4426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
4427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
4428         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
4429         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
4430         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
4431         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
4432
4433 2012-03-02  Roland McGrath  <roland@hack.frob.com>
4434
4435         [BZ #13792]
4436         * manual/examples/README: New file, says the example source files
4437         can be used under GPL>=2.
4438         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
4439         line containing just "*/".
4440         * manual/examples/add.c: Add copyright header (GPL>=2).
4441         * manual/examples/argp-ex1.c: Likewise.
4442         * manual/examples/argp-ex2.c: Likewise.
4443         * manual/examples/argp-ex3.c: Likewise.
4444         * manual/examples/argp-ex4.c: Likewise.
4445         * manual/examples/atexit.c: Likewise.
4446         * manual/examples/db.c: Likewise.
4447         * manual/examples/dir.c: Likewise.
4448         * manual/examples/dir2.c: Likewise.
4449         * manual/examples/execinfo.c: Likewise.
4450         * manual/examples/filecli.c: Likewise.
4451         * manual/examples/filesrv.c: Likewise.
4452         * manual/examples/fmtmsgexpl.c: Likewise.
4453         * manual/examples/genpass.c: Likewise.
4454         * manual/examples/inetcli.c: Likewise.
4455         * manual/examples/inetsrv.c: Likewise.
4456         * manual/examples/isockad.c: Likewise.
4457         * manual/examples/longopt.c: Likewise.
4458         * manual/examples/memopen.c: Likewise.
4459         * manual/examples/memstrm.c: Likewise.
4460         * manual/examples/mkfsock.c: Likewise.
4461         * manual/examples/mkisock.c: Likewise.
4462         * manual/examples/mygetpass.c: Likewise.
4463         * manual/examples/pipe.c: Likewise.
4464         * manual/examples/popen.c: Likewise.
4465         * manual/examples/rprintf.c: Likewise.
4466         * manual/examples/search.c: Likewise.
4467         * manual/examples/select.c: Likewise.
4468         * manual/examples/setjmp.c: Likewise.
4469         * manual/examples/sigh1.c: Likewise.
4470         * manual/examples/sigusr.c: Likewise.
4471         * manual/examples/stpcpy.c: Likewise.
4472         * manual/examples/strdupa.c: Likewise.
4473         * manual/examples/strftim.c: Likewise.
4474         * manual/examples/strncat.c: Likewise.
4475         * manual/examples/subopt.c: Likewise.
4476         * manual/examples/swapcontext.c: Likewise.
4477         * manual/examples/termios.c: Likewise.
4478         * manual/examples/testopt.c: Likewise.
4479         * manual/examples/testpass.c: Likewise.
4480         * manual/examples/timeval_subtract.c: Likewise.
4481
4482         [BZ #13792]
4483         * manual/time.texi (Elapsed Time): Move timeval_subtract example
4484         function to ...
4485         * manual/timeval_subtract.c.texi: ... here, new file.
4486
4487 2012-03-02  David S. Miller  <davem@davemloft.net>
4488
4489         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
4490
4491 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
4492
4493         [BZ #3976]
4494         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
4495         (__sin): Save and restore rounding mode and use round-to-nearest
4496         for all computations.
4497         (__cos): Save and restore rounding mode and use round-to-nearest
4498         for all computations.
4499         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
4500         <fenv.h>.
4501         (tan): Save and restore rounding mode and use round-to-nearest for
4502         all computations.
4503         * math/libm-test.inc (cos_test_tonearest): New function.
4504         (cos_test_towardzero): Likewise.
4505         (cos_test_downward): Likewise.
4506         (cos_test_upward): Likewise.
4507         (sin_test_tonearest): Likewise.
4508         (sin_test_towardzero): Likewise.
4509         (sin_test_downward): Likewise.
4510         (sin_test_upward): Likewise.
4511         (tan_test_tonearest): Likewise.
4512         (tan_test_towardzero): Likewise.
4513         (tan_test_downward): Likewise.
4514         (tan_test_upward): Likewise.
4515         (main): Call the new functions.
4516         * sysdeps/i386/fpu/libm-test-ulps: Update.
4517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4518
4519         [BZ #10135]
4520         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
4521         small n, then large n, before computing and testing k+n.
4522         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
4523         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
4524         Likewise.
4525         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
4526         Likewise.
4527         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
4528         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
4529         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
4530         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
4531         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4532         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4533         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
4534         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
4535         * math/libm-test.inc (scalbn_test): Add more tests.
4536         (scalbln_test): Likewise.
4537
4538         * manual/filesys.texi (mode_t): Describe constraints on size and
4539         signedness, not exact equivalence to a particular type.
4540         (ino_t): Likewise.
4541         (ino64_t): Likewise.
4542         (dev_t): Likewise.
4543         (nlink_t): Likewise.
4544         (blkcnt_t): Likewise.
4545         (blkcnt64_t): Likewise.
4546         * manual/llio.texi (off_t): Likewise.
4547
4548         [BZ #3976]
4549         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
4550         (__ieee754_exp): Save and restore rounding mode and use
4551         round-to-nearest for all computations.
4552         * math/libm-test.inc (exp_test_tonearest): New function.
4553         (exp_test_towardzero): Likewise.
4554         (exp_test_downward): Likewise.
4555         (exp_test_upward): Likewise.
4556         (main): Call the new functions.
4557         * sysdeps/i386/fpu/libm-test-ulps: Update.
4558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4559
4560 2012-03-01  Chris Demetriou  <cgd@google.com>
4561
4562         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
4563         have predictable order.
4564
4565 2012-03-01  David S. Miller  <davem@davemloft.net>
4566
4567         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
4568
4569         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
4570         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
4571         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
4572         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
4573
4574         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
4575         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
4576         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
4577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
4578         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
4579         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
4580         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
4581         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
4582         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
4583
4584         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4585
4586         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
4587         * sysdeps/sparc/fpu/libm-test-ulps: to here.
4588         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
4589
4590         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
4591         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4592         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4593         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
4594         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
4595         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
4596         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
4597         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4598         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4599         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
4600         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
4601         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4602         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4603         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4604         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4605         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4606         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
4607         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
4608         * sysdeps/sparc/elf/configure: Regenerated.
4609
4610 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
4611
4612         * configure.in (AS, LD): Require binutils 2.20 or later.
4613         * configure: Regenerated.
4614         * manual/install.texi (Tools for Compilation): Give binutils 2.20
4615         as required minimum version.
4616         * INSTALL: Regenerated.
4617
4618         [BZ #2541]
4619         [BZ #4108]
4620         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
4621         before squaring exponent.
4622         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
4623         bottom long double and 27 bits of top long double before squaring
4624         exponent.
4625         * math/libm-test.inc (erfc_test): Add more tests.
4626         * sysdeps/i386/fpu/libm-test-ulps: Update.
4627         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4629
4630 2012-03-01  Kai Tietz  <ktietz@redhat.com>
4631
4632         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
4633         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
4634         containing bit-fields.
4635         * soft-fp/extended.h (_FP_UNION_E): Likewise.
4636         * soft-fp/single.h (_FP_UNION_S): Likewise.
4637         * soft-fp/double.h (_FP_UNION_D): Likewise.
4638
4639 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4640
4641         [BZ #13786]
4642         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
4643         not include ../strcmp.S.
4644         [USE_AS_STRNCASECMP_L]: Likewise.
4645         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
4646         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
4647         * sysdeps/i386/i686/multiarch/strncase_l-c.c
4648         (__strncasecmp_l_ia32): Define as alias to
4649         __strncasecmp_l_nonascii.
4650
4651         [BZ #5794]
4652         * math/libm-test.inc (expm1_test): Add test for bug 5794.
4653         * sysdeps/i386/fpu/libm-test-ulps: Update.
4654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4655
4656         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
4657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4658
4659 2012-02-29  Jeff Law  <law@redhat.com>
4660
4661         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
4662         out of bounds read.
4663
4664 2012-02-29  Marek Polacek  <polacek@redhat.com>
4665
4666         [BZ #13706]
4667         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
4668         * elf/Makefile: Add rules to run tst-unused-dep.out.
4669
4670 2012-02-28  David S. Miller  <davem@davemloft.net>
4671
4672         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
4673         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
4674         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
4675         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
4676         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
4677         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
4678
4679 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4680
4681         * math/libm-test.inc (llround_test): Move one test from
4682         lround_test.  Use TEST_f_L in moved test.
4683         (lround_test): Move misplaced test to llround_test.  Add testcase
4684         from bug 2561.
4685
4686 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
4687
4688         * sysdeps/x86_64/fpu/e_expf.S: New file.
4689         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
4690
4691 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
4692
4693         [BZ #13637]
4694         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
4695         of remain_len that may cause incomplete multi-byte character and
4696         false match.
4697         * posix/bug-regex33.c: New file.
4698         * posix/Makefile (tests): Add bug-regex33.
4699
4700 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
4701
4702         * manual/macros.texi: New file.
4703         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
4704         * manual/libc.texinfo: Include macros.texi.
4705         * manual/creatute.texi: Likewise.
4706         * manual/install.texi: Likewise.
4707         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
4708         @glibcadj{} in references to the GNU C Library.
4709         * manual/charset.texi: Likewise.
4710         * manual/conf.texi: Likewise.
4711         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
4712         when not using those macros.
4713         * manual/creature.texi: Likewise.
4714         * manual/crypt.texi: Likewise.
4715         * manual/errno.texi: Likewise.
4716         * manual/filesys.texi: Likewise.
4717         * manual/header.texi: Likewise.
4718         * manual/install.texi: Likewise.
4719         * manual/intro.texi: Likewise.
4720         * manual/io.texi: Likewise.
4721         * manual/job.texi: Likewise.
4722         * manual/lang.texi: Likewise.
4723         * manual/libc.texiinfo: Likewise.
4724         * manual/llio.texi: Likewise.
4725         * manual/locale.texi: Likewise.
4726         * manual/maint.texi: Likewise.
4727         * manual/math.texi: Likewise.
4728         * manual/memory.texi: Likewise.
4729         * manual/message.texi: Likewise.
4730         * manual/nss.texi: Likewise.
4731         * manual/pattern.texi: Likewise.
4732         * manual/process.texi: Likewise.
4733         * manual/resource.texi: Likewise.
4734         * manual/search.texi: Likewise.
4735         * manual/setjmp.texi: Likewise.
4736         * manual/signal.texi: Likewise.
4737         * manual/socket.texi: Likewise.
4738         * manual/startup.texi: Likewise.
4739         * manual/stdio.texi: Likewise.
4740         * manual/string.texi: Likewise.
4741         * manual/sysinfo.texi: Likewise.
4742         * manual/syslog.texi: Likewise.
4743         * manual/terminal.texi: Likewise.
4744         * manual/time.texi: Likewise.
4745         * manual/users.texi: Likewise.
4746         * INSTALL: Regenerated.
4747         * NOTES: Regenerated.
4748         * sysdeps/gnu/errlist.c: Regenerated.
4749
4750 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
4751
4752         * include/dirent.h: Include <dirstream.h> before
4753         <dirent/dirent.h>.
4754
4755 2012-02-28  David S. Miller  <davem@davemloft.net>
4756
4757         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
4758         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
4759         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
4760         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
4761
4762 2012-02-27  David S. Miller  <davem@davemloft.net>
4763
4764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
4765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
4766         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
4767         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
4768
4769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
4770         frame pointer instead of stack pointer relative arg slot.
4771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4772         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4773         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4774
4775 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
4776
4777         [BZ #3992]
4778         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
4779
4780 2012-02-27  David S. Miller  <davem@davemloft.net>
4781
4782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
4783         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4784         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
4786         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4787         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4788         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
4789         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
4790
4791 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4792
4793         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
4794         later.  Allow versions 5-9.
4795         * configure: Regenerated.
4796         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
4797         required minimum version and 4.6 as recommended version.  Do not
4798         mention bugs in GCC 2.7 and 2.8.
4799         * INSTALL: Regenerated.
4800
4801 2012-02-27  David S. Miller  <davem@davemloft.net>
4802
4803         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
4804         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
4805         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
4806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
4807         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
4808         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
4809         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
4810         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
4811
4812         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
4813         manipulate bits before adding and subtracting TWO112[sx].
4814         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4815
4816 2012-02-27  Roland McGrath  <roland@hack.frob.com>
4817
4818         [BZ #13775]
4819         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
4820         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
4821         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
4822         being in POSIX, because they are in 1003.1-2008.
4823
4824         * rt/tst-aio.c: Include <fcntl.h>.
4825         * rt/tst-aio7.c: Likewise.
4826         * rt/tst-aio64.c: Likewise.
4827
4828         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
4829
4830 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4831
4832         * manual/install.texi (--with-headers): Describe headers as
4833         interface headers, not private headers.
4834         (Specific advice for GNU/Linux systems): Describe use of headers
4835         from "make headers_install", not private headers from older
4836         kernels.
4837         * INSTALL: Regenerated.
4838         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
4839         Change to 2.6.19.
4840         * sysdeps/unix/sysv/linux/configure: Regenerated.
4841
4842         * manual/llio.texi (fclean): Remove documentation.
4843
4844         * manual/Makefile (libc-texi-generated): New variable.  Include
4845         version.texi.
4846         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
4847         $(libc-texi-generated), not duplicated list of files.
4848         (version.texi, stamp-version): New rules.
4849         (realclean): Remove $(libc-texi-generated), not individual files
4850         from that list.  Do not remove dir-add.texinfo.
4851         * manual/libc.texinfo: Comment out uses of edition numbers and
4852         references to printed manual.  Remove last-updated dates.
4853         (EDITION): Comment out.
4854         (ISBN): Likewise.
4855         (VERSION, UPDATED): Remove.
4856         (version.texi): Include.
4857
4858 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
4859
4860         * sysdeps/posix/spawni.c: Include <signal.h>.
4861         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
4862         * sysdeps/pthread/aio_fsync.c: Likewise.
4863
4864 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
4865
4866         * conform/Makefile (tests): Run only when not cross-compiling and
4867         when fast-check is not defined.
4868
4869         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
4870         * conform/data/limits.h-data: Fixes for POSIX2008.
4871         * conform/run-conformtest.sh: Run all tests.
4872         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
4873         headers.
4874         * include/bits/dlfcn.h: Likewise.
4875         * include/langinfo.h: Likewise.
4876         * include/monetary.h: Likewise.
4877         * include/sys/poll.h: Likewise.
4878
4879         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
4880         for __USE_GNU.
4881         * posix/spawn.h: Define __need_sigset_t.
4882         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
4883         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
4884         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
4885         to get sigevent_t only.
4886         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
4887         only for __USE_GNU.
4888         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4889         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
4890         process_vm_writev only for __USE_GNU.
4891         * termios/termios.h: Declare tcgetsid also for POSIX2008.
4892
4893         * conform/Makefile: For now ignore errors from run-conformtest.
4894         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
4895         POSIX to avoid namespace pollution.  Don't prepend headers.
4896         * conform/data/aio.h-data: Fixes for POSIX testing.
4897         * conform/data/fcntl.h-data: Likewise.
4898         * conform/data/glob.h-data: Likewise.
4899         * conform/data/grp.h-data: Likewise.
4900         * conform/data/pthread.h-data: Likewise.
4901         * conform/data/pwd.h-data: Likewise.
4902         * conform/data/signal.h-data: Likewise.
4903         * conform/data/spawn.h-data: Likewise.
4904         * conform/data/stdio.h-data: Likewise.
4905         * conform/data/stdlib.h-data: Likewise.
4906         * conform/data/stropts.h-data: Likewise.
4907         * conform/data/sys/mman.h-data: Likewise.
4908         * conform/data/sys/stat.h-data: Likewise.
4909         * conform/data/sys/types.h-data: Likewise.
4910         * conform/data/sys/wait.h-data: Likewise.
4911         * conform/data/time.h-data: Likewise.
4912         * conform/data/unistd.h-data: Likewise.
4913         * conform/data/utime.h-data: Likewise.
4914
4915         * io/sys/stat.h: fchmod was always in POSIX.
4916         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
4917         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
4918         * rt/aio.h: Define __need_timespec before including <time.h>.
4919         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
4920         struct.  Add forward declaration of pthread_attr_t and use it in
4921         sigevent.
4922         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4923         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4924         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
4925         always remove CLK_TCK definition.
4926
4927 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
4928
4929         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
4930
4931 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
4932
4933         * conform/run-conformtest.sh: New file.
4934         * conform/Makefile: Run run-conformtest for tests.
4935         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
4936         support.
4937
4938         * conform/data/uchar.h-data: New file.
4939         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
4940         * conform/data/arpa/inet.h-data: Likewise.
4941         * conform/data/assert.h-data: Likewise.
4942         * conform/data/complex.h-data: Likewise.
4943         * conform/data/cpio.h-data: Likewise.
4944         * conform/data/ctype.h-data: Likewise.
4945         * conform/data/dirent.h-data: Likewise.
4946         * conform/data/dlfcn.h-data: Likewise.
4947         * conform/data/errno.h-data: Likewise.
4948         * conform/data/fcntl.h-data: Likewise.
4949         * conform/data/float.h-data: Likewise.
4950         * conform/data/fmtmsg.h-data: Likewise.
4951         * conform/data/fnmatch.h-data: Likewise.
4952         * conform/data/ftw.h-data: Likewise.
4953         * conform/data/glob.h-data: Likewise.
4954         * conform/data/grp.h-data: Likewise.
4955         * conform/data/iconv.h-data: Likewise.
4956         * conform/data/inttypes.h-data: Likewise.
4957         * conform/data/langinfo.h-data: Likewise.
4958         * conform/data/libgen.h-data: Likewise.
4959         * conform/data/limits.h-data: Likewise.
4960         * conform/data/locale.h-data: Likewise.
4961         * conform/data/math.h-data: Likewise.
4962         * conform/data/monetary.h-data: Likewise.
4963         * conform/data/mqueue.h-data: Likewise.
4964         * conform/data/ndbm.h-data: Likewise.
4965         * conform/data/net/if.h-data: Likewise.
4966         * conform/data/netdb.h-data: Likewise.
4967         * conform/data/netinet/in.h-data: Likewise.
4968         * conform/data/nl_types.h-data: Likewise.
4969         * conform/data/poll.h-data: Likewise.
4970         * conform/data/pthread.h-data: Likewise.
4971         * conform/data/pwd.h-data: Likewise.
4972         * conform/data/regex.h-data: Likewise.
4973         * conform/data/sched.h-data: Likewise.
4974         * conform/data/search.h-data: Likewise.
4975         * conform/data/semaphore.h-data: Likewise.
4976         * conform/data/setjmp.h-data: Likewise.
4977         * conform/data/signal.h-data: Likewise.
4978         * conform/data/spawn.h-data: Likewise.
4979         * conform/data/stdarg.h-data: Likewise.
4980         * conform/data/stdio.h-data: Likewise.
4981         * conform/data/stdlib.h-data: Likewise.
4982         * conform/data/string.h-data: Likewise.
4983         * conform/data/strings.h-data: Likewise.
4984         * conform/data/stropts.h-data: Likewise.
4985         * conform/data/sys/ipc.h-data: Likewise.
4986         * conform/data/sys/mman.h-data: Likewise.
4987         * conform/data/sys/msg.h-data: Likewise.
4988         * conform/data/sys/resource.h-data: Likewise.
4989         * conform/data/sys/select.h-data: Likewise.
4990         * conform/data/sys/sem.h-data: Likewise.
4991         * conform/data/sys/shm.h-data: Likewise.
4992         * conform/data/sys/socket.h-data: Likewise.
4993         * conform/data/sys/stat.h-data: Likewise.
4994         * conform/data/sys/statvfs.h-data: Likewise.
4995         * conform/data/sys/time.h-data: Likewise.
4996         * conform/data/sys/timeb.h-data: Likewise.
4997         * conform/data/sys/times.h-data: Likewise.
4998         * conform/data/sys/types.h-data: Likewise.
4999         * conform/data/sys/uio.h-data: Likewise.
5000         * conform/data/sys/un.h-data: Likewise.
5001         * conform/data/sys/utsname.h-data: Likewise.
5002         * conform/data/sys/wait.h-data: Likewise.
5003         * conform/data/syslog.h-data: Likewise.
5004         * conform/data/tar.h-data: Likewise.
5005         * conform/data/termios.h-data: Likewise.
5006         * conform/data/utime.h-data: Likewise.
5007         * conform/data/utmpx.h-data: Likewise.
5008         * conform/data/varargs.h-data: Likewise.
5009         * conform/data/wchar.h-data: Likewise.
5010         * conform/data/wctype.h-data: Likewise.
5011         * conform/data/wordexp.h-data: Likewise.
5012
5013         * include/stropts.h: New file.
5014         * include/uchar.h: New file.
5015         * include/aio.h: Changes to allow conformtest.pl to use the headers.
5016         * include/assert.h: Likewise.
5017         * include/ctype.h: Likewise.
5018         * include/dirent.h: Likewise.
5019         * include/dlfcn.h: Likewise.
5020         * include/fcntl.h: Likewise.
5021         * include/fnmatch.h: Likewise.
5022         * include/glob.h: Likewise.
5023         * include/grp.h: Likewise.
5024         * include/libio.h: Likewise.
5025         * include/locale.h: Likewise.
5026         * include/math.h: Likewise.
5027         * include/net/if.h: Likewise.
5028         * include/netdb.h: Likewise.
5029         * include/netinet/in.h: Likewise.
5030         * include/pthread.h: Likewise.
5031         * include/pwd.h: Likewise.
5032         * include/regex.h: Likewise.
5033         * include/sched.h: Likewise.
5034         * include/search.h: Likewise.
5035         * include/setjmp.h: Likewise.
5036         * include/signal.h: Likewise.
5037         * include/stdio.h: Likewise.
5038         * include/stdlib.h: Likewise.
5039         * include/string.h: Likewise.
5040         * include/sys/cdefs.h: Likewise.
5041         * include/sys/mman.h: Likewise.
5042         * include/sys/msg.h: Likewise.
5043         * include/sys/resource.h: Likewise.
5044         * include/sys/select.h: Likewise.
5045         * include/sys/socket.h: Likewise.
5046         * include/sys/stat.h: Likewise.
5047         * include/sys/statvfs.h: Likewise.
5048         * include/sys/time.h: Likewise.
5049         * include/sys/times.h: Likewise.
5050         * include/sys/uio.h: Likewise.
5051         * include/sys/utsname.h: Likewise.
5052         * include/sys/wait.h: Likewise.
5053         * include/termios.h: Likewise.
5054         * include/time.h: Likewise.
5055         * include/ulimit.h: Likewise.
5056         * include/unistd.h: Likewise.
5057         * include/utime.h: Likewise.
5058         * include/wchar.h: Likewise.
5059         * include/wctype.h: Likewise.
5060         * include/wordexp.h: Likewise.
5061
5062         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
5063
5064         * time/time.h: TIME_UTC must be a macro.
5065         Make timespec_get available for ISO C11 only as well.
5066
5067 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
5068
5069         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
5070         Reported by Peng Haitao <penght@cn.fujitsu.com>.
5071
5072 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5073
5074         * configure.in: Use -o not -a in test for unsupported multi-arch.
5075
5076 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5077
5078         * manual/texinfo.tex: Update to version 2012-01-19.16.
5079
5080 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
5081
5082         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
5083
5084 2012-02-24  Roland McGrath  <roland@hack.frob.com>
5085
5086         [BZ #13738]
5087         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
5088         * manual/fdl-1.3.texi: New file.
5089         * manual/fdl-1.1.texi: File removed.
5090
5091         [BZ #13738]
5092         * manual/libc.texinfo (FDL_VERSION): New @set.
5093         Use it for mention of FDL in cover text.
5094         (Documentation License): Use it in @include file name.
5095
5096 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5097             Roland McGrath  <roland@hack.frob.com>
5098
5099         [BZ #5461]
5100         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
5101         not LONG_LONG_MAX and LONG_LONG_MIN.
5102         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
5103         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
5104         name.
5105         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
5106
5107 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5108
5109         [BZ #2547]
5110         [BZ #11365]
5111         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
5112         manipulate bits before adding and subtracting TWO23[sx].
5113         * math/libm-test.inc (nearbyint_test): Add more tests.
5114
5115 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5116
5117         [BZ #2548]
5118         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
5119         bits before adding and subtracting TWO23[sx].
5120         * math/libm-test.inc (rint_test): Add more tests.
5121         (rint_test_tonearest): Likewise.
5122         (rint_test_towardzero): Likewise.
5123         (rint_test_downward): Likewise.
5124         (rint_test_upward: Likewise.
5125
5126 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5127
5128         [BZ #10110]
5129         * include/stdc-predef.h: New file.  Extracted from features.h.
5130         * include/features.h: Include stdc-predef.h.
5131         * Makefile (headers): Add stdc-predef.h.
5132         * CONFORMANCE (Compiler limitations): Update.
5133
5134 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
5135
5136         * manual/libc.texinfo (VERSION, UPDATED): Revert.
5137
5138 2012-02-21  David S. Miller  <davem@davemloft.net>
5139
5140         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
5141         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
5142
5143 2012-02-20  David S. Miller  <davem@davemloft.net>
5144
5145         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
5146         using a normal save/restore sequence, rather than allocating a
5147         dummy stack frame just to store a frame pointer and restore.
5148         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5149
5150 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5151
5152         * manual/install.texi: Fix stray word in line-wrapped comment.
5153
5154 2012-02-20  David S. Miller  <davem@davemloft.net>
5155
5156         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
5157         both binutils and gcc support GOTDATA.
5158
5159         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
5160         "rd %pc" in the PIC register setup sequences.
5161
5162         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
5163         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
5164         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5165         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
5166         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5167         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5168         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5169         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5170         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5171         (SYSCALL_ERROR_HANDLER): Likewise.
5172         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
5173         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
5174         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5175         (SYSCALL_ERROR_HANDLER): Likewise.
5176
5177         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
5178         (HAVE_GCC_GOTDATA): New.
5179         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
5180         relocation support in both binutils and gcc.
5181         * sysdeps/sparc/elf/configure: Regenerate.
5182
5183         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
5184         * sysdeps/sparc/sparc32/elf/configure: Delete.
5185         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
5186         * sysdeps/sparc/sparc64/elf/configure: Delete.
5187         * sysdeps/sparc/elf/configure.in: New file.
5188         * sysdeps/sparc/elf/configure: Generate.
5189
5190         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
5191         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
5192         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
5193         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
5194         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
5195
5196 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5197
5198         * manual/install.texi: Do not mention specific glibc version
5199         numbers.
5200         * manual/libc.texinfo (VERSION, UPDATED): Update.
5201         (@copying): Use @copyright{} and range of years.
5202
5203 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
5204
5205         [BZ #13695]
5206         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
5207         [crti.S not in sysdirs] (generated): Do not append.
5208         [crti.S not in sysdirs] (omit-deps): Likewise.
5209         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
5210         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
5211         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
5212         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
5213         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
5214         Likewise.
5215         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
5216         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
5217         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
5218         * csu/defs.awk: Remove file.
5219         * sysdeps/generic/initfini.c: Likewise.
5220         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
5221         variable.
5222         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
5223         Likewise.
5224
5225 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5226
5227         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
5228         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
5229         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
5230         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
5231         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5232         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
5233         <bits/epoll.h>.
5234         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
5235         (__EPOLL_PACKED): Define to empty if not defined by
5236         <bits/epoll.h>.
5237         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
5238         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5239         bits/epoll.h.
5240
5241 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5242
5243         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
5244         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
5245         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
5246         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
5247         <bits/timerfd.h>.
5248         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
5249         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5250         bits/timerfd.h.
5251
5252 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
5253
5254         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
5255         in C locale.
5256         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5257         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
5258         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
5259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5260
5261 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
5262
5263         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5264         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
5265
5266 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
5267
5268         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
5269         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
5270         defined.
5271         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
5272         Likewise.
5273         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
5274         entry for 2.16.
5275
5276 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
5277
5278         * math/w_acos.c: Use non-signaling floating-point comparisons.
5279         * math/w_acosf.c: Likewise.
5280         * math/w_acosh.c: Likewise.
5281         * math/w_acoshf.c: Likewise.
5282         * math/w_acoshl.c: Likewise.
5283         * math/w_acosl.c: Likewise.
5284         * math/w_asin.c: Likewise.
5285         * math/w_asinf.c: Likewise.
5286         * math/w_asinl.c: Likewise.
5287         * math/w_atanh.c: Likewise.
5288         * math/w_atanhf.c: Likewise.
5289         * math/w_atanhl.c: Likewise.
5290         * math/w_exp2.c: Likewise.
5291         * math/w_exp2f.c: Likewise.
5292         * math/w_exp2l.c: Likewise.
5293         * math/w_j0.c: Likewise.
5294         * math/w_j0f.c: Likewise.
5295         * math/w_j0l.c: Likewise.
5296         * math/w_j1.c: Likewise.
5297         * math/w_j1f.c: Likewise.
5298         * math/w_j1l.c: Likewise.
5299         * math/w_jn.c: Likewise.
5300         * math/w_jnf.c: Likewise.
5301         * math/w_log.c: Likewise.
5302         * math/w_log10.c: Likewise.
5303         * math/w_log10f.c: Likewise.
5304         * math/w_log10l.c: Likewise.
5305         * math/w_log2.c: Likewise.
5306         * math/w_log2f.c: Likewise.
5307         * math/w_log2l.c: Likewise.
5308         * math/w_logf.c: Likewise.
5309         * math/w_logl.c: Likewise.
5310         * math/w_sqrt.c: Likewise.
5311         * math/w_sqrtf.c: Likewise.
5312         * math/w_sqrtl.c: Likewise.
5313         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5314         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
5315         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5316         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
5317         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
5318
5319 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5320
5321         [BZ #9739]
5322         * manual/string.texi (strnlen): Use correct parameter name in
5323         equivalent expression.
5324
5325 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5326
5327         [BZ #11174]
5328         * manual/users.texi (seteuid): Consistently use neweuid for
5329         argument name.
5330
5331 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5332
5333         [BZ #13704]
5334         * manual/nss.texi (Services in the NSS configuration): Correct
5335         list of services in example configuration file.
5336
5337 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
5338
5339         [BZ #11322]
5340         * manual/arith.texi: Remove statements about negative zero
5341         behaving identically to zero.
5342
5343 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5344
5345         [BZ #5993]
5346         * manual/install.texi: Do not document upgrading from libc5.
5347
5348 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5349
5350         [BZ #4596]
5351         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
5352
5353 2012-02-18  David S. Miller  <davem@davemloft.net>
5354
5355         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
5356         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
5357         %o7 across the call.
5358         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
5359         instead.
5360         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
5361         SETUP_PIC_REG_LEAF.
5362         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5363         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
5364         * sysdeps/sparc/crtn.S: Likewise.
5365
5366 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
5367
5368         * aout/Makefile: Remove.
5369
5370 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
5371
5372         [BZ #13058]
5373         * manual/examples/argp-ex1.c (main): Format definition in GNU
5374         style.
5375         * manual/examples/argp-ex2.c (main): Likewise.
5376         * manual/examples/argp-ex3.c (main): Likewise.
5377         * manual/examples/argp-ex4.c (main): Likewise.
5378         * manual/examples/longopt.c (main): Use new-style prototype
5379         definition.
5380         * manual/examples/strncat.c (main): Specify return type and use
5381         (void) for arguments.
5382         * manual/examples/subopt.c (main): Use char **argv argument.
5383
5384 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5385
5386         [BZ #5077]
5387         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
5388         rounding modes.
5389
5390 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
5391
5392         [BZ #6907]
5393         * manual/string.texi (strchr): Change when strchrnul is
5394         recommended.
5395
5396 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
5397
5398         [BZ #174]
5399         * manual/locale.texi (setlocale): Document LOCPATH.
5400
5401 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5402
5403         [BZ #10210]
5404         * manual/process.texi (execle): Move @dots{} before last argument.
5405
5406 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
5407
5408         [BZ #12047]
5409         * manual/charset.texi (Generic Charset Conversion): Fix typo
5410         (LC_TYPE -> LC_CTYPE).
5411
5412 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
5413
5414         [BZ #5805]
5415         * manual/arith.texi (scalbn): Use @var{} on parameter names.
5416         (scalbnf): Likewise.
5417         (scalbnl): Likewise.
5418         (scalbln): Likewise.
5419         (scalblnf): Likewise.
5420         (scalblnl): Likewise.
5421         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
5422         (vwarnx): Likewise.
5423         (verr): Likewise.
5424         (verrx): Likewise.
5425         * manual/filesys.texi (telldir): Use braces around return type.
5426         * manual/llio.texi (mmap): Add space after comma.
5427         (mmap64): Likewise.
5428         * manual/math.texi (jn): Use @var{} on parameter names.
5429         (jnf): Likewise.
5430         (jnl): Likewise.
5431         (yn): Likewise.
5432         (ynf): Likewise.
5433         (ynl): Likewise.
5434         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
5435         line.
5436         * manual/resource.texi (ulimit): Use @dots{} instead of literal
5437         "...".
5438         (sched_get_priority_min): Remove semicolon on @deftypefun line.
5439         (sched_get_priority_max): Likewise.
5440         * manual/signal.texi (sigvec): Add space after comma.
5441         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
5442         names.
5443         (if_indextoname): Likewise.
5444         (if_freenameindex): Likewise.
5445         (sendto): Use ',' instead of '.' in prototype.
5446         * manual/startup.texi (syscall): Use @dots{} instead of literal
5447         "...".
5448         * manual/stdio.texi (__fpending): Separate initial words of
5449         paragraph from @deftypefun line.
5450         * manual/syslog.texi (syslog): Use @dots{} instead of literal
5451         "...".
5452         (vsyslog): Use @var{} on parameter names.
5453         * manual/terminal.texi (stty): Use @var{} on parameter names.
5454         * manual/users.texi (getutmp): Use @var{} on parameter names.
5455         (getutmpx): Likewise.
5456
5457 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5458
5459         [BZ #6884]
5460         * manual/stdio.texi (fopen): Fix typos in description of
5461         ",ccs=STRING".
5462
5463 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
5464
5465         [BZ #4026]
5466         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
5467         get clock_id definition.
5468
5469 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
5470
5471         [BZ #4822]
5472         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
5473         (madvise): Cast every argument to void on its own.
5474
5475 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5476
5477         [BZ #9902]
5478         * manual/startup.texi (Exit Status): Fix typo.
5479
5480 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5481
5482         [BZ #10140]
5483         * manual/examples/argp-ex1.c: Include <stdlib.h>.
5484         * manual/examples/argp-ex2.c: Likewise.
5485         * manual/examples/argp-ex3.c: Likewise.
5486
5487 2012-02-16  Richard Henderson  <rth@redhat.com>
5488
5489         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
5490         * sysdeps/s390/s390-32/initfini.c: Remove.
5491         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
5492         * sysdeps/s390/s390-64/initfini.c: Remove.
5493
5494 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5495
5496         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
5497         compiler output for sysdeps/generic/initfini.c.
5498         * sysdeps/sh/elf/initfini.c: Remove file.
5499
5500 2012-02-16  David S. Miller  <davem@davemloft.net>
5501
5502         [BZ #11494]
5503         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
5504
5505         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
5506         * sysdeps/sparc/crti.S: New file.
5507         * sysdeps/sparc/crtn.S: New file.
5508         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
5509         * sysdeps/sparc/sparc64/Makefile: Likewise.
5510
5511 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
5512
5513         [BZ #3335]
5514         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
5515
5516 2012-02-15  Roland McGrath  <roland@hack.frob.com>
5517
5518         [BZ #4822]
5519         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
5520
5521         * mach/devstream.c (cookie_io_functions_t): Macro removed.
5522         (write, read, close): Likewise.
5523         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5524
5525 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
5526
5527         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
5528         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
5529         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
5530         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
5531         <bits/signalfd.h>.
5532         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
5533         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5534         bits/signalfd.h.
5535
5536 2012-02-14  Marek Polacek  <polacek@redhat.com>
5537
5538         * sysdeps/x86_64/crti.S: New file.
5539         * sysdeps/x86_64/crtn.S: New file.
5540         * sysdeps/x86_64/elf/initfini.c: Remove file.
5541
5542 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5543
5544         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
5545         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
5546         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
5547         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
5548         <bits/inotify.h>.
5549         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
5550         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5551         bits/inotify.h.
5552
5553 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5554
5555         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
5556         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
5557         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
5558         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
5559         <bits/eventfd.h>.
5560         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
5561         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5562         bits/eventfd.h.
5563
5564 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
5565
5566         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
5567         __feraiseexcept instead of feraiseexcept.
5568
5569         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
5570         nanosleep invocations.
5571         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
5572         strings, and add error checking for a nanosleep invocations.
5573
5574 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5575
5576         Replace FSF snail mail address with URLs, as per GNU coding standards.
5577         Most of the snail mail addresses were wrong anyway, and omitting
5578         them makes the source code easier to maintain.  Almost all of the
5579         changes are to license notices and to locale LC_IDENTIFICATION
5580         addresses, except for this one:
5581         * manual/libc.texinfo: In "Published by", give the FSF's URL,
5582         not its snail mail address.
5583
5584 2012-02-09  Richard Henderson  <rth@twiddle.net>
5585
5586         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
5587         of kernel-features.h.
5588
5589         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
5590
5591 2012-02-08  Marek Polacek  <polacek@redhat.com>
5592
5593         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
5594         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
5595         * sysdeps/gnu/_G_config.h: Likewise.
5596         * sysdeps/generic/_G_config.h: Likewise.
5597
5598 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
5599
5600         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
5601         tests.
5602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5603
5604         * sysdeps/powerpc/powerpc32/crti.S: New file.
5605         * sysdeps/powerpc/powerpc32/crtn.S: New file.
5606         * sysdeps/powerpc/powerpc64/crti.S: New file.
5607         * sysdeps/powerpc/powerpc64/crtn.S: New file.
5608
5609         * Makeconfig (have-initfini): Don't set.
5610         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
5611         * configure.in (nopic_initfini): Don't substitute.
5612         * config.h.in (HAVE_INITFINI): Don't #undef.
5613         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
5614         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
5615
5616 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
5617
5618         Support crti.S and crtn.S provided directly by architectures.
5619         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
5620         [crti.S in sysdirs] (omit-deps): Likewise.
5621         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
5622         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
5623         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
5624         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
5625         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
5626         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
5627         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
5628         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
5629         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
5630         compiler output for sysdeps/generic/initfini.c.
5631         * sysdeps/i386/elf/Makefile: Remove file.
5632         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
5633
5634 2012-02-07  Marek Polacek  <polacek@redhat.com>
5635
5636         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
5637         * sysdeps/gnu/_G_config.h: Likewise.
5638         * sysdeps/mach/hurd/_G_config.h: Likewise.
5639
5640 2012-02-07  Marek Polacek  <polacek@redhat.com>
5641
5642         * math/Makefile (tests): Add tst-CMPLX2.
5643         * math/tst-CMPLX2.c: New file.
5644
5645 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
5646
5647         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5648
5649         * math/libm-test.inc (jn_test): Add missing L suffix.
5650
5651 2012-02-06  Marek Polacek  <polacek@redhat.com>
5652
5653         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
5654         * sysdeps/i386/fpu/e_powf.S: Likewise.
5655         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5656         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5657         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5658         * sysdeps/i386/fpu/e_pow.S: Likewise.
5659         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5660         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5661         * sysdeps/i386/fpu/s_expm1.S: Likewise.
5662         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5663         * sysdeps/i386/fpu/e_log2.S: Likewise.
5664         * sysdeps/i386/fpu/e_log2l.S: Likewise.
5665         * sysdeps/i386/fpu/e_scalb.S: Likewise.
5666         * sysdeps/i386/fpu/e_powl.S: Likewise.
5667         * sysdeps/i386/fpu/s_log1p.S: Likewise.
5668         * sysdeps/i386/fpu/e_log10f.S: Likewise.
5669         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5670         * sysdeps/i386/fpu/e_logl.S: Likewise.
5671         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5672         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
5673         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5674         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5675         * sysdeps/i386/fpu/e_log2f.S: Likewise.
5676         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5677         * sysdeps/i386/fpu/e_log.S: Likewise.
5678         * sysdeps/i386/fpu/s_cexp.S: Likewise.
5679         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5680         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
5681         * sysdeps/i386/fpu/e_logf.S: Likewise.
5682         * sysdeps/i386/fpu/e_log10l.S: Likewise.
5683         * sysdeps/i386/fpu/e_atanh.S: Likewise.
5684         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
5685         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5686         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5687         * sysdeps/i386/fpu/e_log10.S: Likewise.
5688         * sysdeps/i386/fpu/s_frexp.S: Likewise.
5689         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5690         * sysdeps/i386/fpu/s_asinh.S: Likewise.
5691         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5692         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5693         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5694         * sysdeps/i386/asm-syntax.h: Likewise.
5695         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5696         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5697         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5698         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5699         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
5700         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5701         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5702         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5703         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5704         * sysdeps/powerpc/sysdep.h: Likewise.
5705         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5706         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5707
5708 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5709
5710         [BZ #411]
5711         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
5712
5713 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5714
5715         * sysdeps/i386/sysdep.h: Include <features.h>.
5716         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
5717         version.
5718
5719 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
5720
5721         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
5722         Define.
5723         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
5724         LOAD_PIC_REG_STR.
5725
5726 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5727
5728         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
5729         (SETUP_PIC_REG): Use GET_PC_THUNK.
5730         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
5731         macro.
5732
5733 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5734
5735         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
5736         for non-PIC compilation.
5737         (SETUP_PIC_REG): Add .p2align directive.
5738         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
5739         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
5740         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5741         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5742         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5743         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5744         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
5745         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
5746         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5747         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5748         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5749         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5750         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5751         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5752         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5753         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5754         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5755         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5756         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5757         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5758         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5759         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5760         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5761         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
5762         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5763         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5764         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5765         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5766         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5767         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5768         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5769         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5770         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5771         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5772         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5773         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5774         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5775         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5776         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5777         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5778         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5779
5780 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5781
5782         * math/tst-CMPLX.c: Include <stdio.h>.
5783
5784 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
5785
5786         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
5787         float.
5788         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5789         * sysdeps/sparc/bits/mathdef.h: Likewise.
5790
5791 2012-01-31  Marek Polacek  <polacek@redhat.com>
5792
5793         * libio/libio.h: Don't define _PARAMS.
5794         * locale/programs/config.h: Don't define PARAMS.
5795         * stdlib/strtol_l.c: Likewise.
5796         (__strtol_l): Remove PARAMS from the prototype.
5797
5798 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
5799
5800         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
5801         names.  Just use the correct names.  Remove unnecessary wrapper
5802         functions.
5803         * malloc/arena.c: Likewise.
5804         * malloc/hooks.c: Likewise.
5805
5806         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
5807         ARENA_TEST says not to.  Simplify test for creation of a new arena.
5808         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
5809
5810 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
5811
5812         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
5813         into tail calls.
5814         (update_get_addr): New function.
5815         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
5816         GET_ADDR_MODULE parameter.
5817
5818 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5819
5820         * crypt/cert.c: Remove __STDC__ conditionals.
5821         * crypt/crypt-entry.c: Likewise.
5822         * crypt/crypt_util.c: Likewise.
5823         * libio/filedoalloc.c: Likewise.
5824         * libio/fileops.c: Likewise.
5825         * libio/genops.c: Likewise.
5826         * libio/iofclose.c: Likewise.
5827         * libio/iofdopen.c: Likewise.
5828         * libio/iofopen.c: Likewise.
5829         * libio/iofopen64.c: Likewise.
5830         * libio/iogetdelim.c: Likewise.
5831         * libio/iopopen.c: Likewise.
5832         * libio/obprintf.c: Likewise.
5833         * libio/oldfileops.c: Likewise.
5834         * libio/oldiofclose.c: Likewise.
5835         * libio/oldiofdopen.c: Likewise.
5836         * libio/oldiofopen.c: Likewise.
5837         * libio/oldiopopen.c: Likewise.
5838         * libio/wfiledoalloc.c: Likewise.
5839         * libio/wgenops.c: Likewise.
5840         * locale/programs/xmalloc.c: Likewise.
5841         * misc/syslog.c: Likewise.
5842         * stdio-common/xbug.c: Likewise.
5843         * string/memchr.c: Likewise.
5844         * string/memcmp.c: Likewise.
5845         * string/memrchr.c: Likewise.
5846         * string/rawmemchr.c: Likewise.
5847         * sysdeps/posix/getcwd.c: Likewise.
5848         * time/strftime_l.c: Likewise.
5849
5850 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
5853         * config.make.in (config-cflags-sse2avx): Define.
5854         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
5855         Fix typo.
5856
5857 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
5858
5859         * scripts/config.guess: Update from upstream config git repository.
5860         * scripts/config.sub: Likewise.
5861
5862 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
5863
5864         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
5865         (EM_NUM): Update.
5866         (R_TILEPRO_*, R_TILEGX_*): New macros.
5867
5868         * scripts/firstversions.awk: Fix bug in version range handling.
5869
5870         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
5871
5872         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
5873
5874         * include/sys/epoll.h: New file.
5875         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
5876         libc_hidden_def.
5877
5878 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
5879
5880         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
5881         Avoid unnecessary __WORDSIZE == 64 test.
5882         (fmaxf): Use VEX format if possible.
5883         (fmax): Likewise.
5884         (fminf): Likewise.
5885         (fmin): Likewise.
5886
5887         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
5888         * math/math_private.h: Remove libc_fegetround* and
5889         libc_fesetround*.
5890         * sysdeps/i386/configure.in: Check for -msse2avx.
5891         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
5892         also if SSE2AVX is defined.
5893         Remove libc_fegetround* and libc_fesetround*.
5894         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
5895         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
5896         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
5897         of HAS_YMM_USABLE.
5898         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5899         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5900         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5901         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5902         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5903
5904         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
5905
5906 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5907
5908         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
5909         size is not set.
5910         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
5911
5912 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
5913
5914         [BZ #13618]
5915         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
5916         relocation.
5917         * Makeconfig (libm): Define.
5918         * elf/Makefile: Add rules to build and run tst-relsort1.
5919         * elf/tst-relsort1.c: New file.
5920         * elf/tst-relsort1mod1.c: New file.
5921         * elf/tst-relsort1mod2.c: New file.
5922
5923 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
5924
5925         * math/s_ldexp.c: Remove __STDC__ conditionals.
5926         * math/s_ldexpf.c: Likewise.
5927         * math/s_ldexpl.c: Likewise.
5928         * math/s_nextafter.c: Likewise.
5929         * math/s_nexttowardf.c: Likewise.
5930         * math/s_significand.c: Likewise.
5931         * math/s_significandf.c: Likewise.
5932         * math/s_significandl.c: Likewise.
5933         * math/w_jnl.c: Likewise.
5934         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5935         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5936         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5937         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5938         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5939         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5940         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
5941         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5942         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5943         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5944         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5945         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5946         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5947         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5948         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5949         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5950         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5951         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5952         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5953         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5954         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5955         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5956         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5957         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5958         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5959         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5960         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5961         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5962         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5963         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5964         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5965         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5966         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5967         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5968         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5969         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5970         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5971         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5972         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5973         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5974         * sysdeps/ieee754/k_standard.c: Likewise.
5975         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5976         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5977         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5978         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5979         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5980         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5981         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5982         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5983         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5984         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5985         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5986         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5987         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5988         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5989         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5990         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5991         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5992         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5993         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5994         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5995         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5996         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5997         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5998         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5999         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6000         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6001         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6002         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6003         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6004         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
6005         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
6006         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6007         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6008         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
6009         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
6010         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
6011         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6012         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
6013         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
6014         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6015         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6016         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
6017         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6018         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6019         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
6020         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
6021         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
6022         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6023         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
6024         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6025         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6026         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6027         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6028         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
6029         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
6030         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
6031         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6032         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6033         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6034         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6035         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
6036         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6037         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
6038         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6039         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
6040         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6041         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
6042         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
6043         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
6044         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
6045         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
6046         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
6047         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
6048         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
6049         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
6050         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
6051         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
6052         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
6053         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
6054         * sysdeps/ieee754/s_matherr.c: Likewise.
6055         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
6056         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
6057         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6058         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6059
6060 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
6061
6062         * crypt/md5.h: Remove __STDC__ conditionals.
6063         * libio/libioP.h: Likewise.
6064         * locale/programs/config.h: Likewise.
6065         * sysdeps/generic/sysdep.h: Likewise.
6066         * sysdeps/i386/asm-syntax.h: Likewise.
6067         * sysdeps/s390/asm-syntax.h: Likewise.
6068         * sysdeps/unix/sysdep.h: Likewise.
6069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6071
6072 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
6073
6074         * libio/libio.h: Remove __STDC__ conditionals.
6075         * malloc/obstack.h: Likewise.
6076         * math/complex.h: Likewise.
6077         * math/math.h: Likewise.
6078         * sysdeps/generic/_G_config.h: Likewise.
6079         * sysdeps/gnu/_G_config.h: Likewise.
6080         * sysdeps/mach/hurd/_G_config.h: Likewise.
6081         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6082         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
6083         * sysdeps/sparc/bits/mathdef.h: Likewise.
6084
6085 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
6086
6087         [BZ #13583]
6088         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
6089         Clean up HAS_* macros.
6090         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
6091         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
6092         possible.
6093         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
6094         HAS_AVX.
6095         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6096         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6097         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6098         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6099         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6100
6101 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
6102
6103         * elf/tst-unique3.cc (gets): Remove declaration.
6104         * elf/tst-unique3lib.cc (gets): Likewise.
6105         * elf/tst-unique3lib2.cc (gets): Likewise.
6106         * elf/tst-unique4.cc (gets): Likewise.
6107
6108 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
6109
6110         * include/stdio.h: Add C++ protection.  Add gets declarations and
6111         definitions.
6112         * debug/tst-chk1.c: Don't declare gets here.
6113         * stdio-common/tst-gets.c: Likewise.
6114
6115 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
6116
6117         * posix/glob: Remove directory.
6118
6119 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
6120
6121         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
6122
6123 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
6124
6125         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
6126         of the non-standard EPFNOSUPPORT.
6127
6128 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6129
6130         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
6131         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
6132         ANYWHERE set to 1 only on KERN_NO_SPACE error.
6133
6134 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
6135
6136         * wcsmbs/uchar.h: Test __STDC_VERSION__.
6137
6138 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
6139
6140         * nscd/aicache.c (addhstaiX): Do not cache negative results of
6141         transient errors.
6142         * nscd/grpcache.c (cache_addgr): Likewise.
6143         * nscd/hstcache.c (cache_addhst): Likewise.
6144         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6145         * nscd/pwdcache.c (cache_addpw): Likewise.
6146         * nscd/servicescache.c (cache_addserv): Likewise.
6147
6148 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
6149
6150         * malloc/malloc.c: Various cleanups.
6151         * malloc/hooks.c: Likewise.
6152
6153         * stdlib/Makefile (tests): Add bug-fmtmsg1.
6154         * stdlib/bug-fmtmsg1.c: New file.
6155
6156         * stdlib/fmtmsg.c (init): Add missing unlock.
6157         Patch by Peng Haitao <penght@cn.fujitsu.com>.
6158
6159 2012-01-12  Marek Polacek  <polacek@redhat.com>
6160
6161         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
6162         and _GNU_SOURCE.
6163
6164 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
6165
6166         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
6167         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
6168         macro to ensure uniqueness of label name.
6169         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
6170         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
6171
6172 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
6173
6174         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
6175
6176         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
6177         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
6178         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
6179         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
6180
6181 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
6182
6183         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
6184
6185         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
6186         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
6187         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
6188
6189         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
6190
6191         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
6192         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
6193         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
6194         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
6195
6196         * math/bits/math-finite.h: Add ldexp support.
6197
6198 2012-01-10  Marek Polacek  <polacek@redhat.com>
6199
6200         * locale/programs/localedef.h (show_archive_content): Add noreturn
6201         attribute.
6202
6203 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
6204
6205         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
6206
6207 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6208
6209         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
6210
6211         * io/Makefile (headers): Add bits/poll2.h.
6212
6213 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
6214
6215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
6216         typo #include statement.
6217
6218 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6219
6220         * include/sys/cdefs.h: Define __attribute_alloc_size.
6221         * catgets/gencat.c: Add alloc_size attribute and apply consistently
6222         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
6223         * elf/pldd.c: Likewise.
6224         * iconv/iconv_charmap.c: Likewise.
6225         * iconv/iconvconfig.c: Likewise.
6226         * iconv/strtab.c: Likewise.
6227         * locale/programs/locale.c: Likewise.
6228         * locale/programs/localedef.h: Likewise.
6229         * locale/programs/simple-hash.c: Likewise.
6230         * nscd/nscd.h: Likewise.
6231         * nss/makedb.c: Likewise.
6232         * sysdeps/generic/ldconfig.h: Likewise.
6233         * locale/programs/localedef.c: Remove xmalloc prototype.
6234         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
6235
6236 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
6237
6238         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
6239         appropriate.
6240
6241 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
6242
6243         * math/Makefile (tests): Add tst-CMPLX.
6244         * math/tst-CMPLX.c: New file.
6245
6246         * math/complex.h (CMPLXL): Fix typo.
6247
6248         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
6249         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
6250         GLIBC_2.16.
6251         * debug/tst-chk1.c: Add poll and ppoll tests.
6252         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
6253         * include/sys/poll.h: Add hidden proto for ppoll.
6254         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
6255         * sysdeps/mach/hurd/ppoll.c: Likewise.
6256         * io/ppoll.c: Likewise.
6257         * debug/poll_chk.c: New file.
6258         * debug/ppoll_chk.c: New file.
6259         * include/bits/poll2.h: New file.
6260         * io/bits/poll2.h: New file.
6261
6262         [BZ #1350]
6263         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
6264
6265         * configure.in: static is always set to yes.  Remove.
6266         * config.make.in: Don't set build-static.
6267         * Makeconfig: Remove use of build-static.
6268         * dlfcn/Makefile: Likewise.
6269         * elf/Makefile: Likewise.
6270         * math/Makefile: Likewise.
6271         * misc/Makefile: Likewise.
6272         * nptl/Makefile: Likewise.
6273         * sysdeps/mach/hurd/Makefile: Likewise.
6274
6275         * configure.in: PWD_P is not used anymore.
6276         * config.make.in: Remove PWD_P entry.
6277
6278         * configure.in: Remove last remnants of RANLIB.
6279         No need to check for signed size_t anymore.
6280         Don't set libc_commonpagesize and libc_relro_required here for Alpha
6281         and IA-64.
6282         Remove __builtin_expect test because we require at least gcc 3.4.
6283         * aclocal.m4: Likewise.
6284
6285         * wcsmbs/mbrtoc16.c: Implement using towc function.
6286         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
6287         * wcsmbs/wcsmbsload.c: Likewise.
6288         * iconv/gconv_simple.c: Likewise.
6289         * iconv/gconv_int.h: Likewise.
6290         * iconv/gconv_builtin.h: Likewise.
6291         * iconv/iconv_prog.c: Remove CHAR16 handling.
6292
6293         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
6294
6295         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
6296
6297         * configure.in: Remove --with-elf and --enable-bounded options.
6298         Dont set base_machine for ia64.  More non-ELF conditions removed.
6299         Remove testing and setting of leading underscore information.
6300         * config.make.in (build-bounded): Set to no.
6301         * config.h.in: Remove NO_UNDERSCORES entry.
6302         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
6303         them.
6304         * csu/start.c: Remove !NO_UNDERSCORE code.
6305         * locale/localeinfo.h: Likewise.
6306         * sysdeps/generic/machine-gmon.h: Likewise.
6307         * sysdeps/generic/sysdep.h: Likewise.
6308         * sysdeps/i386/sysdep.h: Likewise.
6309         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6310         * sysdeps/mach/sysdep.h: Likewise.
6311         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6312         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6313         * sysdeps/sh/sysdep.h: Likewise.
6314         * sysdeps/sparc/sparc32/alloca.S: Likewise.
6315         * sysdeps/unix/i386/sysdep.S: Likewise.
6316         * sysdeps/unix/sparc/start.c: Likewise.
6317         * sysdeps/unix/sparc/sysdep.S: Likewise.
6318         * sysdeps/unix/sparc/sysdep.h: Likewise.
6319         * sysdeps/unix/start.c: Likewise.
6320         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6321         * sysdeps/x86_64/sysdep.h: Likewise.
6322
6323 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
6324
6325         [BZ #13553]
6326         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
6327         for non-gcc.
6328         * argp/argp-fmtstream.h: Use const instead __const.
6329         * argp/argp.h: Likewise.
6330         * assert/assert.h: Likewise.
6331         * bits/fenv.h: Likewise.
6332         * bits/sched.h: Likewise.
6333         * bits/sigset.h: Likewise.
6334         * bits/sigthread.h: Likewise.
6335         * catgets/nl_types.h: Likewise.
6336         * conform/data/pthread.h-data: Likewise.
6337         * crypt/crypt-private.h: Likewise.
6338         * crypt/crypt.h: Likewise.
6339         * crypt/crypt_util.c: Likewise.
6340         * ctype/ctype.h: Likewise.
6341         * debug/execinfo.h: Likewise.
6342         * debug/mbsnrtowcs_chk.c: Likewise.
6343         * debug/mbsrtowcs_chk.c: Likewise.
6344         * debug/wcsnrtombs_chk.c: Likewise.
6345         * debug/wcsrtombs_chk.c: Likewise.
6346         * debug/wcstombs_chk.c: Likewise.
6347         * dirent/dirent.h: Likewise.
6348         * dlfcn/dlfcn.h: Likewise.
6349         * elf/neededtest4.c: Likewise.
6350         * grp/grp.h: Likewise.
6351         * gshadow/gshadow.h: Likewise.
6352         * iconv/gconv.h: Likewise.
6353         * iconv/gconv_int.h: Likewise.
6354         * iconv/gconv_simple.c: Likewise.
6355         * iconv/iconv.h: Likewise.
6356         * iconv/loop.c: Likewise.
6357         * iconv/skeleton.c: Likewise.
6358         * include/aio.h: Likewise.
6359         * include/aliases.h: Likewise.
6360         * include/argz.h: Likewise.
6361         * include/arpa/inet.h: Likewise.
6362         * include/assert.h: Likewise.
6363         * include/dirent.h: Likewise.
6364         * include/dlfcn.h: Likewise.
6365         * include/execinfo.h: Likewise.
6366         * include/fcntl.h: Likewise.
6367         * include/fenv.h: Likewise.
6368         * include/glob.h: Likewise.
6369         * include/grp.h: Likewise.
6370         * include/libintl.h: Likewise.
6371         * include/mntent.h: Likewise.
6372         * include/netdb.h: Likewise.
6373         * include/pwd.h: Likewise.
6374         * include/rpc/netdb.h: Likewise.
6375         * include/sched.h: Likewise.
6376         * include/search.h: Likewise.
6377         * include/shadow.h: Likewise.
6378         * include/signal.h: Likewise.
6379         * include/stdio.h: Likewise.
6380         * include/stdlib.h: Likewise.
6381         * include/string.h: Likewise.
6382         * include/sys/socket.h: Likewise.
6383         * include/sys/stat.h: Likewise.
6384         * include/sys/statfs.h: Likewise.
6385         * include/sys/statvfs.h: Likewise.
6386         * include/sys/syslog.h: Likewise.
6387         * include/sys/time.h: Likewise.
6388         * include/sys/uio.h: Likewise.
6389         * include/time.h: Likewise.
6390         * include/unistd.h: Likewise.
6391         * include/utmp.h: Likewise.
6392         * include/wchar.h: Likewise.
6393         * include/wctype.h: Likewise.
6394         * inet/aliases.h: Likewise.
6395         * inet/arpa/inet.h: Likewise.
6396         * inet/netinet/ether.h: Likewise.
6397         * inet/netinet/in.h: Likewise.
6398         * intl/libintl.h: Likewise.
6399         * io/bits/fcntl2.h: Likewise.
6400         * io/fcntl.h: Likewise.
6401         * io/ftw.h: Likewise.
6402         * io/sys/poll.h: Likewise.
6403         * io/sys/stat.h: Likewise.
6404         * io/sys/statfs.h: Likewise.
6405         * io/sys/statvfs.h: Likewise.
6406         * io/utime.h: Likewise.
6407         * libio/bits/stdio.h: Likewise.
6408         * libio/bits/stdio2.h: Likewise.
6409         * libio/libio.h: Likewise.
6410         * libio/libioP.h: Likewise.
6411         * libio/stdio.h: Likewise.
6412         * locale/lc-ctype.c: Likewise.
6413         * locale/locale.h: Likewise.
6414         * login/utmp.h: Likewise.
6415         * malloc/arena.c: Likewise.
6416         * malloc/malloc.c: Likewise.
6417         * malloc/malloc.h: Likewise.
6418         * malloc/mcheck.c: Likewise.
6419         * malloc/mtrace.c: Likewise.
6420         * math/bits/mathcalls.h: Likewise.
6421         * math/fenv.h: Likewise.
6422         * math/math_private.h: Likewise.
6423         * misc/bits/error.h: Likewise.
6424         * misc/bits/syslog.h: Likewise.
6425         * misc/err.h: Likewise.
6426         * misc/error.h: Likewise.
6427         * misc/fstab.h: Likewise.
6428         * misc/mntent.h: Likewise.
6429         * misc/regexp.h: Likewise.
6430         * misc/search.h: Likewise.
6431         * misc/sgtty.h: Likewise.
6432         * misc/sys/mman.h: Likewise.
6433         * misc/sys/syslog.h: Likewise.
6434         * misc/sys/uio.h: Likewise.
6435         * misc/sys/xattr.h: Likewise.
6436         * misc/ttyent.h: Likewise.
6437         * nis/rpcsvc/ypclnt.h: Likewise.
6438         * nss/nss.h: Likewise.
6439         * posix/bits/unistd.h: Likewise.
6440         * posix/fnmatch.h: Likewise.
6441         * posix/glob.h: Likewise.
6442         * posix/sched.h: Likewise.
6443         * posix/spawn.h: Likewise.
6444         * posix/sys/wait.h: Likewise.
6445         * posix/unistd.h: Likewise.
6446         * posix/wordexp.h: Likewise.
6447         * pwd/pwd.h: Likewise.
6448         * resolv/netdb.h: Likewise.
6449         * resource/sys/resource.h: Likewise.
6450         * rt/aio.h: Likewise.
6451         * rt/bits/mqueue2.h: Likewise.
6452         * rt/mqueue.h: Likewise.
6453         * shadow/shadow.h: Likewise.
6454         * signal/signal.h: Likewise.
6455         * socket/send.c: Likewise.
6456         * socket/sendto.c: Likewise.
6457         * socket/sys/socket.h: Likewise.
6458         * stdio-common/printf.h: Likewise.
6459         * stdlib/bits/stdlib.h: Likewise.
6460         * stdlib/fmtmsg.h: Likewise.
6461         * stdlib/monetary.h: Likewise.
6462         * stdlib/stdlib.h: Likewise.
6463         * stdlib/ucontext.h: Likewise.
6464         * streams/stropts.h: Likewise.
6465         * string/argz.h: Likewise.
6466         * string/bits/string2.h: Likewise.
6467         * string/string.h: Likewise.
6468         * string/strings.h: Likewise.
6469         * sunrpc/rpc/auth.h: Likewise.
6470         * sunrpc/rpc/auth_des.h: Likewise.
6471         * sunrpc/rpc/clnt.h: Likewise.
6472         * sunrpc/rpc/netdb.h: Likewise.
6473         * sunrpc/rpc/pmap_clnt.h: Likewise.
6474         * sunrpc/rpc/xdr.h: Likewise.
6475         * sysdeps/generic/inttypes.h: Likewise.
6476         * sysdeps/generic/net/if.h: Likewise.
6477         * sysdeps/generic/sys/swap.h: Likewise.
6478         * sysdeps/gnu/net/if.h: Likewise.
6479         * sysdeps/gnu/utmpx.h: Likewise.
6480         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
6481         * sysdeps/i386/i486/bits/string.h: Likewise.
6482         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
6483         * sysdeps/s390/bits/string.h: Likewise.
6484         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
6485         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
6486         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6487         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
6488         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6489         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6490         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6491         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
6492         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
6493         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6494         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
6495         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
6496         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
6497         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
6498         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6499         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
6500         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
6501         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6502         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6503         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6504         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6505         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
6506         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
6507         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6508         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
6509         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
6510         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
6511         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6512         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
6513         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
6514         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
6515         * sysvipc/sys/ipc.h: Likewise.
6516         * sysvipc/sys/msg.h: Likewise.
6517         * sysvipc/sys/sem.h: Likewise.
6518         * sysvipc/sys/shm.h: Likewise.
6519         * termios/termios.h: Likewise.
6520         * time/sys/time.h: Likewise.
6521         * time/time.h: Likewise.
6522         * wcsmbs/bits/wchar2.h: Likewise.
6523         * wcsmbs/uchar.h: Likewise.
6524         * wcsmbs/wchar.h: Likewise.
6525         * wctype/wctype.h: Likewise.
6526
6527         [BZ #13551]
6528         * Makeconfig: Remove all but ELF support including AIX support.
6529         * Makerules: Likewise.
6530         * config.h.in: Likewise.
6531         * config.make.in: Likewise.
6532         * configure: Likewise.
6533         * configure.in: Likewise.
6534         * csu/Makefile: Likewise.
6535         * csu/version.c: Likewise.
6536         * debug/Makefile: Likewise.
6537         * dlfcn/Makefile: Likewise.
6538         * elf/Makefile: Likewise.
6539         * extra-lib.mk: Likewise.
6540         * iconv/Makefile: Likewise.
6541         * include/libc-symbols.h: Likewise.
6542         * include/shlib-compat.h: Likewise.
6543         * resolv/Makefile: Likewise.
6544         * resolv/res_libc.c: Likewise.
6545         * rt/Makefile: Likewise.
6546         * sysdeps/i386/asm-syntax.h: Likewise.
6547         * sysdeps/i386/sysdep.h: Likewise.
6548         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6549         * sysdeps/mach/sysdep.h: Likewise.
6550         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
6551         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
6552         * sysdeps/s390/asm-syntax.h: Likewise.
6553         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6554         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6555         * sysdeps/sh/sysdep.h: Likewise.
6556         * sysdeps/unix/sparc/sysdep.h: Likewise.
6557         * sysdeps/wordsize-32/divdi3.c: Likewise.
6558         * sysdeps/x86_64/sysdep.h: Likewise.
6559
6560         * argp/Versions: Remove _argp_unlock_xxx.
6561
6562         [BZ #13559]
6563         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
6564         * abilist/libBrokenLocale.abilist: Likewise.
6565         * abilist/libanl.abilist: Likewise.
6566         * abilist/libc.abilist: Likewise.
6567         * abilist/libcrypt.abilist: Likewise.
6568         * abilist/libdl.abilist: Likewise.
6569         * abilist/libm.abilist: Likewise.
6570         * abilist/libnsl.abilist: Likewise.
6571         * abilist/libpthread.abilist: Likewise.
6572         * abilist/libresolv.abilist: Likewise.
6573         * abilist/librt.abilist: Likewise.
6574         * abilist/libthread_db.abilist: Likewise.
6575         * abilist/libutil.abilist: Likewise.
6576         * abilist/libnss_db.abilist: New file.
6577
6578         * scripts/abilist.awk: Add support for indirect functions.
6579
6580         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
6581
6582         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
6583
6584         * shlib-versions: Remove entries for ports architectures.
6585
6586         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
6587         files in ports.
6588         * elf/stackguard-macros.h: Remove support for IA-64.
6589         * elf/tst-auditmod1.c: Likewise.
6590         * sysdeps/generic/ldsodefs.h: Likewise.
6591
6592         * sysdeps/unix/sysv/linux/configure.in: Ports should define
6593         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
6594         configure files.
6595
6596         [BZ #13552]
6597         * configure.in: Remove --enable-omitfp support.
6598         * FAQ.in: Adjust.
6599         * config.make.in: Likewise.
6600         * Makeconfig: Likewise.
6601         * manual/install.texi: Likewise.
6602
6603         In case anyone cares, the IA-64 architecture could move to ports.
6604         * sysdeps/ia64/*: Removed.
6605         * sysdeps/unix/sysv/linux/ia64/*: Removed.
6606         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
6607
6608         [BZ #13555]
6609         * configure.in: Remove entries for unsupported architectures.
6610
6611         [BZ #13533]
6612         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
6613         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
6614         routines.
6615         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
6616         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
6617         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
6618         fall back to using wcrtomb.
6619         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
6620         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
6621         renaming.
6622         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
6623         * wcsmbs/tst-c16c32-1.c: New file.
6624
6625         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
6626         local variable.
6627
6628         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
6629
6630         * elf/tst-unique3.cc: Add explicit declaration of gets.
6631         * elf/tst-unique3lib.cc: Likewise.
6632         * elf/tst-unique3lib2.cc: Likewise.
6633         * elf/tst-unique4.cc: Likewise.
6634
6635         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
6636
6637 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
6638
6639         [BZ #13566]
6640         * assert/assert.h (static_assert): Don't define for C++.
6641         * libio/stdio.h (gets): Do declare for C++ <= C++11.
6642         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
6643
6644 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
6645
6646         * iconv/loop.c (single loop): Fix assertion in storing of
6647         remaining bytes.
6648
6649         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
6650
6651 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
6652
6653         * posix/getconf.c: Update copyright year.
6654         * nss/getent.c: Likewise.
6655         * nss/makedb.c: Likewise.
6656         * iconv/iconvconfig.c: Likewise.
6657         * iconv/iconv_prog.c: Likewise.
6658         * elf/ldconfig.c: Likewise.
6659         * elf/pldd.c: Likewise.
6660         * elf/sotruss.ksh: Likewise.
6661         * catgets/gencat.c: Likewise.
6662         * csu/version.c: Likewise.
6663         * elf/ldd.bash.in: Likewise.
6664         * elf/sprof.c (print_version): Likewise.
6665         * locale/programs/locale.c: Likewise.
6666         * locale/programs/localedef.c: Likewise.
6667         * login/programs/pt_chown.c: Likewise.
6668         * nscd/nscd.c (print_version): Likewise.
6669         * debug/xtrace.sh: Likewise.
6670         * malloc/memusage.sh: Likewise.
6671         * malloc/mtrace.pl: Likewise.
6672         * debug/catchsegv.sh: Likewise.
6673
6674 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
6675
6676         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
6677         pure attribute.
6678
6679 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
6680
6681         [BZ #13533]
6682         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
6683         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
6684         transformations.
6685         * iconv/gconv_int.h: Likewise.
6686         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
6687         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
6688         from libc for GLIBC_2.16.
6689         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
6690         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
6691         * wcsmbs/uchar.h: Really define mbstate_t.
6692         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
6693         * wcsmbs/c16rtomb.c: New file.
6694         * wcsmbs/mbrtoc16.c: New file.
6695         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
6696         for C/POSIX locale.
6697         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
6698         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
6699
6700         * wcsmbs/wchar.h: Add missing __restrict.
6701
6702 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6703
6704         [BZ #13532]
6705         * time/Makefile (routines): Add timespec_get.
6706         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
6707         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
6708         timespec for ISO C11.
6709         * time/timespec_get.c: New file.
6710         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
6711         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
6712
6713         [BZ #13531]
6714         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
6715         * stdlib/stdlib.h: Declare aligned_alloc.
6716         * Versions.def: Add GLIBC_2.16 for libc.
6717         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
6718
6719         [BZ 13527]
6720         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
6721         ISO C11.
6722
6723         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
6724         code.
6725
6726         [BZ #13528]
6727         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
6728
6729         [BZ #13529]
6730         * assert/assert.h (static_assert): Define.
6731
6732         * version.h: Update for 2.16 development version.
6733
6734         [BZ #13526]
6735         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
6736         _ISOC11_SOURCE.
6737
6738         * version.h (RELEASE): Bump for 2.15 release.
6739         * include/features.h (__GLIBC_MINOR__): Bump to 15.
6740
6741         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
6742         Patch by Marek Polacek <mpolacek@redhat.com>.
6743
6744         * bits/byteswap.h: Protect long long constants with __extension__.
6745         * sysdeps/i386/bits/byteswap.h: Likewise.
6746         * sysdeps/ia64/bits/byteswap.h: Likewise.
6747         * sysdeps/s390/bits/byteswap.h: Likewise.
6748         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6749
6750 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6751
6752         [BZ #13540]
6753         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
6754         destination buffer.
6755         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
6756
6757 2011-12-23  Marek Polacek  <polacek@redhat.com>
6758
6759         * elf/dl-addr.c (determine_info): Add inline keyword.
6760         * elf/tst-auditmod4b.c (check_avx): Likewise.
6761         * elf/tst-auditmod6b.c (check_avx): Likewise.
6762         * elf/tst-auditmod6c.c (check_avx): Likewise.
6763         * elf/tst-auditmod7b.c (check_avx): Likewise.
6764
6765 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6766
6767         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
6768         !__SSE_MATH__.
6769
6770 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6771
6772         [BZ #13540]
6773         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
6774         processing for last bytes.
6775
6776 2011-08-06  Bruno Haible  <bruno@clisp.org>
6777
6778         [BZ #13061]
6779         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
6780         U+0385, not to U+1FEE.
6781
6782         [BZ #13062]
6783         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
6784         entry for U+00A5 U+0301.
6785
6786 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6787
6788         [BZ #13166]
6789         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
6790         buffer for the output is too small.
6791
6792         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
6793         optimization.
6794
6795         [BZ #13185]
6796         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
6797         SSE flags if possible.
6798
6799 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6800
6801         [BZ #13540]
6802         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
6803         processing for last bytes.
6804
6805 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
6806
6807         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
6808         (syscall-list-default-options, syscall-list-default-condition)
6809         (syscall-list-includes): Define.
6810         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
6811         list of ABIs and options and #if conditions for each ABI.  Do not
6812         handle common syscalls between ABIs specially.
6813         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
6814         Remove.
6815         (syscall-list-variants, syscall-list-32bit-options)
6816         (syscall-list-32bit-condition, syscall-list-64bit-options)
6817         (syscall-list-64bit-condition): Define.
6818         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
6819         (syscall-list-variants, syscall-list-32bit-options)
6820         (syscall-list-32bit-condition, syscall-list-64bit-options)
6821         (syscall-list-64bit-condition): Define.
6822         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
6823         Remove.
6824         (syscall-list-variants, syscall-list-32bit-options)
6825         (syscall-list-32bit-condition, syscall-list-64bit-options)
6826         (syscall-list-64bit-condition): Define.
6827         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
6828         Remove.
6829         (syscall-list-variants, syscall-list-32bit-options)
6830         (syscall-list-32bit-condition, syscall-list-64bit-options)
6831         (syscall-list-64bit-condition): Define.
6832
6833 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6834
6835         * locale/iso-639.def: Add brx entry.
6836
6837         [BZ #13328]
6838         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
6839         Proposed by Mariusz_Cukr <marcukr@op.pl>.
6840
6841         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
6842         __feraiseexcept_renamed.
6843
6844 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6845
6846         [BZ #13538]
6847         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
6848         EPOLLET with unsigned values.
6849         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6850         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6851
6852         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
6853         to large cancellation.
6854         * math/s_cacoshf.c: Likewise.
6855         * math/s_cacoshl.c: Likewise.
6856
6857 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
6858
6859         [BZ #13305]
6860         [BZ #12786]
6861         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
6862         * math/s_cacoshf.c: Likewise.
6863         * math/s_cacoshl.c: Likewise.
6864
6865 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6866
6867         [BZ #13439]
6868         * iconv/gconv.h: Define __GCONV_SWAP.
6869         * iconvdata/unicode.c: The swap bit must be stored in __flags.
6870         * iconvdata/utf-16.c: Likewise.
6871         * iconvdata/utf-32.c: Likewise.
6872
6873 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
6874
6875         [BZ #13524]
6876         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
6877         numerator after shifting it by one limb.
6878
6879 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
6880
6881         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
6882         under [__USE_EXTERN_INLINES].
6883
6884 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6885
6886         [BZ #13446]
6887         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
6888
6889 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6890
6891         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
6892         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
6893         optimized code.
6894         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
6895         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
6896         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
6897         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
6898         for strncasecmp/strncasecmp_l compilation.
6899         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
6900         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
6901
6902 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
6903
6904         [BZ #13484]
6905         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
6906         of __asm__.
6907
6908 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6909
6910         [BZ #13506]
6911         * time/tzfile.c (__tzfile_read): Check values from file header.
6912
6913 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
6914
6915         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
6916         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
6917         * powerpc/powerpc32/dl-start.S: Likewise.
6918         * powerpc/powerpc32/elf/start.S: Likewise.
6919         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
6920         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
6921         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
6922         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
6923         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
6924         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
6925         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
6926         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6927         * powerpc/powerpc32/fpu/s_round.S: Likewise.
6928         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
6929         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
6930         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
6931         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
6932         * powerpc/powerpc32/memset.S: Likewise.
6933         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
6934         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6935         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6936         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6937         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6938         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
6939         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
6940         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
6941         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
6942         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
6943         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
6944         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
6945         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
6946
6947 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6948
6949         * math/libm-test.inc: Added more nearbyint tests.
6950         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
6951         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
6952         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
6953         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
6954
6955 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
6956
6957         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
6958         FD_CLOEXEC.
6959
6960 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6961
6962         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
6963         Add wcscpy-ssse3 wcscpy-c.
6964         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
6965         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
6966         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
6967         * sysdeps/x86_64/wcschr.S: New file.
6968         * sysdeps/x86_64/wcsrchr.S: New file.
6969         * string/test-strcmp.c: Remove checking of wcscmp function for
6970         wrong alignments.
6971         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
6972         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
6973         wcsrchr-sse2 wcsrchr-c.
6974         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
6975         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
6976         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
6977         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
6978         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
6979         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
6980         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
6981         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
6982         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
6983         * wcsmbc/wcschr.c (WCSCHR): New macro.
6984
6985 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6986
6987         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
6988         * wcsmbs/test-wcsrchr.c: New file.
6989         * string/test-strrchr.c: Add wcsrchr support.
6990         (WIDE): New macro.
6991         * wcsmbs/test-wcscpy.c: New file.
6992         * string/test-strcpy.c: Add wcscpy support.
6993         (WIDE): New macro.
6994
6995 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
6996
6997         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
6998         the inner loop.
6999
7000 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
7001
7002         [BZ #13472]
7003         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
7004
7005 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
7006
7007         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
7008         Minor optimizations.
7009
7010         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
7011         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
7012         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7013
7014 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
7015
7016         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
7017         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
7018         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
7019         for gcc to avoid warnings.
7020         * inet/Makefile (tests): Add tst-checks.
7021         * inet/tst-checks.c: New file.
7022
7023         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
7024         warning.
7025
7026         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
7027         __wmemcmp_sse2.
7028
7029         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
7030         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
7031
7032         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
7033
7034 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
7035
7036         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
7037         problem.
7038
7039         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
7040
7041 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
7042
7043         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
7044         conditional on GCC version.
7045         (__arch_compare_and_exchange_val_8_acq)
7046         (__arch_compare_and_exchange_val_16_acq)
7047         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
7048         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
7049         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
7050
7051 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
7052
7053         * sysdeps/sh/backtrace.c: New file.
7054
7055 2011-12-02  Andreas Schwab  <schwab@redhat.com>
7056
7057         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
7058         parenthesis.
7059
7060 2011-12-01  Andreas Schwab  <schwab@redhat.com>
7061
7062         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
7063         falling back to utime.
7064
7065 2011-11-30  Andreas Schwab  <schwab@redhat.com>
7066
7067         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
7068         expectations for float.
7069
7070 2011-11-29  Andreas Schwab  <schwab@redhat.com>
7071
7072         * locale/weight.h (findidx): Add parameter len.
7073         * locale/weightwc.h (findidx): Likewise.
7074         * posix/fnmatch_loop.c (FCT): Adjust caller.
7075         * posix/regcomp.c (build_equiv_class): Likewise.
7076         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
7077         * posix/regexec.c (check_node_accept_bytes): Likewise.
7078         * string/strcoll_l.c (STRCOLL): Likewise.
7079         * string/strxfrm_l.c (STRXFRM): Likewise.
7080
7081 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
7082
7083         * Makefile.in: Remove CVSOPT handling.
7084         * configure.in: Remove use of AC_REVISION.
7085         * iconvdata/Makefile (distribute): No need to filter out CVS.
7086         * scripts/list-sources.sh: Remove CVS, subversion and monotone
7087         handling.
7088
7089 2011-11-16  Andreas Schwab  <schwab@redhat.com>
7090
7091         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
7092         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
7093         [USE_AS_STRNCASECMP_L]: Likewise.
7094         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
7095         NO_TLS_DIRECT_SEG_REFS.
7096         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
7097         Fix argument offsets for non-PIC.
7098         [USE_AS_STRNCASECMP_L]: Likewise.
7099         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
7100         NO_TLS_DIRECT_SEG_REFS.
7101
7102 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
7103
7104         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
7105         O_CLOEXEC.
7106         * locale/loadlocale.c (_nl_load_locale): Likewise.
7107
7108 2011-11-15  Andreas Schwab  <schwab@redhat.com>
7109
7110         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
7111         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
7112         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
7113         (SYSCALL_GETTIME): Set errno on error.
7114
7115         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
7116         count references to noai6ai_cached.
7117
7118 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
7119
7120         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
7121
7122         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
7123         FD_CLOEXEC for /proc/self/maps.
7124
7125         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
7126         FD_CLOEXEC for /proc/meminfo.
7127
7128         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
7129         gai.conf.
7130
7131         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
7132         FD_CLOEXEC for given file.
7133
7134         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
7135
7136         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
7137         FD_CLOEXEC for /etc/hosts.
7138         (_gethtent): Likewise.
7139
7140         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
7141
7142         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
7143         cancellation and set FD_CLOEXEC for /etc/netgroup.
7144
7145         * nss/nss_files/files-key.c (search): Don't allow cancellation when
7146         reading /etc/publickey.
7147
7148         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
7149         allow cancellation when reading /etc/group.
7150
7151         * nss/nss_files/files-alias.c (internal_setent): Don't allow
7152         cancellation.
7153         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
7154
7155         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
7156         when using data file.
7157
7158         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
7159
7160         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
7161         (write_nis_obj): Use "c" and "e" in fopen.
7162
7163         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
7164
7165         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
7166
7167         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
7168
7169         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
7170
7171         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
7172         locale.alias.
7173
7174         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
7175
7176         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
7177
7178         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
7179
7180         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
7181         file parsing and set FD_CLOEXEC.
7182
7183 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
7184
7185         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
7186
7187 2011-11-14  Andreas Schwab  <schwab@redhat.com>
7188
7189         * malloc/arena.c (arena_get2): Don't call reused_arena when
7190         _int_new_arena failed.
7191
7192 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
7193
7194         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
7195         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
7196         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
7197         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7198         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7199         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
7200         to compile strcasecmp and strncasecmp.
7201         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
7202         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
7203
7204         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
7205
7206 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
7207
7208         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
7209         locale-defines.sym to gen-as-const-headers.
7210         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
7211         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
7212         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
7213         to compile strcasecmp and strncasecmp.
7214         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
7215         strcasecmp_l and strncasecmp_l.
7216         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
7217         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
7218         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
7219         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
7220         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
7221         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
7222         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
7223         * sysdeps/i386/i686/multiarch/strncase.S: New file.
7224         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
7225         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
7226         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
7227
7228 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
7229
7230         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
7231         result of SYSDEP_GETTIME_CPU to retval.
7232         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
7233         parameter list to macro.  Remove trailing semicolon.  Adjust users.
7234
7235         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
7236         variable.
7237
7238         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
7239         mantissa words.
7240         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7241
7242         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
7243         from unused variable.
7244
7245         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
7246         DWARF definitions.
7247         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
7248         for assembling.
7249
7250         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
7251         over namespaces.
7252
7253         * sunrpc/rpc_prot.c (rejected): Fix case value.
7254
7255         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
7256         unsigned long long int to avoid warnings in shift.
7257
7258         * posix/regex_internal.c (re_string_reconstruct): Actually use result
7259         of use of trans.
7260         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
7261         variable tmp.
7262
7263         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
7264         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
7265         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
7266
7267         * nis/nis_table.c (nis_list): Use variable of correct type for
7268         result of __follow_path call.
7269
7270 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7271
7272         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
7273         of math functions ceil, trunc, floor, round, and sqrt, when
7274         avaliable on the platform.
7275         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
7276         name clash.
7277         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7278         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7279         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7280
7281 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
7282
7283         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
7284         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
7285
7286 2011-11-11  Roland McGrath  <roland@hack.frob.com>
7287
7288         * include/unistd.h: Fix __readlink return type.
7289         Reported by Chris Metcalf <cmetcalf@tilera.com>.
7290
7291 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
7292
7293         * stdlib/ucontext.h: Undo last change for makecontext.
7294
7295 2011-11-11  Andreas Schwab  <schwab@redhat.com>
7296
7297         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
7298
7299         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
7300         * setjmp/setjmp.h: Mark functions as non-leaf.
7301         * setjmp/bits/setjmp2.h: Likewise.
7302         * stdlib/ucontext.h: Likewise.
7303
7304 2011-11-10  Andreas Schwab  <schwab@redhat.com>
7305
7306         * malloc/arena.c (_int_new_arena): Don't increment narenas.
7307         (reused_arena): Don't check arena limit.
7308         (arena_get2): Atomically check arena limit.
7309
7310 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
7311
7312         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
7313         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
7314
7315         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
7316         instructions.
7317
7318 2011-11-07  Andreas Schwab  <schwab@redhat.com>
7319
7320         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
7321         handler when locking.
7322
7323         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7324         Fix size of allocated buffer.
7325
7326 2011-11-04  Andreas Schwab  <schwab@redhat.com>
7327
7328         [BZ #10103]
7329         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
7330         declarations for long double functions.
7331         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
7332
7333         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
7334
7335 2011-11-03  Andreas Schwab  <schwab@redhat.com>
7336
7337         * nscd/nscd.c (main): Don't start AVC thread until credentials are
7338         installed.
7339
7340         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
7341         is disabled.
7342
7343 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7344
7345         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
7346
7347 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7348
7349         * include/alloca.h (stackinfo_alloca_round): Define.
7350         (extend_alloca): Use it.
7351         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
7352         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
7353         here.
7354
7355         * scripts/check-local-headers.sh: Ignore libaudit.h.
7356
7357         * nscd/Makefile (extra-objs): Make recursively expanded.
7358
7359 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
7360
7361         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
7362         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7363
7364         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
7365         * posix/tst-rfc3484-2.c: Likewise.
7366         * posix/tst-rfc3484-3.c: Likewise.
7367
7368         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7369         process_vm_writev.
7370         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
7371         process_vm_writev.
7372         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
7373         process_vm_writev from libc using GLIBC_2.15 version.
7374
7375         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
7376
7377 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7378
7379         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
7380         stack usage.
7381
7382 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
7383
7384         [BZ #13367]
7385         * nss/getent.c (initgroups_keys): Show error message in case no group
7386         names are given.
7387
7388         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
7389         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
7390         __bump_nl_timestamp.
7391         * nscd/connections (nscd_init): When host database is served open
7392         netlink socket and request notification about configuration changes.
7393         (main_loop_poll): Track netlink file descriptor and bump timestamp
7394         in case data becomes available.
7395         (main_loop_epoll): Likewise.
7396         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
7397         (database_pers_head): Add extra_data fileds.
7398         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
7399         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
7400         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
7401         Adjust caller.
7402         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
7403         in6ai data, call __free_in6ai.
7404         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
7405         Add -DHAVE_NETLINK.
7406         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
7407         interface information.  Reuse previous data if netlink timestamp
7408         is not changed.
7409         (__bump_nl_timestamp): New function.
7410         (__free_in6ai): New function.
7411
7412 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
7413
7414         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
7415         close_not_cancel_no_status here.
7416         (__check_pf): Reorganize code a bit to not call close twice if OOM.
7417
7418 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7419
7420         [BZ #13276]
7421         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
7422         return value.
7423
7424         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
7425         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
7426         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
7427
7428 2011-07-03  Andreas Jaeger  <aj@suse.de>
7429
7430         [BZ #10709]
7431         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
7432         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
7433         * math/libm-test.inc (sin_test): Add test case.
7434
7435 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7436
7437         [BZ #13337]
7438         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
7439         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7440
7441         * elf/chroot_canon.c (chroot_canon): Cleanups.
7442
7443         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
7444
7445         [BZ #13335]
7446         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
7447         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7448
7449         * string/test-strchr.c: Make usable for strchrnul testing.
7450         * string/test-strchrnul.c: New file.
7451         * string/Makefile (strop-tests): Add strchrnul.
7452
7453         * po/it.po: Update from translation team.
7454         * po/es.po: Likewise.
7455
7456 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
7457
7458         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
7459         the three constants needed as parameters.  Drop the others.
7460         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
7461         __m128i_strloadu_tolower.
7462         Create and initialize variable zero and use it in all the places
7463         where _mm_setzero_si128 was used.
7464
7465         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
7466         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
7467         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
7468         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
7469         anymore.
7470         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
7471         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
7472         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
7473         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
7474         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
7475         __mpranred, __mptan.
7476         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
7477         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
7478         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
7479         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
7480         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
7481         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
7482         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
7483         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
7484         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
7485
7486 2011-10-28  Andreas Schwab  <schwab@redhat.com>
7487
7488         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
7489         redefine if SHARED.
7490         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
7491
7492         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
7493         wide char related routines to wcsmbs subdir.
7494
7495 2011-10-27  Andreas Schwab  <schwab@redhat.com>
7496
7497         [BZ #13344]
7498         * misc/sys/cdefs.h (__THROWNL): Define.
7499         * posix/unistd.h: Use __THREADNL instead of __THREAD
7500         for memory synchronization functions.
7501
7502 2011-10-26  Roland McGrath  <roland@hack.frob.com>
7503
7504         [BZ #13349]
7505         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
7506         doesn't exist.
7507         * manual/stdio.texi (Obstack Streams): Node removed.
7508
7509 2011-10-26  Andreas Schwab  <schwab@redhat.com>
7510
7511         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
7512         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7513         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7514
7515         * math/math_private.h (math_force_eval): Allow non-addressable
7516         arguments.
7517         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
7518
7519 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7520
7521         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
7522         file is not needed.
7523
7524         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
7525         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7526         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7527         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7528         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7529         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7530         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7531         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
7532         Add AVX variants.
7533         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
7534         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
7535         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
7536         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
7537         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
7538         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
7539         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
7540         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
7541         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
7542         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
7543         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
7544         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
7545         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
7546         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
7547         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
7548         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
7549         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
7550         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
7551         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
7552
7553         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
7554         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
7555
7556         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
7557         place.  Use VEX encoding when compiling for AVX.
7558
7559 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7560
7561         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
7562         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7563
7564         * string/test-strchr.c (do_test): Don't generate NUL bytes.
7565
7566 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7567
7568         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
7569         useless if() expression.
7570         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7571         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7572         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7573         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7574         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7575         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7576         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7577         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7578         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7579         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7580         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7581         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7582         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7583         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7584         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7585         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7586         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7588         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7589
7590         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
7591
7592 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7593
7594         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
7595         condition.
7596         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7597
7598 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7599
7600         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
7601         .text section.  Avoid duplicate constants.
7602         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7603         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7604         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7605         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7606         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7607         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7608         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7609         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7610         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
7611         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
7612         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
7613         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7614         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
7615         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
7616         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
7617         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
7618         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
7619         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
7620         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7621         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7622         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7623         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7624         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7625         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
7626         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
7627         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
7628         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
7629         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
7630         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
7631         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
7632         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
7633         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
7634         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7635         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
7636         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
7637         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
7638         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
7639         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
7640         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
7641         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
7642         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
7643         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
7644         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
7645         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
7646         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
7647
7648 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
7649
7650         * sysdeps/x86_64/dla.h: Move to ...
7651         * sysdeps/x86_64/fpu/dla.h: ...here.
7652         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
7653         situations.  Use __builtin_fma only for gcc 4.6 and up.
7654
7655         * config.make.in: Add have-mfma4 entry.
7656         * configure.in: Substitute libc_cv_cc_fma4.
7657         * math/Makefile (dbl-only-routines): Add sincostab.
7658         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
7659         Use __sincostab not sincos.
7660         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
7661         name is a macro.
7662         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7663         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7664         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7665         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
7666         using __copysign.
7667         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
7668         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
7669         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
7670         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
7671         and __inv.
7672         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
7673         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
7674         __copysign.
7675         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
7676         define aliases when function name is a macro.
7677         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
7678         sysdeps/ieee754/dbl-64/sincos.tbl.
7679         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
7680         fma4-enabled routines.
7681         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
7682         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
7683         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
7684         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
7685         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
7686         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
7687         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
7688         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
7689         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
7690         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
7691         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
7692         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
7693         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
7694         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
7695         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
7696         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
7697         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
7698         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
7699         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
7700         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
7701         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
7702         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
7703         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
7704         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
7705         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
7706         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
7707         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
7708         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
7709         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
7710         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
7711
7712         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
7713         rename.
7714         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7715         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7716         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7717         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7718         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7719         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7720         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7721         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7722
7723 2011-10-24  Andreas Schwab  <schwab@redhat.com>
7724
7725         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
7726
7727 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7728
7729         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
7730
7731         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
7732         prediction.
7733         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
7734
7735         * string/strnlen.c: Don't define STRNLEN, reverse logic.
7736         Remove unused variable magic_bits.
7737         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
7738
7739         * string/strnlen.c: Define and use STRNLEN macro.
7740         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
7741         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
7742         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
7743         * wcsmbs/wcslen.c: Define and use WCSLEN.
7744         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
7745         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
7746         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
7747         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
7748         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
7749         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
7750         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7751
7752 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7753
7754         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7755         strnlen-sse2-no-bsf.
7756         Rename strlen-no-bsf to strlen-sse2-no-bsf.
7757         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
7758         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
7759         Add strnlen support.
7760         (USE_AS_STRNLEN): New macro.
7761         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
7762         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
7763         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
7764         * sysdeps/x86_64/wcslen.S: New file.
7765
7766 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7767
7768         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7769         XMM-moves are used for copying on small sizes.
7770
7771 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7772
7773         * wcsmbs/Makefile (strop-tests): Add wcschr.
7774         * wcsmbs/test-wcschr.c: New file.
7775         * string/test-strchr.c: Update.
7776         Add wcschr support.
7777         (WIDE): New macro.
7778
7779 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7780
7781         * wcsmbs/Makefile (strop-tests): Add wcslen.
7782         * wcsmbs/test-wcslen.c: New file.
7783         * string/test-strlen.c: Update.
7784         Add wcslen support.
7785         (WIDE): New macro.
7786
7787 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7788
7789         * po/it.po: Update from translation team.
7790
7791 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7792
7793         * sysdeps/x86_64/wcscmp.S: Update.
7794         Fix wrong comparison semantics.
7795         wcscmp shall use signed comparison not unsigned.
7796         Don't use substraction to avoid overflow bug.
7797         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
7798         * wcsmbc/wcscmp.c: Likewise.
7799         * string/test-strcmp.c: Likewise.
7800         Add new tests to check cases with negative values.
7801
7802 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7803
7804         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
7805         * sysdeps/x86_64/dla.h: ...here.  New file.
7806         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
7807         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7808         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7809         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7810         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7811         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7812         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7813         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7814         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7815
7816 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
7817
7818         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
7819         __ynl_finite aliases.
7820
7821 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7822
7823         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7824
7825         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
7826         define DLA_FMA.
7827         [DLA_FMA] (EMULV): Use DLA_FMA.
7828         [DLA_FMA] (MUL12): Use EMULV.
7829         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
7830         that are not needed.
7831         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7832         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7833         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7834         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7835         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7836         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7837         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7838
7839 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
7840
7841         * math/s_nan.c: Undef __nan.
7842         * math/s_nanf.c: Undef __nanf.
7843         * math/s_nanl.c: Undef __nanl.
7844         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
7845         "math_private.h".
7846
7847 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7848
7849         * math/s_catan.c: Add branch predictions.
7850         * math/s_catanf.c: Likewise.
7851         * math/s_catanh.c: Likewise.
7852         * math/s_catanhf.c: Likewise.
7853         * math/s_catanhl.c: Likewise.
7854         * math/s_catanl.c: Likewise.
7855         * math/s_cexp.c: Likewise.
7856         * math/s_cexpf.c: Likewise.
7857         * math/s_cexpl.c: Likewise.
7858         * math/s_clog.c: Likewise.
7859         * math/s_clog10.c: Likewise.
7860         * math/s_clog10f.c: Likewise.
7861         * math/s_clog10l.c: Likewise.
7862         * math/s_clogf.c: Likewise.
7863         * math/s_clogl.c: Likewise.
7864         * math/s_csqrt.c: Likewise.
7865         * math/s_csqrtf.c: Likewise.
7866         * math/s_csqrtl.c: Likewise.
7867         * math/s_ctanf.c: Likewise.
7868         * math/s_ctanh.c: Likewise.
7869         * math/s_ctanhf.c: Likewise.
7870         * math/s_ctanhl.c: Likewise.
7871         * math/s_ctanl.c: Likewise.
7872
7873         * math/math_private.h: Define __nan, __nanf, __nanl.
7874         * math/s_cacosh.c: Include <math_private.h>.
7875         * math/s_cacoshl.c: Likewise.
7876         * math/s_casinh.c: Likewise.
7877         * math/s_casinhf.c: Likewise.
7878         * math/s_casinhl.c: Likewise.
7879         * math/s_ccos.c: Rely entire on ccosh.
7880         * math/s_ccosf.c: Rely entire on ccoshf.
7881         * math/s_ccosl.c: Rely entirely on ccoshl.
7882         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
7883         Remove tests for FE_INVALID.
7884         * math/s_ccoshf.c: Likewise.
7885         * math/s_ccoshl.c: Likewise.
7886         * math/s_csin.c: Likewise.
7887         * math/s_csinf.c: Likewise.
7888         * math/s_csinh.c Likewise.
7889         * math/s_csinhf.c: Likewise.
7890         * math/s_csinhl.c: Likewise.
7891         * math/s_csinl.c: Likewise.
7892         * math/s_ctan.c: Likewise.
7893         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
7894         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
7895         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
7896
7897 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
7898
7899         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
7900         compilation problems.
7901
7902         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
7903         __builtin_expect.
7904
7905 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
7906
7907         * sysdeps/i386/configure.in: Test for -mfma4 option.
7908         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
7909         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
7910         COMMON_CPUID_INDEX_80000001.
7911         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
7912         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
7913         use it if FMA3 is not supported.
7914         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
7915
7916         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
7917         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
7918
7919 2011-10-20  Andreas Schwab  <schwab@redhat.com>
7920
7921         [BZ #12892]
7922         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
7923         it would create a cycle with a link time dependency.
7924
7925 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
7926
7927         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
7928         instruction.
7929         * string/Makefile (strop-tests): Add rawmemchr.
7930         * string/test-rawmemchr.c: New file.
7931
7932         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
7933         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
7934         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
7935         when compiling str{,n}casecmp and when AVX is available.  Hook up
7936         new optimized code in initializers.
7937
7938 2011-10-19  Andreas Schwab  <schwab@redhat.com>
7939
7940         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
7941         __feraiseexcept instead of feraiseexcept.
7942
7943 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
7944
7945         * math/math_private.h: Define defaults for libc_fetestexcept and
7946         libc_feupdateenv.
7947         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
7948         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7949         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7950         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7951         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7952         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7953         libc_fetestexcept and libc_feupdateenv.
7954
7955         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
7956         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
7957         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
7958         * sysdeps/x86_64/fpu/math_private.h: Define special version of
7959         libc_feholdexcept_setround.
7960
7961         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
7962         Add s_nearbyint-c and s_nearbyintf-c.
7963         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
7964         nearbyintf inlines.
7965         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
7966         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
7967         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
7968         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
7969
7970         * math/math_private.h: Define defaults for libc_fegetround,
7971         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
7972         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
7973         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
7974         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
7975         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
7976         standard functions.
7977         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7978         Remove comments and hacks for old compiler versions.
7979         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7980         libc_fegetround, libc_fesetround, libc_feholdexcept, and
7981         libc_feholdexceptl.
7982
7983 2011-10-18  Andreas Schwab  <schwab@redhat.com>
7984
7985         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
7986         (__feraiseexcept_renamed): Add __NTH.
7987         (feraiseexcept): Add __NTH.  Rename local variables to fix
7988         namespace violations.
7989
7990 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
7991
7992         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
7993
7994         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
7995
7996         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
7997         recently added interfaces.
7998         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7999
8000         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
8001         about macro parameter expansion.
8002
8003         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
8004         __NO_MATH_INLINES is defined.  Cleanups.
8005
8006         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
8007         and __floorf is target has SSE4.1.
8008         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
8009         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
8010         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
8011         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
8012
8013         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
8014         name.
8015         (floorf): Likewise.
8016
8017         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
8018
8019 2011-10-17  Andreas Schwab  <schwab@redhat.com>
8020
8021         * misc/sys/cdefs.h: Fix last change.
8022
8023         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
8024         database lookup.
8025
8026 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
8027
8028         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
8029
8030         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
8031         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8032         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8033         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8034         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8035         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8036         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8037         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8038         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8039         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
8040         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
8041         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
8042         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
8043         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
8044         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
8045         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
8046         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
8047         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
8048         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
8049         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
8050         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
8051         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
8052
8053         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
8054         ceil, ceilf, floor, floorf.
8055
8056         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
8057         Perform IRELATIVE relocations last.
8058
8059         * elf/do-rel.h: Add another parameter nrelative, replacing the
8060         local variable with the same name.  Change name of the function
8061         to end in Rel or Rela (uppercase).
8062         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
8063         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
8064         elf_dynamic_do_##reloc function.
8065
8066 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
8067
8068         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
8069         is sufficient, at least on modern CPUs.
8070
8071         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
8072
8073         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
8074         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
8075
8076         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
8077         __expl_finite.
8078         * math/bits/math-finite.h: Add entries for exp.
8079         * math/e_expl.c: Add __*_finite alias.
8080         * sysdeps/i386/fpu/e_exp.S: Likewise.
8081         * sysdeps/i386/fpu/e_expf.S: Likewise.
8082         * sysdeps/i386/fpu/e_expl.c: Likewise.
8083         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8084         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8085         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8086         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8087         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
8088         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8089         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8090
8091         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
8092         is sufficient, at least on modern CPUs.
8093
8094         * ctype/ctype-info.c (__ctype_init): Define.
8095         * include/ctype.h (__ctype_init): Declare.
8096         (__ctype_b_loc): The variable is always initialized.
8097         (__ctype_toupper_loc): Likewise.
8098         (__ctype_tolower_loc): Likewise.
8099         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
8100         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
8101
8102 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
8103
8104         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
8105
8106         * configure.in: Also look in $cxxmachine/include for C++ system
8107         headers.
8108
8109 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8110
8111         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
8112         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
8113         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
8114         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
8115         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
8116         (USE_AS_WMEMCMP): New macro.
8117         Fixing indents.
8118         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
8119         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
8120         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
8121         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
8122         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8123         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
8124         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
8125         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
8126         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
8127         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
8128         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
8129         (USE_AS_WMEMCMP): New macro.
8130         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
8131         * sysdeps/string/test-memcmp.c: Update.
8132         Fix simple_wmemcmp.
8133         Add new tests.
8134         * wcsmbs/wmemcmp.c: Update.
8135         (WMEMCMP): New macro.
8136         Fix overflow bug.
8137
8138 2011-10-12  Andreas Jaeger  <aj@suse.de>
8139
8140         [BZ #13268]
8141         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
8142
8143 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
8144
8145         * libio/iofwide.c (do_length): Avoid warning.
8146
8147         * ctype/ctype.h (__isctype_f): Add missing __THROW.
8148
8149 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
8150
8151         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
8152
8153         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
8154         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
8155         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
8156         * sysdeps/i386/i686/fpu/e_log.S: New file.
8157         * sysdeps/i386/i686/fpu/e_logf.S: New file.
8158         * sysdeps/i386/i686/fpu/e_logl.S: New file.
8159
8160         * ctype/ctype.h: Add support for inlined isXXX functions when
8161         compiling C++ code.
8162
8163 2011-10-14  Andreas Schwab  <schwab@redhat.com>
8164
8165         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8166
8167         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
8168
8169 2011-10-13  Roland McGrath  <roland@hack.frob.com>
8170
8171         [BZ #13291]
8172         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
8173
8174 2011-10-13  Andreas Schwab  <schwab@redhat.com>
8175
8176         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
8177         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
8178         feraiseexcept.
8179
8180         * sysdeps/x86_64/memrchr.S: Check for zero size.
8181
8182         * string/stratcliff.c: Add memrchr tests.
8183
8184 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8185
8186         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8187         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
8188         rawmemchr-sse2 rawmemchr-sse2-bsf.
8189         * sysdeps/i386/i686/multiarch/memchr.S: New file.
8190         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
8191         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
8192         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
8193         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
8194         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
8195         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
8196         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
8197         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
8198         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
8199         * string/memrchr.c (MEMRCHR): New macro.
8200
8201 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
8202
8203         Add integration with gcc's -ffinite-math-only and optimize wrapper
8204         functions in libm.
8205         * Versions.def: Define GLIBC_2.15 version for libm.
8206         * math/Makefile (headers): Add bits/math-finite.h.
8207         * math/bits/math-finite.h: New file.
8208         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
8209         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
8210         * math/e_acoshl.c: Add __*_finite alias.
8211         * math/e_acosl.c: Likewise.
8212         * math/e_asinl.c: Likewise.
8213         * math/e_atan2l.c: Likewise.
8214         * math/e_atanhl.c: Likewise.
8215         * math/e_coshl.c: Likewise.
8216         * math/e_exp10.c: Likewise.
8217         * math/e_exp10f.c: Likewise.
8218         * math/e_exp10l.c: Likewise.
8219         * math/e_exp2l.c: Likewise.
8220         * math/e_fmodl.c: Likewise.
8221         * math/e_gammal_r.c: Likewise.
8222         * math/e_hypotl.c: Likewise.
8223         * math/e_j0l.c: Likewise.
8224         * math/e_j1l.c: Likewise.
8225         * math/e_jnl.c: Likewise.
8226         * math/e_lgammal_r.c: Likewise.
8227         * math/e_log10l.c: Likewise.
8228         * math/e_log2l.c: Likewise.
8229         * math/e_logl.c: Likewise.
8230         * math/e_powl.c: Likewise.
8231         * math/e_sinhl.c: Likewise.
8232         * math/e_sqrtl.c: Likewise.
8233         * math/e_scalb.c: Completely rewritten and optimized.
8234         * math/e_scalbf.c: Likewise.
8235         * math/e_scalbl.c: Likewise.
8236         * math/w_acos.c: Likewise.
8237         * math/w_acosf.c: Likewise.
8238         * math/w_acosl.c: Likewise.
8239         * math/w_acosh.c: Likewise.
8240         * math/w_acoshf.c: Likewise.
8241         * math/w_acoshl.c: Likewise.
8242         * math/w_asin.c: Likewise.
8243         * math/w_asinf.c: Likewise.
8244         * math/w_asinl.c: Likewise.
8245         * math/w_atan2.c: Likewise.
8246         * math/w_atan2f.c: Likewise.
8247         * math/w_atan2l.c: Likewise.
8248         * math/w_atanh.c: Likewise.
8249         * math/w_atanhf.c: Likewise.
8250         * math/w_atanhl.c: Likewise.
8251         * math/w_exp10.c: Likewise.
8252         * math/w_exp10f.c: Likewise.
8253         * math/w_exp10l.c: Likewise.
8254         * math/w_fmod.c: Likewise.
8255         * math/w_fmodf.c: Likewise.
8256         * math/w_fmodl.c: Likewise.
8257         * math/w_j0.c: Likewise.
8258         * math/w_j0f.c: Likewise.
8259         * math/w_j0l.c: Likewise.
8260         * math/w_j1.c: Likewise.
8261         * math/w_j1f.c: Likewise.
8262         * math/w_j1l.c: Likewise.
8263         * math/w_jn.c: Likewise.
8264         * math/w_jnf.c: Likewise.
8265         * math/w_log.c: Likewise.
8266         * math/w_logf.c: Likewise.
8267         * math/w_logl.c: Likewise.
8268         * math/w_log10.c: Likewise.
8269         * math/w_log10f.c: Likewise.
8270         * math/w_log10l.c: Likewise.
8271         * math/w_log2.c: Likewise.
8272         * math/w_log2f.c: Likewise.
8273         * math/w_log2l.c: Likewise.
8274         * math/w_pow.c: Likewise.
8275         * math/w_powf.c: Likewise.
8276         * math/w_powl.c: Likewise.
8277         * math/w_remainder.c: Likewise.
8278         * math/w_remainderf.c: Likewise.
8279         * math/w_remainderl.c: Likewise.
8280         * math/w_scalb.c: Likewise.
8281         * math/w_scalbf.c: Likewise.
8282         * math/w_scalbl.c: Likewise.
8283         * math/w_sqrt.c: Likewise.
8284         * math/w_sqrtf.c: Likewise.
8285         * math/w_sqrtl.c: Likewise.
8286         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
8287         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
8288         used.
8289         * math/math_private.h: Declare __kernel_standard_f.
8290         * math/w_cosh.c: Remove cruft and optimize a bit.
8291         * math/w_coshf.c: Likewise.
8292         * math/w_coshl.c: Likewise.
8293         * math/w_exp2.c: Likewise.
8294         * math/w_exp2f.c: Likewise.
8295         * math/w_exp2l.c: Likewise.
8296         * math/w_hypot.c: Likewise.
8297         * math/w_hypotf.c: Likewise.
8298         * math/w_hypotl.c: Likewise.
8299         * math/w_lgamma.c: Likewise.
8300         * math/w_lgamma_r.c: Likewise.
8301         * math/w_lgammaf.c: Likewise.
8302         * math/w_lgammaf_r.c: Likewise.
8303         * math/w_lgammal.c: Likewise.
8304         * math/w_lgammal_r.c: Likewise.
8305         * math/w_sinh.c: Likewise.
8306         * math/w_sinhf.c: Likewise.
8307         * math/w_sinhl.c: Likewise.
8308         * math/w_tgamma.c: Likewise.
8309         * math/w_tgammaf.c: Likewise.
8310         * math/w_tgammal.c: Likewise.
8311         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8312         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8313         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
8314         Minor optimizations.  Pretty printing.  Remove cruft.
8315         * sysdeps/i386/fpu/e_acosf.S: Likewise.
8316         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8317         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8318         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8319         * sysdeps/i386/fpu/e_acosl.c: Likewise.
8320         * sysdeps/i386/fpu/e_asin.S: Likewise.
8321         * sysdeps/i386/fpu/e_asinf.S: Likewise.
8322         * sysdeps/i386/fpu/e_atan2.S: Likewise.
8323         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
8324         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
8325         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8326         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8327         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8328         * sysdeps/i386/fpu/e_exp10.S: Likewise.
8329         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
8330         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
8331         * sysdeps/i386/fpu/e_exp2.S: Likewise.
8332         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
8333         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
8334         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8335         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
8336         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8337         * sysdeps/i386/fpu/e_hypot.S: Likewise.
8338         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
8339         * sysdeps/i386/fpu/e_log.S: Likewise.
8340         * sysdeps/i386/fpu/e_log10.S: Likewise.
8341         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8342         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8343         * sysdeps/i386/fpu/e_log2.S: Likewise.
8344         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8345         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8346         * sysdeps/i386/fpu/e_logf.S: Likewise.
8347         * sysdeps/i386/fpu/e_logl.S: Likewise.
8348         * sysdeps/i386/fpu/e_pow.S: Likewise.
8349         * sysdeps/i386/fpu/e_powf.S: Likewise.
8350         * sysdeps/i386/fpu/e_powl.S: Likewise.
8351         * sysdeps/i386/fpu/e_remainder.S: Likewise.
8352         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
8353         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
8354         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8355         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8356         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8357         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
8358         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
8359         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
8360         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8361         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8362         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8363         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8364         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8365         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8366         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8367         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8368         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8369         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8370         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8371         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8372         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8373         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8374         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8375         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8376         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8377         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8378         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8379         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8380         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8381         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8382         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8383         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8384         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8385         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8386         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8387         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8388         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8389         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8390         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8391         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8392         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8393         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8394         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8395         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8396         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8397         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8398         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8399         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8400         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8401         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8402         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8403         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8404         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8405         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8406         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8407         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8408         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8409         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8410         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8411         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8412         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8413         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8414         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8415         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8416         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8417         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8418         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8419         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8420         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8421         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8422         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8423         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8424         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8425         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8426         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8427         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8428         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8429         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8430         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8431         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8432         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8433         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8434         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8435         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8436         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
8437         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8438         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8439         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8440         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8441         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8442         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8443         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8444         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8445         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8446         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8447         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8448         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8449         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8450         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8451         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8452         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8453         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8454         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8455         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8456         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8457         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
8458         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
8459         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
8460         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
8461         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
8462         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
8463         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
8464         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8465         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8466         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8467         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8468         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
8469         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8470         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
8471         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
8472         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
8473         (__isnanf): Likewise.
8474         (__isinf_ns): Likewise.
8475         (__isinf_nsf): Likewise.
8476         (__finite): Likewise.
8477         (__finitef): Likewise.
8478         (__ieee754_sqrt): Define as macro.
8479         (__ieee754_sqrtf): Define as macro.
8480         (__ieee754_sqrtl): Define as macro.
8481         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
8482         inlined copy.
8483         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
8484         __FINITE_MATH_ONLY__ consistent.
8485         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
8486
8487 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
8488
8489         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
8490         of rawmemchr.
8491
8492         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
8493
8494 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
8495
8496         * po/ja.po: Update from translation team.
8497
8498 2011-10-08  Roland McGrath  <roland@hack.frob.com>
8499
8500         * locale/programs/locarchive.c (prepare_address_space): New function.
8501         (create_archive, enlarge_archive, open_archive): Use it.
8502
8503         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
8504         inside [SHARED], where it is used.
8505
8506         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
8507
8508         * nss/getent.c (netgroup_keys): Remove unused variable.
8509         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8510
8511 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
8512
8513         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
8514         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
8515         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
8516         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
8517         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
8518         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
8519         * math/Makefile (libm-calls): Add s_isinf_ns.
8520         * math/divtc3.c: Use __isinf_nsl instead of isinf.
8521         * math/multc3.c: Likewise.
8522         * math/s_casin.c: Likewise.
8523         * math/s_casinf.c: Likewise.
8524         * math/s_casinl.c: Likewise.
8525         * math/s_ccos.c: Likewise.
8526         * math/s_ccosf.c: Likewise.
8527         * math/s_ccosl.c: Likewise.
8528         * math/s_ctan.c: Likewise.
8529         * math/s_ctanf.c: Likewise.
8530         * math/s_ctanh.c: Likewise.
8531         * math/s_ctanhf.c: Likewise.
8532         * math/s_ctanhl.c: Likewise.
8533         * math/s_ctanl.c: Likewise.
8534         * math/w_fmod.c: Likewise.
8535         * math/w_fmodf.c: Likewise.
8536         * math/w_fmodl.c: Likewise.
8537         * math/w_remainder.c: Likewise.
8538         * math/w_remainderf.c: Likewise.
8539         * math/w_remainderl.c: Likewise.
8540         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
8541         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
8542         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
8543         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
8544         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
8545         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
8546         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
8547         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
8548
8549         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
8550         of the number.
8551         * stdio-common/printf_fphex.c: Likewise.
8552         * stdio-common/printf_size.c: Likewise.
8553
8554         * math/e_exp10.c: Include math_private.h using <...> not "...".
8555         * math/e_exp10f.c: Likewise.
8556         * math/e_exp10l.c: Likewise.
8557         * math/e_exp2l.c: Likewise.
8558         * math/e_j0l.c: Likewise.
8559         * math/e_j1l.c: Likewise.
8560         * math/e_jnl.c: Likewise.
8561         * math/e_lgammal_r.c: Likewise.
8562         * math/e_rem_pio2l.c: Likewise.
8563         * math/e_scalb.c: Likewise.
8564         * math/e_scalbf.c: Likewise.
8565         * math/e_scalbl.c: Likewise.
8566         * math/k_cosl.c: Likewise.
8567         * math/k_sinl.c: Likewise.
8568         * math/k_tanl.c: Likewise.
8569         * math/s_cacoshf.c: Likewise.
8570         * math/s_catan.c: Likewise.
8571         * math/s_catanf.c: Likewise.
8572         * math/s_catanh.c: Likewise.
8573         * math/s_catanhf.c: Likewise.
8574         * math/s_catanhl.c: Likewise.
8575         * math/s_catanl.c: Likewise.
8576         * math/s_ccosh.c: Likewise.
8577         * math/s_ccoshf.c: Likewise.
8578         * math/s_ccoshl.c: Likewise.
8579         * math/s_cexp.c: Likewise.
8580         * math/s_cexpf.c: Likewise.
8581         * math/s_cexpl.c: Likewise.
8582         * math/s_clog.c: Likewise.
8583         * math/s_clog10.c: Likewise.
8584         * math/s_clog10f.c: Likewise.
8585         * math/s_clog10l.c: Likewise.
8586         * math/s_clogf.c: Likewise.
8587         * math/s_clogl.c: Likewise.
8588         * math/s_csin.c: Likewise.
8589         * math/s_csinf.c: Likewise.
8590         * math/s_csinh.c: Likewise.
8591         * math/s_csinhf.c: Likewise.
8592         * math/s_csinhl.c: Likewise.
8593         * math/s_csinl.c: Likewise.
8594         * math/s_csqrt.c: Likewise.
8595         * math/s_csqrtf.c: Likewise.
8596         * math/s_csqrtl.c: Likewise.
8597         * math/s_ctan.c: Likewise.
8598         * math/s_ctanf.c: Likewise.
8599         * math/s_ctanh.c: Likewise.
8600         * math/s_ctanhf.c: Likewise.
8601         * math/s_ctanhl.c: Likewise.
8602         * math/s_ctanl.c: Likewise.
8603         * math/s_ldexp.c: Likewise.
8604         * math/s_ldexpf.c: Likewise.
8605         * math/s_ldexpl.c: Likewise.
8606         * math/s_significand.c: Likewise.
8607         * math/s_significandf.c: Likewise.
8608         * math/s_significandl.c: Likewise.
8609         * math/w_acos.c: Likewise.
8610         * math/w_acosf.c: Likewise.
8611         * math/w_acosh.c: Likewise.
8612         * math/w_acoshf.c: Likewise.
8613         * math/w_acoshl.c: Likewise.
8614         * math/w_acosl.c: Likewise.
8615         * math/w_asin.c: Likewise.
8616         * math/w_asinf.c: Likewise.
8617         * math/w_asinl.c: Likewise.
8618         * math/w_atan2.c: Likewise.
8619         * math/w_atan2f.c: Likewise.
8620         * math/w_atan2l.c: Likewise.
8621         * math/w_atanh.c: Likewise.
8622         * math/w_atanhf.c: Likewise.
8623         * math/w_atanhl.c: Likewise.
8624         * math/w_cosh.c: Likewise.
8625         * math/w_coshf.c: Likewise.
8626         * math/w_coshl.c: Likewise.
8627         * math/w_dremf.c: Likewise.
8628         * math/w_exp10.c: Likewise.
8629         * math/w_exp10f.c: Likewise.
8630         * math/w_exp10l.c: Likewise.
8631         * math/w_exp2.c: Likewise.
8632         * math/w_exp2f.c: Likewise.
8633         * math/w_fmod.c: Likewise.
8634         * math/w_fmodf.c: Likewise.
8635         * math/w_fmodl.c: Likewise.
8636         * math/w_hypot.c: Likewise.
8637         * math/w_hypotf.c: Likewise.
8638         * math/w_hypotl.c: Likewise.
8639         * math/w_j0.c: Likewise.
8640         * math/w_j0f.c: Likewise.
8641         * math/w_j0l.c: Likewise.
8642         * math/w_j1.c: Likewise.
8643         * math/w_j1f.c: Likewise.
8644         * math/w_j1l.c: Likewise.
8645         * math/w_jn.c: Likewise.
8646         * math/w_jnf.c: Likewise.
8647         * math/w_jnl.c: Likewise.
8648         * math/w_lgamma.c: Likewise.
8649         * math/w_lgamma_r.c: Likewise.
8650         * math/w_lgammaf.c: Likewise.
8651         * math/w_lgammaf_r.c: Likewise.
8652         * math/w_lgammal.c: Likewise.
8653         * math/w_lgammal_r.c: Likewise.
8654         * math/w_log.c: Likewise.
8655         * math/w_log10.c: Likewise.
8656         * math/w_log10f.c: Likewise.
8657         * math/w_log10l.c: Likewise.
8658         * math/w_log2.c: Likewise.
8659         * math/w_log2f.c: Likewise.
8660         * math/w_log2l.c: Likewise.
8661         * math/w_logf.c: Likewise.
8662         * math/w_logl.c: Likewise.
8663         * math/w_pow.c: Likewise.
8664         * math/w_powf.c: Likewise.
8665         * math/w_powl.c: Likewise.
8666         * math/w_remainder.c: Likewise.
8667         * math/w_remainderf.c: Likewise.
8668         * math/w_remainderl.c: Likewise.
8669         * math/w_scalb.c: Likewise.
8670         * math/w_scalbf.c: Likewise.
8671         * math/w_scalbl.c: Likewise.
8672         * math/w_sinh.c: Likewise.
8673         * math/w_sinhf.c: Likewise.
8674         * math/w_sinhl.c: Likewise.
8675         * math/w_sqrt.c: Likewise.
8676         * math/w_sqrtf.c: Likewise.
8677         * math/w_sqrtl.c: Likewise.
8678         * math/w_tgamma.c: Likewise.
8679         * math/w_tgammaf.c: Likewise.
8680         * math/w_tgammal.c: Likewise.
8681
8682         * po/ja.po: Update from translation team.
8683
8684 2011-09-29  Andreas Jaeger  <aj@suse.de>
8685
8686         [BZ #13179]
8687         * sunrpc/netname.c (netname2host): Fix logic.
8688
8689         [BZ #6779]
8690         [BZ #6783]
8691         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
8692         correctly.
8693         * math/w_remainder.c (__remainder): Likewise.
8694         * math/w_remainderf.c (__remainderf): Likewise.
8695         * math/libm-test.inc (remainder_test): Add test cases.
8696
8697 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8698
8699         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
8700         sdiv_qrnnd.
8701
8702 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8703
8704         * string/test-memcmp.c: Avoid unncessary #defines.
8705         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8706
8707 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8708
8709         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
8710         Use new sse2 version for core i3 - i7 as it's faster
8711         than sse42 version.
8712         (bit_Prefer_PMINUB_for_stringop): New.
8713         * sysdeps/x86_64/rawmemchr.S: Update.
8714         Replace with faster SSE2 version.
8715         * sysdeps/x86_64/memrchr.S: New file.
8716         * sysdeps/x86_64/memchr.S: Update.
8717         Replace with faster SSE2 version.
8718
8719 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
8720
8721         * elf/dl-load.c (lose): Add cast to avoid warning.
8722
8723 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8724
8725         * po/ca.po: Update from translation team.
8726
8727         * inet/getnetgrent_r.c: Hook up nscd.
8728         * nscd/Makefile (routines): Add nscd_netgroup.
8729         (nscd-modules): Add netgroupcache.
8730         (CFLAGS-netgroupcache.c): Define.
8731         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
8732         (cache_search): Add const to second parameter.
8733         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
8734         INNETGR.
8735         (dbs): Add netgrdb entry.
8736         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
8737         (verify_persistent_db): Handle netgrdb.
8738         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
8739         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
8740         GETFDNETGR.
8741         (netgroup_response_header): Define.
8742         (innetgroup_response_header): Define.
8743         (datahead): Add netgroup_response_header and innetgroup_response_header
8744         elements.
8745         * nscd/nscd.conf: Add entries for netgroup cache.
8746         * nscd/nscd.h (dbtype): Add netgrdb.
8747         (_PATH_NSCD_NETGROUP_DB): Define.
8748         (netgroup_iov_disabled): Declare.
8749         (xmalloc, xcalloc, xrealloc): Move declarations here.
8750         (cache_search): Adjust prototype.
8751         Add netgroup-related prototypes.
8752         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
8753         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
8754         (__nscd_innetgr): Declare.
8755         * nscd/selinux.c (perms): Use access_vector_t as element type and
8756         add netgroup-related initializers.
8757         * nscd/netgroupcache.c: New file.
8758         * nscd/nscd_netgroup.c: New file.
8759         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
8760         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
8761         For four parameters use innetgr.
8762         * nss/nss_files/files-init.c: Add definition and callback for netgr.
8763         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
8764         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
8765         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
8766
8767         * nscd/connections.c (register_traced_file): Don't register file
8768         for disabled databases.
8769
8770 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
8771
8772         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
8773
8774         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
8775         from tree and freeing node.
8776
8777 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
8778
8779         * nss/nsswitch.c (__nss_database_lookup): Handle
8780         nss_parse_service_list out of memory case.
8781
8782 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
8783
8784         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
8785         out of memory case.
8786
8787 2011-10-04  Andreas Schwab  <schwab@redhat.com>
8788
8789         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
8790         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
8791         pass it down.
8792         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
8793         elf_machine_rela, elf_machine_lazy_rel.
8794         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
8795         (ELF_DYNAMIC_DO_REL): Likewise.
8796         (ELF_DYNAMIC_DO_RELA): Likewise.
8797         (ELF_DYNAMIC_RELOCATE): Likewise.
8798         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
8799         to ELF_DYNAMIC_DO_REL.
8800         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
8801         (dl_main): In trace mode always set __RTLD_NOIFUNC.
8802         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
8803         elf_machine_rela.
8804         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
8805         skip_ifunc, don't call ifunc function if non-zero.
8806         (elf_machine_rela): Likewise.
8807         (elf_machine_lazy_rel): Likewise.
8808         (elf_machine_lazy_rela): Likewise.
8809         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
8810         (elf_machine_lazy_rel): Likewise.
8811         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
8812         Likewise.
8813         (elf_machine_lazy_rel): Likewise.
8814         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8815         Likewise.
8816         (elf_machine_lazy_rel): Likewise.
8817         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
8818         (elf_machine_lazy_rel): Likewise.
8819         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8820         (elf_machine_lazy_rel): Likewise.
8821         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8822         (elf_machine_lazy_rel): Likewise.
8823         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8824         (elf_machine_lazy_rel): Likewise.
8825         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8826         (elf_machine_lazy_rel): Likewise.
8827         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8828         (elf_machine_lazy_rel): Likewise.
8829
8830 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
8831
8832         * nss/nss_files/files-init.c (_nss_files_init): Use static
8833         initialization for all the *_traced_file variables.
8834
8835 2011-09-28  Andreas Schwab  <schwab@redhat.com>
8836
8837         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8838
8839 2011-09-27  Roland McGrath  <roland@hack.frob.com>
8840
8841         [BZ #13226]
8842         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
8843
8844 2011-09-27  Andreas Schwab  <schwab@redhat.com>
8845
8846         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8847         Reread the line before reparsing it.
8848
8849 2011-09-26  Andreas Schwab  <schwab@redhat.com>
8850
8851         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
8852
8853 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
8854             Maxim Kuvyrkov  <maxim@codesourcery.com>
8855             Joseph Myers  <joseph@codesourcery.com>
8856
8857         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
8858         if needed for __stack_chk_guard.
8859
8860 2011-09-19  Roland McGrath  <roland@hack.frob.com>
8861
8862         * sysdeps/posix/spawni.c (script_execute): Always define it.
8863         It will be optimized away if unused.
8864         (maybe_script_execute): New function.
8865         (__spawni): Call it.
8866
8867         * Makerules: Don't include tls.make.
8868         (config-tls): Always set to thread.
8869         * tls.make.c: File removed.
8870
8871 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
8872
8873         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
8874         * config.make.in (CPPFLAGS-config): New substituted variable.
8875
8876 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8877
8878         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
8879
8880         [BZ #13192]
8881         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
8882         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
8883
8884 2011-09-15  Roland McGrath  <roland@hack.frob.com>
8885
8886         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
8887         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
8888         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
8889         (CALL_FAIL): Likewise.
8890         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
8891         (CALL_FAIL): Macro removed.
8892         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
8893
8894 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8895
8896         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
8897         for __FINITE_MATH_ONLY__ == 1.
8898
8899 2011-09-15  Andreas Schwab  <schwab@redhat.com>
8900
8901         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
8902         __ieee754_sqrt instead of sqrt.
8903         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
8904         __ieee754_sqrtf instead of sqrtf.
8905         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
8906         __floorf instead of floorf.
8907         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
8908         __floorf, __truncf instead of floorf, truncf.
8909
8910 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
8911
8912         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
8913
8914         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
8915         __extern_always_inline.
8916         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
8917         32-bit.
8918
8919 2011-09-14  Andreas Schwab  <schwab@redhat.com>
8920
8921         * elf/rtld.c (dl_main): Also relocate in dependency order when
8922         doing symbol dependency testing.
8923
8924 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
8925
8926         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8927         Always define `refsym'.
8928
8929 2011-09-13  Andreas Schwab  <schwab@redhat.com>
8930
8931         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
8932         (__FD_ELT): Renamed from __FDELT.
8933         * misc/bits/select2.h (__FD_ELT): Likewise.
8934         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
8935         __FD_MASK instead of __FDELT, __FDMASK.
8936         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8937         Likewise.
8938         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8939         Likewise.
8940
8941         * elf/Makefile (gen-ldd): Fix pattern.
8942
8943         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
8944         (init_tls): Likewise.
8945
8946 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
8947
8948         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
8949
8950 2011-09-12  Andreas Schwab  <schwab@redhat.com>
8951
8952         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
8953         `struct cmsghdr *' instead of `void *'.
8954         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
8955         Likewise.
8956
8957 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
8958
8959         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
8960         if non-absolute.
8961         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
8962         ldd_rewrite_script.
8963
8964 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
8965
8966         * configure.in: Remove --with-tls option.
8967         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
8968         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
8969         out in case it is missing.
8970         * sysdeps/ia64/elf/configure.in: Likewise.
8971         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
8972         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
8973         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
8974         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
8975         * sysdeps/sh/elf/configure.in: Likewise.
8976         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
8977         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8978         * sysdeps/x86_64/elf/configure.in: Likewise.
8979         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
8980         * sysdeps/mach/hurd/tls.h: Likewise.
8981
8982         [BZ #13067]
8983         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
8984
8985         [BZ #13090]
8986         * configure.in: Fix use of AC_INIT.
8987
8988         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
8989
8990 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
8991
8992         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
8993         __set_errno.
8994         * malloc/hooks.c: Likewise.
8995
8996         [BZ #11929]
8997         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
8998         variables statically.
8999         (narenas): Initialize.
9000         (list_lock): Initialize.
9001         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
9002         initializtion of main_arena and list_lock.  Small cleanups.
9003         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
9004         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
9005         Add initializers to main_arena and mp_.
9006         (malloc_state): Remove pagesize member.  Change all users to use
9007         GLRO(dl_pagesize).
9008
9009         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
9010         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
9011         is always initialized.
9012
9013         * malloc/malloc.c: Removed unused configurations and dead code.
9014         * malloc/arena.c: Likewise.
9015         * malloc/hooks.c: Likewise.
9016         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
9017
9018         * include/tls.h: Removed.  USE___THREAD must always be defined.
9019         * bits/libc-tsd.h: Don't handle !USE___THREAD.
9020         * elf/dl-libc.c: Likewise.
9021         * elf/dl-tsd.c: Likewise.
9022         * include/errno.h: Likewise.
9023         * include/netdb.h: Likewise.
9024         * include/resolv.h: Likewise.
9025         * inet/herrno-loc.c: Likewise.
9026         * inet/herrno.c: Likewise.
9027         * malloc/arena.c: Likewise.
9028         * malloc/hooks.c: Likewise.
9029         * malloc/malloc.c: Likewise.
9030         * resolv/res-state.c: Likewise.
9031         * resolv/res_libc.c: Likewise.
9032         * sysdeps/i386/dl-machine.h: Likewise.
9033         * sysdeps/ia64/dl-machine.h: Likewise.
9034         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9035         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9036         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9037         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9038         * sysdeps/sh/dl-machine.h: Likewise.
9039         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9040         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9041         * sysdeps/unix/i386/sysdep.S: Likewise.
9042         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9043         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9044         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9045         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9046         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9047         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9048         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9049         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9050         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9051         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9052         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9053         * sysdeps/x86_64/dl-machine.h: Likewise.
9054         * tls.make.c: Likewise.
9055
9056         * configure.in: Remove --with-__thread option.  Make tests for
9057         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
9058         tls_model attribute fail if no support is available.  Remove
9059         USE_IN_LIBIO.
9060         * Makeconfig: Adjust for dropped configure option.  All features are
9061         now mandatory.
9062         * Makerules: Likewise.
9063         * Versions.def: Likewise.
9064         * argp/argp-fmtstream.c: Likewise.
9065         * argp/argp-fmtstream.h: Likewise.
9066         * argp/argp-help.c: Likewise.
9067         * assert/assert.c: Likewise.
9068         * config.h.in: Likewise.
9069         * config.make.in: Likewise.
9070         * configure: Likewise.
9071         * configure.in: Likewise.
9072         * csu/Versions: Likewise.
9073         * csu/init.c: Likewise.
9074         * elf/tst-audit2.c: Likewise.
9075         * elf/tst-tls10.c: Likewise.
9076         * elf/tst-tls10.h: Likewise.
9077         * elf/tst-tls11.c: Likewise.
9078         * elf/tst-tls12.c: Likewise.
9079         * elf/tst-tls14.c: Likewise.
9080         * elf/tst-tlsmod11.c: Likewise.
9081         * elf/tst-tlsmod12.c: Likewise.
9082         * elf/tst-tlsmod13.c: Likewise.
9083         * elf/tst-tlsmod13a.c: Likewise.
9084         * elf/tst-tlsmod14a.c: Likewise.
9085         * elf/tst-tlsmod15b.c: Likewise.
9086         * elf/tst-tlsmod16a.c: Likewise.
9087         * elf/tst-tlsmod16b.c: Likewise.
9088         * elf/tst-tlsmod7.c: Likewise.
9089         * elf/tst-tlsmod8.c: Likewise.
9090         * elf/tst-tlsmod9.c: Likewise.
9091         * gmon/gmon.c: Likewise.
9092         * grp/fgetgrent_r.c: Likewise.
9093         * grp/putgrent.c: Likewise.
9094         * hurd/fopenport.c: Likewise.
9095         * include/libc-symbols.h: Likewise.
9096         * include/tls.h: Likewise.
9097         * intl/gettextP.h: Likewise.
9098         * intl/loadinfo.h: Likewise.
9099         * locale/global-locale.c: Likewise.
9100         * locale/localeinfo.h: Likewise.
9101         * mach/devstream.c: Likewise.
9102         * malloc/arena.c: Likewise.
9103         * malloc/set-freeres.c: Likewise.
9104         * misc/err.c: Likewise.
9105         * misc/getttyent.c: Likewise.
9106         * misc/mntent_r.c: Likewise.
9107         * posix/getopt.c: Likewise.
9108         * posix/wordexp.c: Likewise.
9109         * pwd/fgetpwent_r.c: Likewise.
9110         * resolv/Versions: Likewise.
9111         * resolv/res_hconf.c: Likewise.
9112         * shadow/fgetspent_r.c: Likewise.
9113         * shadow/putspent.c: Likewise.
9114         * stdio-common/printf_fphex.c: Likewise.
9115         * stdio-common/tmpfile.c: Likewise.
9116         * stdlib/abort.c: Likewise.
9117         * stdlib/fmtmsg.c: Likewise.
9118         * sunrpc/auth_unix.c: Likewise.
9119         * sunrpc/clnt_perr.c: Likewise.
9120         * sunrpc/clnt_tcp.c: Likewise.
9121         * sunrpc/clnt_udp.c: Likewise.
9122         * sunrpc/clnt_unix.c: Likewise.
9123         * sunrpc/openchild.c: Likewise.
9124         * sunrpc/svc_simple.c: Likewise.
9125         * sunrpc/svc_tcp.c: Likewise.
9126         * sunrpc/svc_udp.c: Likewise.
9127         * sunrpc/svc_unix.c: Likewise.
9128         * sunrpc/xdr.c: Likewise.
9129         * sunrpc/xdr_array.c: Likewise.
9130         * sunrpc/xdr_rec.c: Likewise.
9131         * sunrpc/xdr_ref.c: Likewise.
9132         * sunrpc/xdr_stdio.c: Likewise.
9133
9134 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9135
9136         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9137
9138 2011-07-03  Andreas Jaeger  <aj@suse.de>
9139
9140         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
9141         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
9142         regenerate with gen-libm-tests.pl.
9143
9144 2010-05-12  Petr Baudis  <pasky@suse.cz>
9145
9146         [BZ #11589]
9147         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
9148         around j0() zero points by switching to j1().
9149         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9150         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9151         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9152         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9153
9154 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9155
9156         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
9157         instead of 0.
9158         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
9159         instead of 0.                              .
9160         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9161         Patch in part by Pavel Roskin <proski@gnu.org>.
9162
9163         [BZ #13138]
9164         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
9165         realloc.
9166         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
9167         Free memory block if necessary.
9168
9169         [BZ #12847]
9170         * libio/genops.c (INTDEF): For string streams the _lock pointer can
9171         be NULL.  Don't lock in this case.
9172
9173 2011-09-09  Roland McGrath  <roland@hack.frob.com>
9174
9175         * elf/elf.h (ELFOSABI_GNU): New macro.
9176         (ELFOSABI_LINUX): Define to that.
9177
9178 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
9179
9180         * string/strncat.c (strncat): Undef the symbol in case it has been
9181         defined in bits/string.h.
9182
9183 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
9184
9185         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
9186
9187         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
9188         link map.
9189
9190 2011-08-17  Andreas Jaeger  <aj@suse.de>
9191
9192         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
9193
9194 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
9195             Ian Lance Taylor  <iant@google.com>
9196
9197         * math/libm-test.inc (lround_test): New testcase.
9198         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
9199
9200 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
9201
9202         * Makefile: Remove support for automatic cvs check-ins.
9203         * Makerules: Likewise.
9204         * config.make.in: Likewise.
9205         * configure.in: Likewise.
9206         * intl/Makefile: Likewise.
9207         * locale/Makefile: Likewise.
9208         * po/Makefile: Likewise.
9209         * posix/Makefile: Likewise.
9210         * sysdeps/gnu/Makefile: Likewise.
9211         * sysdeps/mach/hurd/Makefile: Likewise.
9212         * sysdeps/sparc/sparc32/Makefile: Likewise.
9213
9214         [BZ #13118]
9215         * posix/Makefile (bug-regex32-ENV): Define.
9216         Patch by John Stanley <jpsinthemix@verizon.net>.
9217
9218         * misc/Makefile (headers): Add bits/select2.h.
9219         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
9220         * misc/bits/select2.h: New file.
9221         * include/bits/select2.h: New file.
9222         * debug/Makefile (routines): Add fdelt_chk.
9223         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
9224         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
9225         FD_ISSET.
9226         * debug/fdelt_chk.c: New file.
9227
9228         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
9229         * wcsmbs/test-wmemcmp.c: Likewise.
9230         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
9231         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
9232
9233 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9234
9235         * string/Makefile (strop-tests): Add memcmp.
9236         * string/test-wmemcmp.c: New file.
9237         * string/test-memcmp.c: Add wmemcmp support.
9238
9239 2011-09-08  Roland McGrath  <roland@hack.frob.com>
9240
9241         [BZ #13153]
9242         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
9243         2011-07-19 change.
9244
9245         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
9246         garbage value in a __mach_port_mod_refs call in the cases of the
9247         task-self and thread-self ports.
9248
9249 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9250
9251         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
9252
9253 2011-09-08  Andreas Schwab  <schwab@redhat.com>
9254
9255         * elf/dl-load.c (lose): Check for non-null L.
9256
9257 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9258
9259         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
9260
9261         * elf/dl-libc.c (dlerror_run): Pass back error code from
9262         dl_catch_error.
9263
9264         [BZ #13123]
9265         * elf/dl-load.c (lose): Free l_origin if it is valid.
9266
9267         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
9268         names.
9269         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
9270         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9271         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9272         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9273         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
9274         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
9275
9276 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9277
9278         * sysdeps/powerpc/fpu/e_hypot.c: New file.
9279         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
9280         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
9281         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
9282         * sysdeps/powerpc/fpu/k_cosf.c: New file.
9283         * sysdeps/powerpc/fpu/k_sinf.c: New file.
9284         * sysdeps/powerpc/fpu/s_cosf.c: New file.
9285         * sysdeps/powerpc/fpu/s_sinf.c: New file.
9286         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
9287         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
9288
9289 2011-08-15  Alan Modra  <amodra@gmail.com>
9290
9291         [BZ #13092]
9292         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
9293         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
9294         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
9295         ppc_mcount to static-only-routines.
9296         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
9297         __mcount_internal.
9298         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
9299         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
9300
9301 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
9302
9303         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
9304         for finite and infinity parameters.
9305
9306 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9307
9308         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
9309         and add nop instructions for throughput optimization.
9310         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9311
9312 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
9313
9314         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
9315         aligned copy for power7 with vector-scalar instructions.
9316         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
9317
9318 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9319
9320         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
9321         AVX check.
9322
9323 2011-09-07  Andreas Schwab  <schwab@redhat.com>
9324
9325         [BZ #13144]
9326         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
9327         last change.
9328
9329 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9330
9331         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9332         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
9333         syscall wrapper around clock_gettime in __vdso_clock_gettime.
9334         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
9335         clock_gettime.
9336
9337 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9338
9339         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
9340         Forgot to demangle the pointer.
9341
9342         * sysdeps/i386/sysdep.h: Define atom_text_section.
9343         * sysdeps/x86_64/sysdep.h: Likewise.
9344         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
9345         section with atom_text_section.
9346         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9347         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9348         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
9349         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9350         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
9351
9352         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
9353         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
9354         already be defined.  Change to take two parameters and don't assign
9355         result to variable.  Adjust all users.
9356         Define INTERNAL_GETTIME if not already defined.
9357         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
9358         call.
9359         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
9360         HAVE_CLOCK_GETTIME_VSYSCALL.
9361         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
9362
9363         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
9364         gettimeofday vsyscall, just use time.
9365
9366 2011-09-06  Andreas Schwab  <schwab@redhat.com>
9367
9368         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
9369         <errno.h>.
9370
9371 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9372
9373         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
9374         syscall on x86-64.
9375         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
9376         syscall.
9377         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
9378         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
9379         syscall if possible.
9380
9381 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9382
9383         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
9384         e_ident.  Don't pass to find_mapsXX.
9385         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
9386
9387 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9388
9389         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9390         strchr-sse2-no-bsf strrchr-sse2-no-bsf
9391         * sysdeps/x86_64/multiarch/strchr.S: Update.
9392         Check bit_slow_BSF bit.
9393         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9394         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
9395         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
9396
9397 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9398
9399         [BZ #13134]
9400         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
9401         before glibc 2.15.
9402         (tryshell): Define.
9403         (__spawni): Change last parameter to be flag.  Test
9404         SPAWN_XFLAGS_USE_PATH flag to use path or not.
9405         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
9406         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
9407         * posix/spawni.c: Likewise.
9408         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
9409         * posix/spawnp.c: Likewise.  Change normal version to use
9410         SPAWN_XFLAGS_USE_PATH.
9411         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
9412         SPAWN_XFLAGS_TRY_SHELL.
9413
9414         [BZ #13150]
9415         * posix/glob.h: Remove gcc 1.x support.
9416
9417         [BZ #13068]
9418         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
9419
9420 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9421
9422         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9423         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
9424         strrchr-sse2-bsf
9425         * sysdeps/i386/i686/multiarch/strchr.S: New file.
9426         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
9427         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
9428         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
9429         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
9430         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
9431
9432 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9433
9434         * sysdeps/x86_64/wcscmp.S: New file.
9435
9436         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
9437         wcscmp-c wcscmp-sse2
9438         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
9439         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
9440         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
9441         * wcsmbs/wcscmp.c: Allow renaming.
9442
9443 2011-09-05  David S. Miller  <davem@davemloft.net>
9444
9445         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
9446         stack slot, rather than the struct return pointer slot.
9447         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
9448         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
9449         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
9450         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
9451
9452 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9453
9454         * po/ja.po: Update from translation team.
9455
9456         [BZ #13144]
9457         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
9458         kernel in 64-bit binaries.
9459
9460 2011-09-01  David S. Miller  <davem@davemloft.net>
9461
9462         * elf/elf.h (HWCAP_SPARC_*): Move to..
9463         * sysdeps/sparc/sysdep.h: this new file and add new values.
9464         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
9465         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
9466         _DL_HWCAP_COUNT to 24.
9467         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9468         entries.
9469         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
9470         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
9471         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
9472         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
9473         instead of magic constants.
9474         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9475
9476 2011-08-31  David S. Miller  <davem@davemloft.net>
9477
9478         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
9479         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
9480         Reimplement to do errno handling inline.
9481         (SYSCALL_ERROR_HANDLER): New macro.
9482         (__SYSCALL_STRING): Do not do errno handling in asm.
9483         (__CLONE_SYSCALL_STRING): Delete.
9484         (__INTERNAL_SYSCALL_STRING): Delete.
9485         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9486         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
9487         (PSEUDO): Reimplement to do errno handling inline.
9488         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
9489         (SYSCALL_ERROR_HANDLER): New macro.
9490         (__SYSCALL_STRING): Do not do errno handling in asm.
9491         (__CLONE_SYSCALL_STRING): Delete.
9492         (__INTERNAL_SYSCALL_STRING): Delete.
9493         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
9494         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
9495         i386.
9496         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
9497         (inline_syscall*): Add 'err' argument.
9498         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
9499         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
9500         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
9501         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
9502
9503         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
9504         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9505
9506 2011-08-30  Andreas Schwab  <schwab@redhat.com>
9507
9508         * elf/rtld.c (dl_main): Relocate objects in dependency order.
9509
9510 2011-08-29  Jiri Olsa <jolsa@redhat.com>
9511
9512         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
9513         directive.
9514
9515 2011-08-24  David S. Miller  <davem@davemloft.net>
9516
9517         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
9518
9519 2011-08-24  Andreas Schwab  <schwab@redhat.com>
9520
9521         * elf/Makefile: Add rules to build and run unload8 test.
9522         * elf/unload8.c: New file.
9523         * elf/unload8mod1.c: New file.
9524         * elf/unload8mod1x.c: New file.
9525         * elf/unload8mod2.c: New file.
9526         * elf/unload8mod3.c: New file.
9527
9528         * elf/dl-close.c (_dl_close_worker): Reset private search list if
9529         it wasn't used.
9530
9531 2011-08-23  David S. Miller  <davem@davemloft.net>
9532
9533         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
9534         subtract stack bias.
9535         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
9536         %sp not %fp in calculations.
9537         (_JMPBUF_UNWINDS_ADJ): Likewise.
9538
9539         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
9540         (aio_suspend): Call it to force an exception region around the
9541         AIO_MISC_WAIT() invocation.
9542
9543 2011-08-23  Andreas Schwab  <schwab@redhat.com>
9544
9545         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
9546         backslash.
9547
9548 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
9549
9550         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
9551         protection macro.
9552         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
9553         and <dl-machine.h>.
9554         (Elf64_FuncDesc): Remove.
9555
9556 2011-08-22  David S. Miller  <davem@davemloft.net>
9557
9558         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
9559         sigaltstack check, add missing cfi directives.
9560         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
9561         missing cfi directives, and sigaltstack handling.
9562
9563 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9564
9565         [BZ #11724]
9566         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
9567         object is seen twice.
9568         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9569
9570         * elf/Makefile (distribute): Add tst-initorder2.c.
9571         (tests): Add tst-initorder2.
9572         (modules-names): Add tst-initorder2a tst-initorder2b
9573         tst-initorder2c tst-initorder2d.  Add rules to build them.
9574         ($(objpfx)tst-initorder2.out): New rule.
9575         * elf/tst-initorder2.c: New file.
9576         * elf/tst-initorder2.exp: New file.
9577
9578 2011-08-22  Andreas Schwab  <schwab@redhat.com>
9579
9580         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
9581
9582         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
9583         dependencies back to end of function.
9584
9585         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
9586         $(elfobjdir)/ld.so.
9587
9588 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
9589
9590         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
9591         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
9592         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9593         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9594         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
9595         of __vdso_gettimeofday.
9596         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
9597         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
9598         attribute_hidden.
9599         (_libc_vdso_platform_setup): Remove initialization of
9600         __vdso_gettimeofday and __vdso_time.
9601
9602 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9603
9604         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
9605         and fgetc_unlocked.
9606         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
9607         getc_unlocked.
9608
9609         * elf/dl-open.c (add_to_global): Report additions to the global scope
9610         for LD_DEBUG=scopes.
9611         (dl_open_worker): Also print scope of newly loaded dependencies.
9612         (_dl_show_scope): Indicate if there is no scope.
9613
9614         [BZ #13114]
9615         * stdio-common/Makefile (tests): Add bug24.
9616         * stdio-common/bug24.c: New file.
9617
9618 2011-08-19  Andreas Jaeger  <aj@suse.de>
9619
9620         [BZ #13114]
9621         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
9622         non-existant file when using close-on-exec mode.
9623
9624 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9625
9626         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
9627         the very first instruction.
9628
9629         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
9630         the CFI state in the end.
9631         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
9632         inclusion of dl-trampoline.h.
9633         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
9634
9635 2011-08-19  Andreas Schwab  <schwab@redhat.com>
9636
9637         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
9638         expectations for long double.
9639
9640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
9641         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
9642
9643 2011-08-14  David S. Miller  <davem@davemloft.net>
9644
9645         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
9646         artificual limit depends upon the system page size.
9647
9648 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9649
9650         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
9651         * resolv/Makefile: Define CFLAGS-libresolv.
9652
9653 2011-08-17  Andreas Schwab  <schwab@redhat.com>
9654
9655         * nss/makedb.c (compute_tables): Make variables used in nested
9656         function static.
9657
9658 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9659
9660         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
9661         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
9662         if buffer was too small.
9663
9664         * elf/pldd.c (main): Attach to all threads in the process.
9665         Rewrite /proc handling to use *at functions.
9666
9667 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
9668
9669         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
9670         specifies first scope to show.
9671         (dl_open_worker): Update callers.  Move printing scope of new
9672         object to before the relocation.
9673         * elf/rtld.c (dl_main): Update _dl_show_scope call.
9674         * sysdeps/generic/ldsodefs.h: Update declaration.
9675
9676         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
9677         string for the scope number.
9678
9679 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
9680
9681         * nscd/servicescache.c (cache_addserv): Make sure written is always
9682         initialized.
9683
9684 2011-08-14  Roland McGrath  <roland@hack.frob.com>
9685
9686         * sysdeps/i386/i486/bits/atomic.h
9687         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
9688         statement expression, so as to suppress "set but not used" warning.
9689         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
9690
9691         * string/strncat.c (STRNCAT): Use prototype definition.
9692
9693         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
9694         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
9695         -Iprograms here.
9696         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
9697         (localedef-modules): Add localedef.
9698         (locale-modules): Add locale.
9699
9700         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
9701         * elf/rtld.c (dl_main): Invert order of assignment in last change,
9702         to avoid a warning.
9703
9704 2011-08-14  David S. Miller  <davem@davemloft.net>
9705
9706         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
9707         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
9708
9709 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
9710
9711         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
9712         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
9713         * elf/rtld.c (dl_main): Set l_name of vDSO.
9714         Call _dl_show_scope when DL_DEBUG_SCOPES.
9715         (process_dl_debug): Recognize scopes flag and also set it for all.
9716         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
9717         Declare _dl_show_scope.
9718
9719         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
9720         (do_dlopen): Pass caller_dlopen to dl_open.
9721         (__libc_dlopen_mode): Initialize caller_dlopen.
9722
9723         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
9724         of libc.  Make tolower call locale-independent.  Optimize a bit by
9725         using isdigit instead of isalnum.
9726         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
9727
9728 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
9729
9730         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
9731         was a dependency or dynamically loaded.
9732
9733 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
9734
9735         * intl/l10nflist.c: Allow architecture-specific pop function.
9736         * sysdeps/x86_64/l10nflist.c: New file.
9737
9738         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
9739         classification.
9740
9741 2011-08-10  Andreas Schwab  <schwab@redhat.com>
9742
9743         * include/dirent.h: Add libc_hidden_proto for scandirat and
9744         scandirat64.  Don't declare __scandirat64.
9745         * dirent/scandirat.c: Add libc_hidden_def.
9746         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
9747         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
9748
9749 2011-08-10  David S. Miller  <davem@davemloft.net>
9750
9751         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
9752         enum.
9753         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9754         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9755         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9756
9757 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
9758
9759         * Versions.def [libc]: Add GLIBC_2.15.
9760         * dirent/Makefile (routines): Add scandirat and scandirat64.
9761         * dirent/Versions [libc]: Export scandirat and scandirat64 for
9762         GLIBC_2.15.
9763         * dirent/dirent.h: Declare scandirat and scandirat64.
9764         * dirent/scandirat.c: New file.
9765         * dirent/scandirat64.c: New file.
9766         * sysdeps/wordsize-64/scandirat.c: New file.
9767         * sysdeps/wordsize-64/scandirat64.c: New file.
9768         * dirent/opendir.c: Define opendirat.
9769         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
9770         using scandirat.
9771         * dirent/scandir64.c: Adjust for scandir.c change.
9772         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
9773         __scandirat64, and __scandir_cancel_handler.
9774         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
9775         additional parameter and use openat instead of open (outside of ld.so).
9776         Add new __opendir as wrapper around __opendirat.
9777         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
9778         here without requiring old scandirat implementation.
9779
9780 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
9781
9782         * dirent/scandir.c (cancel_handler): Renamed to
9783         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
9784         defined.  Adjust users.
9785         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
9786         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9787
9788 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
9789
9790         * string/test-string.h (IMPL): Use __STRING to expand name and then
9791         stringify it.
9792
9793         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
9794         of cleanups.
9795
9796 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9797
9798         * string/Makefile: Update.
9799         (strop-tests): Append strncat.
9800         * string/test-wcscmp.c: New file.
9801         New comprehensive test for wcscmp.
9802         * string/test-strcmp.c: Update.
9803         (WIDE): New define.
9804
9805 2011-07-22  Andreas Schwab  <schwab@redhat.com>
9806
9807         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
9808         line.
9809
9810 2011-07-26  Andreas Schwab  <schwab@redhat.com>
9811
9812         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
9813         encoding to ACE if AI_IDN.
9814
9815 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
9816
9817         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
9818         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
9819
9820 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9821
9822         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
9823         Fix overflow bug in strncat.
9824         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
9825
9826         * string/test-strncat.c: Update.
9827         Add new tests for checking overflow bugs.
9828
9829 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9830
9831         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9832         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
9833         * sysdeps/i386/i686/multiarch/strcat.S: New file.
9834         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
9835         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
9836         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
9837         * sysdeps/i386/i686/multiarch/strncat.S: New file.
9838         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
9839         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
9840
9841         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
9842         (USE_AS_STRCAT): Define.
9843         Add strcat and strncat support.
9844         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9845
9846 2011-07-25  Andreas Schwab  <schwab@redhat.com>
9847
9848         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
9849         __n bigger than INT_MAX+1.
9850         (__strncmp_g): Likewise.
9851
9852 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
9853
9854         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
9855         * libio/stido.h: Likewise.
9856
9857         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
9858         (AF_NFC): Define.
9859         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
9860         (AF_NFC): Define.
9861
9862         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
9863         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9864         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9865         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9866         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9867
9868         [BZ #13021]
9869         * scripts/test-installation.pl: Don't expect libnss_test1 to be
9870         installed.
9871
9872         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
9873         typo.
9874         (_dl_x86_64_save_sse): Likewise.
9875
9876 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
9877
9878         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
9879         OSXSAVE.
9880         (_dl_x86_64_save_sse): Likewise.
9881
9882         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
9883
9884         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
9885
9886 2011-07-21  Andreas Schwab  <schwab@redhat.com>
9887
9888         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
9889         change.
9890         (_dl_x86_64_save_sse): Use correct AVX check.
9891
9892 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9893
9894         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
9895         bug in strncpy/strncat.
9896         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
9897
9898 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
9899
9900         * string/tester.c (test_strcat): Add tests for different alignments
9901         of source and destination.
9902         (test_strncat): Likewise.
9903
9904 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9905
9906         [BZ #12852]
9907         * posix/glob.c (glob): Check passed in values before using them in
9908         expressions to avoid some overflows.
9909         (glob_in_dir): Likewise.
9910
9911         [BZ #13007]
9912         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
9913         check for AVX enablement so that we don't crash with old kernels and
9914         new hardware.
9915         * elf/tst-audit4.c: Add same checks here.
9916         * elf/tst-audit6.c: Likewise.
9917
9918         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
9919
9920 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
9921
9922         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
9923
9924 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9925
9926         * po/cs.po: Update from translation team.
9927         * po/bg.po: Likewise.
9928
9929 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
9930
9931         * misc/sys/cdefs.h: Add support for const attribute.
9932         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
9933         to gnu_dev_{major,minor,makedev} functions.
9934
9935 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
9936
9937         * intl/dcigettext.c (get_output_charset): Add missing bracket.
9938
9939 2011-07-20  Andreas Schwab  <schwab@redhat.com>
9940
9941         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
9942         strlen results.
9943
9944 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9945
9946         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
9947         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
9948         register in order to avoid conflicts with the soft frame pointer
9949         being held in r11 when necessary.
9950         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
9951         (INTERNAL_VSYSCALL_NCS): Likewise.
9952
9953 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
9954
9955         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
9956         * elf/dl-fini.c (_dl_fini): Adjust caller.
9957         * elf/dl-close.c (_dl_close_worker): Likewise.
9958         * sysdeps/generic/ldsodefs.h: Adjust declaration.
9959
9960 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
9961
9962         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
9963         "aux_cache->nlibs < 0".
9964
9965         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
9966         in the reload-count case.
9967
9968 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9969
9970         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9971         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
9972         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
9973         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
9974         * sysdeps/x86_64/multiarch/strcat.S: New file.
9975         * sysdeps/x86_64/multiarch/strncat.S: New file.
9976         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
9977         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
9978         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
9979         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
9980         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
9981         (USE_AS_STRCAT): Define.
9982         Add strcat and strncat support.
9983         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9984         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
9985         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
9986         * string/strncat.c: Update.
9987         (USE_AS_STRNCAT): Define.
9988         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9989         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
9990         and i7.
9991         * sysdeps/x86_64/multiarch/init-arch.h
9992         (bit_Prefer_PMINUB_for_stringop): New.
9993         (index_Prefer_PMINUB_for_stringop): Likewise.
9994         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
9995         bit_Prefer_PMINUB_for_stringop.
9996
9997 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
9998
9999         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
10000         buffer64.
10001         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
10002         of casting of buffer.
10003         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
10004         buffer32 and buffer64.
10005         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
10006         writes instead of casting of buffer.
10007         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
10008         buffer32.
10009         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
10010         casting of buffer.
10011
10012 2011-07-19  Andreas Schwab  <schwab@redhat.com>
10013
10014         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
10015
10016 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
10017
10018         * nscd/nscd.c (termination_handler): Don't do anything for a database
10019         if it has not yet been initialized.
10020
10021 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
10022
10023         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
10024
10025 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
10026
10027         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
10028
10029 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
10030
10031         * po/nl.po: Update from translation team.
10032         * po/sv.po: Likewise.
10033
10034 2011-07-16  Roland McGrath  <roland@hack.frob.com>
10035
10036         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
10037         now disallowed by GCC.
10038
10039         * configure.in (use-default-link): Default to yes if a test -shared
10040         link meets our qualifications.
10041         * configure: Regenerated.
10042
10043         * config.make.in (output-format): New variable.
10044         * configure.in: Check for ld --print-output-format support.
10045         * configure: Regenerated.
10046         * Makerules ($(common-objpfx)format.lds)
10047         [$(output-format) != unknown]: Just use $(output-format),
10048         instead of the linker-script munging.
10049
10050 2011-07-14  Roland McGrath  <roland@hack.frob.com>
10051
10052         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
10053         of $(common-objpfx)shlib.lds.
10054         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
10055
10056         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
10057         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
10058
10059         * configure.in (-z relro check): Adjust test code to add a large
10060         writable data section after it.
10061         * configure: Regenerated.
10062
10063 2011-07-11  Roland McGrath  <roland@hack.frob.com>
10064
10065         * configure.in (-z relro check): Fix test code to make the variable
10066         truly const.
10067         * configure: Regenerated.
10068
10069 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
10070
10071         * nscd/nscd.h (struct traced_file): Define.
10072         (struct database_dyn): Remove inotify_descr, reset_res, and filename
10073         elements.  Add traced_files.
10074         (inotify_fd): Declare.
10075         (register_traced_file): Declare.
10076         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
10077         (inotify_fd): Export.
10078         (resolv_conf_descr): Remove.
10079         (nscd_init): Move inotify descriptor creation to main.
10080         Don't register files for notification here.
10081         (register_traced_file): New function.
10082         (invalidate_cache): Don't use reset_res to determine whether to call
10083         res_init, go through the list of registered files.
10084         (main_loop_poll): The inotify descriptors are now stored in the
10085         structures for the traced files.
10086         (main_loop_epoll): Likewise
10087         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
10088         to __nss_disable_nscd.
10089         * nscd/cache.c (prune_cache): There is no single inotify descriptor
10090         for a database anymore.  Check the records for all the registered
10091         files instead.
10092         * nss/Makefile (libnss_files-routines): Add files-init.
10093         (libnss_db-routines): Add db-init.
10094         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
10095         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
10096         * nss/nss_db/db-init.c: New file.
10097         * nss/nss_files/files-init.c: New file.
10098         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
10099         __nss_lookup_function.
10100         (__nss_lookup_function): Call nss_load_library.
10101         (nss_load_all_libraries): New function.
10102         (__nss_disable_nscd): Take parameter with callback function for files
10103         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
10104         used for the cached services.
10105         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
10106         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
10107         options for features to all the files in nscd.
10108
10109         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
10110
10111 2011-07-10  Roland McGrath  <roland@hack.frob.com>
10112
10113         * csu/elf-init.c (__libc_csu_init): Comment typo.
10114
10115 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
10116
10117         * po/pl.po: Update from translation team.
10118         * po/ja.po: Likewise.
10119         * po/ru.po: Likewise.
10120         * po/ko.po: Likewise.
10121         * po/fr.po: Likewise.
10122
10123 2011-07-09  Roland McGrath  <roland@hack.frob.com>
10124
10125         * configure.in (.ctors/.dtors header and trailer check):
10126         Use an empirical test on a built program.
10127         * configure: Regenerated.
10128
10129         * configure.in (-z relro check): Use an empirical test on a built DSO.
10130         Detect, but do not require, on ia64.
10131         * configure: Regenerated.
10132
10133         * configure.in (READELF): Find it with AC_CHECK_TOOL.
10134         Update tests that use readelf to use $READELF instead.
10135         * configure: Regenerated.
10136
10137 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
10138
10139         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
10140         if the result is not used.
10141
10142 2011-07-05  Andreas Jaeger  <aj@suse.de>
10143
10144         [BZ#9696]
10145         * stdlib/tst-strtod.c: Add testcase.
10146
10147 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10148
10149         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
10150         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
10151         The latter has a higher limit.  Take additional parameter to pass to
10152         the new function.
10153         (__pathconf): Pass file to __statfs_link_max.
10154         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
10155         __statfs_link_max.
10156         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
10157         __statfs_link_max.
10158
10159         [BZ #12868]
10160         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
10161         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10162         Handle Lustre.
10163         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
10164         (__statfs_filesize_max): Likewise.
10165         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
10166
10167 2011-07-05  Andreas Jaeger  <aj@suse.de>
10168
10169         * resolv/res_comp.c (dn_skipname): Remove unused variable.
10170
10171 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
10172
10173         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
10174         `status' variable.
10175         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
10176         Likewise.
10177
10178 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
10179
10180         * Makefile (strop-tests): Add strncat.
10181         * string/test-strncat.c: New file.
10182
10183 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
10184
10185         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
10186
10187 2011-06-21  Andreas Jaeger  <aj@suse.de>
10188
10189         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
10190         Copy rule from iconvdata/Makefile.
10191
10192 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
10193
10194         [BZ #12922]
10195         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
10196         but no long options are defined, just return 'W'.
10197
10198 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
10199
10200         [BZ #9696]
10201         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
10202
10203 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
10204
10205         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
10206         netgroups to read.
10207         (innetgr): Likewise.
10208
10209 2011-07-05  Roland McGrath  <roland@hack.frob.com>
10210
10211         * config.make.in (install_root): Default to $(DESTDIR).
10212
10213 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
10214
10215         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
10216
10217 2011-07-02  Roland McGrath  <roland@hack.frob.com>
10218
10219         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
10220
10221         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
10222         containing directory rather than embedding absolute directory names.
10223
10224         * scripts/check-local-headers.sh: Rewritten using awk.
10225         Match by word, not by line.  Print error messages for matches.
10226         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
10227
10228         * Makerules [shlib-lds-flags empty]:
10229         ($(common-objpfx)libc_pic.opts): New target.
10230         ($(common-objpfx)libc_pic.os.clean): New target.
10231         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
10232
10233         * config.make.in (OBJCOPY): New variable.
10234         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
10235         * configure: Regenerated.
10236
10237         * config.make.in (use-default-link): New variable.
10238         * configure.in (use_default_link): Grok --with-default-link to set it.
10239         * configure: Regenerated.
10240         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
10241         (shlib-lds, shlib-lds-flags): Define to empty.
10242
10243         * Makerules (shlib-lds): New variable.
10244         (shlib-lds-flags): New variable.
10245         (build-shlib, build-moduile, build-module-asneeded): Use it.
10246         ($(common-objpfx)libc.so): Use $(shlib-lds).
10247         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
10248         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
10249
10250         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
10251         DT_FLAGS/DT_FLAGS_1 with zero flags.
10252
10253         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
10254         linker script munging.
10255
10256 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
10257
10258         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
10259         as 128-bit value.
10260         * crypt/sha512.c (sha512_process_block): Perform total addition using
10261         128-bit if possible.
10262         (__sha512_finish_ctx): Likewise.
10263         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
10264         as 64-bit value.
10265         * crypt/sha256.c (SWAP64): Define.
10266         (sha256_process_block): Perform total addition using 64-bit if
10267         possible.
10268         (__sha256_finish_ctx): Likewise.
10269
10270 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
10271
10272         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
10273         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10274         * nscd/hstcache.c (cache_addhst): Likewise.
10275         * nscd/grpcache.c (cache_addgr): Likewise.
10276         * nscd/aicache.c (addhstaiX): Likewise
10277         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
10278
10279 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
10280
10281         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
10282         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10283         * nscd/hstcache.c (cache_addhst): Likewise.
10284         * nscd/grpcache.c (cache_addgr): Likewise.
10285         * nscd/aicache.c (addhstaiX): Likewise
10286
10287 2011-07-01  Andreas Schwab  <schwab@redhat.com>
10288
10289         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
10290         domain only when needed.
10291
10292 2011-06-30  Andreas Schwab  <schwab@redhat.com>
10293
10294         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
10295         is always restored.
10296
10297 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
10298
10299         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
10300         are re-adding the entry.
10301         * nscd/servicescache.c (cache_addserv): Likewise.
10302
10303 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
10304
10305         * sysdeps/generic/dl-irel.h: fix protection against multiple
10306         inclusions.
10307         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
10308
10309 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
10310
10311         [BZ #12935]
10312         * malloc/memusage.sh: Fix quoting in message.
10313         * debug/xtrace.sh: Likewise.
10314
10315         * configure.in: Remove support for --experimental-malloc option, make
10316         it the default.
10317         * config.make.in: Likewise.
10318         * malloc/Makefile: Likewise.
10319
10320 2011-06-27  Andreas Schwab  <schwab@redhat.com>
10321
10322         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
10323         two-byte characters.
10324
10325 2011-06-27  Roland McGrath  <roland@hack.frob.com>
10326
10327         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
10328         AC_CACHE_CHECK invocation.
10329         * configure: Regenerated.
10330
10331         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
10332
10333 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
10334
10335         [BZ #12350]
10336         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
10337         bit from old_res_options.
10338
10339         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
10340
10341         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
10342         value type for setfct.
10343
10344 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10345
10346         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10347         __gettimeofday instead of gettimeofday.
10348
10349 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
10350
10351         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
10352
10353 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10354
10355         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
10356
10357         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
10358         info.
10359
10360 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10361
10362         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10363         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10364         strcpy-sse2-unaligned strncpy-sse2-unaligned
10365         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
10366         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
10367         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
10368         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
10369         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
10370         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
10371         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
10372         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
10373         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
10374         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
10375         (STRCPY): Support SSE2 and SSSE3 versions.
10376
10377 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
10378
10379         [BZ #12874]
10380         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
10381         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
10382         kernels which artificially limit size of requests.
10383
10384 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10385
10386         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10387         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10388         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
10389         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
10390         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
10391         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
10392         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
10393         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
10394         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
10395         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
10396         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
10397         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
10398         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
10399         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
10400         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
10401         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10402         Enable unaligned load optimization for Intel Core i3, i5 and i7
10403         processors.
10404         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
10405         Define.
10406         (index_Fast_Unaligned_Load): Define.
10407         (HAS_FAST_UNALIGNED_LOAD): Define.
10408
10409 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
10410
10411         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
10412
10413 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10414
10415         [BZ #12907]
10416         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
10417         until it is clear that the information is realy needed.
10418         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
10419
10420 2011-06-22  Andreas Schwab  <schwab@redhat.com>
10421
10422         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
10423
10424 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10425
10426         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10427         /sys/devices/system/cpu/online if it is usable.
10428
10429         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
10430         reading the information from the /proc filesystem to once a second.
10431
10432 2011-06-21  Andreas Jaeger  <aj@suse.de>
10433
10434         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
10435         NULL after inclusion of kernel headers.
10436
10437 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
10438
10439         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
10440         calls to internal_setent.
10441
10442         [BZ #12885]
10443         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
10444         addresses using gethostbyname4_r ignore IPv4 addresses.
10445
10446         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
10447         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
10448
10449         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
10450
10451 2011-06-20  David S. Miller  <davem@davemloft.net>
10452
10453         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
10454         inclusions.
10455         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
10456
10457         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
10458         (elf_irel): Use it.
10459         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
10460         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
10461         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
10462         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
10463         * sysdeps/x86_64/dl-irel.h: Likewise.
10464
10465         * elf/dl-runtime.c: Use elf_ifunc_invoke.
10466         * elf/dl-sym.c: Likewise.
10467
10468 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10469
10470         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
10471         need to dereference resplen2.
10472
10473 2011-06-14  Andreas Schwab  <schwab@redhat.com>
10474
10475         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
10476
10477 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10478
10479         * Makeconfig: Define vardbdir and inst_vardbdir.
10480         * nss/Makefile: Add rules to install db-Makefile.
10481
10482         * nss/nss_db/db-XXX.c: Cleanup.
10483
10484         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
10485         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
10486         GLIBC_PRIVATE.
10487         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
10488         * nss/makedb.c: Implement -g option to specify that value strings
10489         are generated and should not be added to table iterated over for
10490         get*ent calls.
10491         * nss/nss_db/db-initgroups.c: New file.
10492
10493         * nss/getent.c: Add support for initgroups lookups through getgrouplist
10494         interface.
10495
10496         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
10497         (internal_getgrouplist): Adjust to name change.
10498         Update use_initgroups_entry if this is not the first call.
10499         * nss/databases.def: Add initgroups entry.
10500
10501         * nss/makedb.c (compute_tables): Check result of multiple hash table
10502         sizes to minimize maximum chain length.
10503
10504 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
10505
10506         * Versions.def: Add entry for libnss_db.
10507         * shlib-versions: Likewise.
10508         * nss/Makefile: Add rules to build libnss_db.
10509         * nss/Versions: Add libnss_db information.  Organize libnss_files
10510         entries better.
10511         * nss/db-Makefile: Add gshadow support.  Change rules for the new
10512         makedb progra.  Some minor improvements to generate smaller files.
10513         * nss/nss_db/nss_db.h: Move NSS database header data structures to
10514         here from...
10515         * nss/makedb.c: ...here.
10516         Improve database format to be smaller and require less memory at
10517         runtime.
10518         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
10519         db anymore.
10520         * nss/nss_db/db-netgrp.c: Likewise.
10521         * nss/nss_db/db-open.c: Likewise.
10522         * nss/nss_files/flies-XXX.x: Adjust comments.
10523         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
10524         * nss/nss_files/files-grp.c: Likewise.
10525         * nss/nss_files/files-hosts.c: Likewise.
10526         * nss/nss_files/files-network.c: Likewise.
10527         * nss/nss_files/files-proto.c: Likewise.
10528         * nss/nss_files/files-pwd.c: Likewise.
10529         * nss/nss_files/files-rpc.c: Likewise.
10530         * nss/nss_files/files-service.c: Likewise.
10531         * nss/nss_files/files-sgrp.c: Likewise.
10532         * nss/nss_files/files-spwd.c: Likewise.
10533         * nss/nss_db/db-alias.c: Removed.
10534         * nss/nss_db/dummy-db.h: Removed.
10535
10536 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
10537
10538         * nss/makedb.c: Rewritten to not use database library.
10539         * nss/Makefile: Update to build new makedb program.
10540
10541 2011-06-14  Andreas Jaeger  <aj@suse.de>
10542
10543         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
10544         memset declaration.
10545
10546 2011-06-10  Andreas Schwab  <schwab@redhat.com>
10547
10548         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
10549         tmpbuf.
10550
10551 2011-06-10  Roland McGrath  <roland@hack.frob.com>
10552
10553         * Makerules (shlib.lds): Fail if the linker script comes out empty.
10554         * elf/Makefile ($(objpfx)ld.so): Likewise.
10555
10556         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
10557         Don't list ld.so twice in dependencies.
10558
10559         * posix/bug-regex31.c: Include <stdlib.h>.
10560
10561         * nscd/hstcache.c (cache_addhst): Remove unused variable.
10562
10563         * nis/nss_compat/compat-spwd.c
10564         (getspent_next_nss_netgr): Remove unused variable.
10565         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
10566
10567         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
10568         nonmembers" output to use the right array.
10569
10570         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
10571
10572         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
10573
10574         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
10575         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
10576         * catgets/gencat.c (read_input_file): Likewise.
10577         * locale/programs/locarchive.c (enlarge_archive): Likewise.
10578
10579         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
10580         variable definition inside #if's controlling its use.
10581
10582         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
10583
10584         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
10585
10586         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
10587
10588         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
10589         unreachable code.
10590
10591         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
10592
10593         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
10594         * configure: Regenerated.
10595
10596         * Makerules: Revert last change.
10597         * elf/Makefile: Likewise.
10598
10599 2011-06-09  Roland McGrath  <roland@hack.frob.com>
10600
10601         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
10602         * elf/Makefile ($(objpfx)librtld.os): Likewise.
10603         (reloc-link): Likewise.
10604
10605 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
10606
10607         * elf/Makefile: Add rules to build pldd.
10608         * elf/pldd.c: New file.
10609         * elf/pldd-xx.c: New file.
10610
10611 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
10612
10613         * version.h: Update for 2.15 development version.
10614
10615 2011-06-07  David S. Miller  <davem@davemloft.net>
10616
10617         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
10618         ifuncs.
10619         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
10620         elf_machine_lazy_rel): Likewise.
10621         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
10622         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
10623         elf_machine_lazy_rel): Likewise.
10624         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
10625         dl_hwcap via passed in argument.
10626         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
10627         Likewise.
10628
10629 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10630
10631         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
10632
10633 2011-06-06  Roland McGrath  <roland@hack.frob.com>
10634
10635         [BZ #12849]
10636         * manual/fdl-1.1.texi: New file, verbatim from:
10637         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
10638         * manual/lgpl-2.1.texi: New file, verbatim from:
10639         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
10640         * manual/Makefile (licenses): New variable, list those new file names.
10641         (texis): Use it.
10642         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
10643
10644         * manual/fdl.texi: File removed.
10645         * manual/lesser.texi: File removed.
10646         * manual/libc.texinfo (Copying, Documentation License):
10647         Use new @include file names, put @appendix directive before @include.
10648
10649 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10650
10651         [BZ #12841]
10652         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
10653         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
10654         (mq_open): Add __NTH.
10655
10656 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10657
10658         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10659         Assume Intel Core i3/i5/i7 processor if AVX is available.
10660
10661 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10662
10663         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10664         typo.
10665
10666 2011-05-31  Andreas Schwab  <schwab@redhat.com>
10667
10668         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
10669         memory.  Use alloca_account.  Fix memory leak when retrying.
10670
10671 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10672
10673         * version.h (RELEASE): Bump for 2.14 release.
10674         * include/features.h (__GLIBC_MINOR__): Bump to 14.
10675
10676         * config.make.in (RANLIB): Remove entry.
10677
10678 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
10679
10680         * po/Makefile (po-sed-cmd): Add ksh to extensions.
10681         (libc.pot): Work around missing support for .ksh extension in xgettext.
10682
10683         [BZ #12684]
10684         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
10685         if both request failed.
10686         (send_dg): In case of server errors clear resplen or *resplen2.
10687
10688         [BZ #12454]
10689         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
10690         when there are multiple maps.
10691         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
10692         (_dl_fini): Remove test here.
10693
10694         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
10695
10696 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
10697
10698         [BZ #12350]
10699         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
10700         bit from old_res_options.
10701         (gaih_inet): Likewise.
10702
10703         [BZ #11099]
10704         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
10705         as signed.
10706
10707         * resolv/res_init.c (res_setoptions): Make the code more compact.
10708
10709         [BZ #11558]
10710         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
10711         set RES_USEVC.
10712
10713         [BZ #11634]
10714         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
10715
10716         * malloc/malloc.h: Mark malloc hook variables as deprecated.
10717
10718         [BZ #11781]
10719         * malloc/malloc.h: Declare malloc hook variables as volatile.
10720
10721         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
10722         in last patch.
10723
10724         [BZ #11799]
10725         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
10726         raise in the comment.
10727         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10728         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10729         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10730
10731 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
10732
10733         [BZ #12811]
10734         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
10735         grow the buffers more if it already has to be sufficient.
10736         (build_wcs_upper_buffer): Likewise.
10737         * posix/regexec.c (check_matching): Likewise.
10738         (clean_state_log_if_needed): Likewise.
10739         (extend_buffers): Don't enlarge buffers beyond size of the input
10740         buffer.
10741         Patches mostly by Emil Wojak <emil@wojak.eu>.
10742         * posix/bug-regex32.c: New file.
10743         * posix/Makefile (tests): Add bug-regex32.
10744
10745         * locale/findlocale.c (_nl_find_locale): Return right away if
10746         _nl_explode_name failed.
10747         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10748
10749         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
10750
10751         * debug/xtrace.sh: Unify messages.
10752         * malloc/memusage.sh: Likewise.
10753
10754         [BZ #12813]
10755         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
10756         time symbol from vDSO.  Substitute with vsyscall if not available.
10757         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
10758         __vdso_time.
10759
10760         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
10761         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
10762         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
10763         Add sendmmsg and internal_sendmmsg.
10764         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
10765         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
10766         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
10767
10768         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
10769         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
10770         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
10771
10772 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
10773
10774         [BZ #12813]
10775         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
10776         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
10777         available.
10778         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
10779         __vdso_getcpu.
10780
10781         [BZ #12814]
10782         * iconvdata/Makefile (tests): Add bug-iconv9.
10783         * iconvdata/bug-iconv9.c: New file.
10784
10785 2011-05-27  Andreas Schwab  <schwab@redhat.com>
10786
10787         [BZ #12814]
10788         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
10789
10790 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
10791
10792         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10793         (struct user_regs_struct): Change intcs field back to cs.
10794
10795 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
10796
10797         * po/ja.po: Update from translation team.
10798
10799 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
10800
10801         [BZ #12795]
10802         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
10803         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
10804
10805 2011-05-20  Andreas Schwab  <schwab@redhat.com>
10806
10807         * stdlib/longlong.h: Update from GCC.
10808
10809 2011-05-23  Andreas Schwab  <schwab@redhat.com>
10810
10811         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
10812         parameter name.
10813         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
10814         Add parameter name.
10815         (__sysconf): Pass it down.
10816
10817 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
10818
10819         [BZ #12671]
10820         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
10821         some situations.
10822         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10823         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
10824         add in in __libc_use_alloca calls.  Adjust callers.
10825         (glob): Use malloc in some situations.
10826
10827         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
10828         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
10829         pltexit.
10830
10831 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
10832
10833         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
10834         and CLOCK_BOOTTIME_ALARM.
10835
10836         [BZ #12782]
10837         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
10838         is returned.
10839
10840         * string/_strerror.c (__strerror_r): Print negative errors as signed
10841         numbers.
10842
10843         [BZ #12777]
10844         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
10845         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
10846         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
10847
10848         * configure.in: Fix typo in redirection and correct removal of test
10849         files in two cases.
10850
10851         [BZ #12788]
10852         * locale/setlocale.c (new_composite_name): Fix test to check for
10853         identical name of all categories.
10854
10855         [BZ #12792]
10856         * libio/filedoalloc.c (local_isatty): New function.
10857         (_IO_file_doallocate): Use local_isatty.
10858         * stdio-common/perror.c (perror): In case a new stream is used
10859         forward the stream error.
10860         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
10861         error flag.
10862
10863 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
10864
10865         [BZ #11869]
10866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
10867         alloca.
10868         * include/alloca.h (extend_alloca_account): Define.
10869
10870         [BZ #11857]
10871         * posix/regex.h: Fix comments with documentation of user-accessible
10872         fields after compilation and describe correct free'ing of pattern
10873         after re_compile_pattern.
10874         Patch by Reuben Thomas <rrt@sc3d.org>.
10875
10876 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
10877
10878         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
10879         and -mno-altivec to prevent the compiler from using Altivec and/or
10880         VSX instructions when the corresponding registers are not available.
10881
10882 2011-05-19  Andreas Schwab  <schwab@redhat.com>
10883
10884         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
10885
10886 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
10887
10888         * libio/freopen.c (freopen): Use __dup2, not dup2.
10889         * libio/freopen64.c (freopen64): Likewise.
10890
10891 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
10892
10893         [BZ #12775]
10894         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
10895         * math/Makefile (tests): Add test-powl.
10896         (CFLAGS-test-powl.c): Define.
10897         * math/test-powl.c: New file.
10898
10899 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10900
10901         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
10902
10903 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
10904
10905         [BZ #11837]
10906         * iconvdata/gb18030.c: Update to GB18020-2005.
10907
10908 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
10909
10910         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
10911         RE_SYNTAX_POSIX_AWK): Update to match recent development.
10912         Patch by Aharon Robbins <arnold@skeeve.com>.
10913
10914         [BZ #11892]
10915         * stdlib/putenv.c (putenv): Don't always create copy of the variable
10916         on the stack.
10917
10918         [BZ #11895]
10919         * misc/pselect.c (__pselect): Handle timeout value errors hidden
10920         through underflows.
10921
10922         [BZ #12766]
10923         * misc/error.c (error_at_line): Ensure file_name and old_file_name
10924         point to strings before performing equality test for error_one_per_line
10925         mode.
10926
10927         [BZ #11697]
10928         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
10929
10930         [BZ #11820]
10931         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10932         (struct user_fpregs_struct): Avoid __uint*_t types.
10933
10934         [BZ #6420]
10935         * malloc/mtrace.c (tr_where): Add additional parameter to point to
10936         symbol info.  Use it instead of calling _dl_addr locally.
10937         (lock_and_info): New function.
10938         (tr_freehook): Call lock_and_info and pass symbol info as additional
10939         parameter to tr_where.
10940         (tr_mallochook): Likewise.
10941         (tr_reallochook): Likewise.
10942         (tr_memalignhook): Likewise.
10943
10944         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
10945         used and couldn't be at all thread-safe.
10946
10947 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
10948
10949         * libio/freopen.c (freopen): Don't close old file descriptor
10950         before the new one is opened.  Instead dup the new file descriptor
10951         to the old one after the new stream is created.
10952         * libio/freopen64.c (freopen64): Likewise.
10953         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
10954         * libio/fileops.c (_IO_new_file_close_it): Handle new
10955         _IO_FLAGS2_NOCLOSE flag.
10956         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
10957         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
10958         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
10959         _IO_FLAGS2_NOCLOSE flag.
10960         * include/unistd.h: Add hidden_proto for dup3.
10961         Define __have_dup3.
10962         * io/dup3.c: Define hidden symbol.
10963         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
10964
10965         [BZ #7101]
10966         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
10967         when an incomplete long option is used.
10968         * posix/tst-getopt_long1.c: New file.
10969         * posix/Makefile (tests): Add tst-getopt_long1.
10970
10971         [BZ #10138]
10972         * scripts/config.guess: Update from autoconf-2.68.
10973         * scripts/config.sub: Likewise.
10974
10975         [BZ #10157]
10976         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
10977         tests into ...
10978         (has_cpuclock): ...this.  New function.
10979         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
10980         macro here based on has_cpuclock code.
10981
10982         [BZ #10149]
10983         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10984         First byte (not low byte) is now always NUL.
10985         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
10986
10987         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10988         Use non-cancelable interfaces.
10989
10990         [BZ #9809]
10991         * locale/iso-639.def: Add entry for Sorani.
10992
10993         [BZ #11901]
10994         * include/stdlib.h: Move include protection to the right place.
10995         Define abort_msg_s.  Declare __abort_msg with it.
10996         * stdlib/abort.c (__abort_msg): Adjust type.
10997         * assert/assert.c (__assert_fail_base): New function.  Majority
10998         of code from __assert_fail.  Allocate memory for __abort_msg with
10999         mmap.
11000         (__assert_fail): Now call __assert_fail_base.
11001         * assert/assert-perr.c: Remove bulk of implementation.  Use
11002         __assert_fail_base.
11003         * include/assert.hL Declare __assert_fail_base.
11004         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
11005         mmap.
11006         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
11007
11008 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
11009
11010         [BZ #11952]
11011         [BZ #12453]
11012         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
11013         until all modules are registered in the DTV.
11014         * elf/Makefile: Add rules to build and run tst-tls19.
11015         * elf/tst-tls19.c: New file.
11016         * elf/tst-tls19mod1.c: New file.
11017         * elf/tst-tls19mod2.c: New file.
11018         * elf/tst-tls19mod3.c: New file.
11019         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
11020
11021         [BZ #12083]
11022         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
11023         correctly.
11024
11025         [BZ #12601]
11026         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
11027         two-byte sequence errors.
11028         * iconvdata/Makefile (tests): Add bug-iconv8.
11029         * iconvdata/bug-iconv8.c: New file.
11030
11031         [BZ #12626]
11032         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
11033         buf2 definition.
11034
11035         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
11036
11037         [BZ #12432]
11038         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
11039         (dummy_getcfa): New function.
11040         (init): Get _Unwind_GetCFA address, use dummy if not found.
11041         (backtrace_helper): In recursion check, also check whether CFA changes.
11042         (__backtrace): Completely initialize arg.
11043
11044         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
11045         storing incomplete byte sequence in state object.  Avoid testing for
11046         guaranteed too small input if we know there is enough data available.
11047
11048 2011-05-11  Andreas Schwab  <schwab@redhat.com>
11049
11050         * Makeconfig (+link-pie): Indent.
11051         * Rules (binaries-pie): Define if $(have-fpie) and
11052         $(build-shared).
11053         (binaries-shared): Also filter out $(binaries-pie).
11054         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
11055         * nscd/Makefile (others-pie): Add nscd.
11056         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
11057         ($(objpfx)nscd): Remove command override.
11058         * login/Makefile (others-pie): Add pt_chown.
11059         ($(objpfx)pt_chown): Remove command override.
11060         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
11061         remove command overrides.
11062
11063 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
11064
11065         * libio/tst_putwc.c: Fix error messages.
11066
11067         [BZ #12724]
11068         * libio/fileops.c (_IO_new_file_close_it): Always flush when
11069         currently writing and seek to current position when not.
11070         * libio/Makefile (tests): Add bug-fclose1.
11071         * libio/bug-fclose1.c: New file.
11072
11073 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
11074
11075         [BZ #12511]
11076         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
11077         don't set DF_1_NODELETE here.
11078         (do_lookup_x): When entering new entry test for copy relocation
11079         and if necessary set DF_1_NODELETE flag.
11080         * elf/tst-unique4.cc: New file.
11081         * elf/tst-unique4.h: New file.
11082         * elf/tst-unique4lib.cc: New file.
11083         * elf/Makefile: Add rules to build and run tst-unique4.
11084         Patch by Piotr Bury <pbury@goahead.com>.
11085
11086 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11087
11088         [BZ #12052]
11089         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
11090
11091         [BZ #12625]
11092         * misc/mntent_r.c (addmntent): Flush the stream after the output
11093
11094         [BZ #12393]
11095         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
11096         (is_trusted_path_normalize): Skip initial colon.  Append slash
11097         to empty buffer.  Duplicate is_trusted_path code but allow
11098         constructed patch to be prefix.
11099         (is_dst): Allow $ORIGIN followed by /.
11100         (_dl_dst_substitute): Correct clearing of check_for_trusted.
11101         Correct testing of result of is_trusted_path_normalize
11102         (decompose_rpath): Fix warning.
11103
11104 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
11105
11106         [BZ #11257]
11107         * grp/initgroups.c (internal_getgrouplist): When we found the service
11108         list through the initgroups entry in nsswitch.conf do not always
11109         continue on a successful lookup.  Don't always use the
11110         __nss_group_database value if it is set.
11111         * nss/nsswitch.conf (initgroups): Change action for successful db
11112         lookup to continue for compatibility.
11113
11114 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
11115
11116         [BZ #11532]
11117         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
11118         and CP774 modules.
11119         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
11120         and CP774 modules.
11121         * iconvdata/tst-tables.sh: Likewise.
11122         * iconvdata/cp770.c: New file.
11123         * iconvdata/cp771.c: New file.
11124         * iconvdata/cp772.c: New file.
11125         * iconvdata/cp773.c: New file.
11126         * iconvdata/cp774.c: New file.
11127         * iconvdata/testdata/CP770: New file.
11128         * iconvdata/testdata/CP770..UTF8: New file.
11129         * iconvdata/testdata/CP771: New file.
11130         * iconvdata/testdata/CP771..UTF8: New file.
11131         * iconvdata/testdata/CP772: New file.
11132         * iconvdata/testdata/CP772..UTF8: New file.
11133         * iconvdata/testdata/CP773: New file.
11134         * iconvdata/testdata/CP773..UTF8: New file.
11135         * iconvdata/testdata/CP774: New file.
11136         * iconvdata/testdata/CP774..UTF8: New file.
11137
11138         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
11139         END CHARMAP line.
11140         * iconvdata/gen-8bit-gap.sh: Likewise.
11141         * iconvdata/gen-8bit.sh: Likewise.
11142
11143         * locale/iso-639.def: Add ary entry.
11144
11145         [BZ #11258]
11146         * locale/C-translit.h.in: Add U20A1 transliteration.
11147
11148         [BZ #12178]
11149         * locale/iso-639.def: Add wae entry.
11150         Patch by Kevin Bortis <bortis@translate-wae.ch>.
11151
11152         [BZ #12545]
11153         * locale/programs/localedef.c (construct_output_path): Use ssize_t
11154         for n.
11155
11156         [BZ #12711]
11157         * locale/C-translit.h.in: Add entry for U20B9.
11158         Patch by pravin.d.s@gmail.com.
11159
11160 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
11161
11162         [BZ #12713]
11163         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
11164         ENAMETOOLONG use generic getcwd.
11165         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
11166         in rtld.  Use *stat64.
11167         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
11168         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
11169         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
11170         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
11171         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
11172         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
11173         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
11174         __fstatat64 macros.
11175         * include/dirent.h: Add libc_hidden_proto for rewinddir.
11176         * dirent/rewinddir.c: Add libc_hidden_def.
11177         * sysdeps/mach/hurd/rewinddir.c: Likewise.
11178         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
11179
11180         * include/dirent.h (__alloc_dir): Add flags parameter.
11181         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
11182         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
11183         __alloc_dir.
11184         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
11185         from fdopendir if O_CLOEXEC is already set.
11186
11187 2011-03-15  Alan Modra  <amodra@gmail.com>
11188
11189         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
11190         l_tls_firstbyte_offset non-zero.  Save padding offset in
11191         l_tls_firstbyte_offset for later use.
11192         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
11193         freeing static tls block.
11194
11195 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
11196
11197         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
11198         where #ifdef was intended.  The intent is to prevent ARG_MAX from
11199         being defined by the kernel headers.
11200
11201 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
11202
11203         [BZ #12734]
11204         * resolv/resolv.h: Define RES_NOTLDQUERY.
11205         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
11206         no-tld-query and set RES_NOTLDQUERY.
11207         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
11208         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
11209         modern BIND to search name as TLD unless forbidden.
11210
11211 2011-05-07  Petr Baudis  <pasky@suse.cz>
11212             Ulrich Drepper  <drepper@gmail.com>
11213
11214         [BZ #12393]
11215         * elf/dl-load.c (fillin_rpath): Move trusted path check...
11216         (is_trusted_path): ...to here.
11217         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
11218         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
11219         using is_trusted_path_normalize() in setuid scripts.
11220
11221 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11222
11223         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
11224         __BEGIN/__END_DECLS.
11225
11226 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
11227
11228         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
11229         NSS_STATUS_NOTFOUND if no record was found.
11230
11231 2011-05-05  Andreas Schwab  <schwab@redhat.com>
11232
11233         * sunrpc/Makefile (headers): Add rpc/netdb.h.
11234         (headers-not-in-tirpc): Remove rpc/netdb.h
11235         * resolv/netdb.h: Revert last change.
11236
11237 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11238
11239         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
11240         circular dependency between libgcc.a and libc.a.
11241
11242 2011-05-05  Andreas Schwab  <schwab@redhat.com>
11243
11244         * resolv/netdb.h: Don't include <rpc/netdb.h>.
11245         * nis/Makefile: Don't install rpcsvc/*.
11246         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
11247         instead of <rpc/types.h>.
11248         (MAXHOSTNAMELEN): Define.
11249
11250 2011-05-03  Andreas Schwab  <schwab@redhat.com>
11251
11252         * elf/ldconfig.c (add_dir): Don't crash on empty path.
11253
11254 2011-04-28  Maciej Babinski  <mbabinski@google.com>
11255
11256         [BZ #12714]
11257         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
11258         gethostbyname4_r when IPv6 results are possible.
11259
11260 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
11261
11262         [BZ #12723]
11263         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
11264         _PC_PIPE_BUF handling.
11265
11266 2011-04-30  Bruno Haible  <bruno@clisp.org>
11267
11268         [BZ #12717]
11269         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
11270         * resolv/netdb.h (getnameinfo): Change type of flags parameter
11271         to 'int'.
11272         * inet/getnameinfo.c (getnameinfo): Likewise.
11273
11274 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
11275
11276         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
11277         to groups setting in database lookup.
11278         * nss/nsswitch.conf: Add initgroups entry.
11279
11280 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
11281
11282         [BZ #12685]
11283         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
11284         mode string.
11285         Patch by Eric Blake <eblake@redhat.com>.
11286
11287 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11288
11289         * sunrpc/Makefile (need-export-routines): Add svc_run.
11290         (routines): Remove svc_run.
11291         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
11292         * sunrpc/clnt_perr.c (clnt_perrno): Export.
11293         * sunrpc/svc_run.c (svc_run): Likewise.
11294         * sunrpc/svc_udp.c (svcudp_create): Likewise.
11295
11296 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
11297
11298         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
11299         problem in reallocation in last patch.
11300
11301 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
11302
11303         * sunrpc/Makefile: Move inclusion of Rules.
11304
11305 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11306
11307         * nss/nss_files/files-initgroups.c: New file.
11308         * nss/Makefile (libnss_files-routines): Add files-initgroups.
11309         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
11310         _nss_files_initgroups_dyn.
11311
11312 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
11313
11314         * elf/elf.h (R_ARM_IRELATIVE): Define.
11315
11316 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11317
11318         * po/ru.po: Update from translation team.
11319
11320 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11321
11322         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
11323         dependencies.
11324
11325 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
11326
11327         [BZ #12653]
11328         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
11329         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
11330         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11331         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11332         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11333
11334 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
11335
11336         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
11337         differing bytes.
11338         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11339         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11340         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11341
11342 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11343
11344         [BZ #12420]
11345         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
11346         storing it.
11347         * stdlib/bug-getcontext.c: New file.
11348         * stdlib/Makefile: Add rules to build and run bug-getcontext.
11349
11350 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11351
11352         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
11353         instructions into .machine "z9-109".
11354         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
11355         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
11356
11357 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11358
11359         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
11360         between environment variables and auxiliary vector.
11361
11362 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
11363
11364         * Makefile: Add rules to build linkobj/libc.so.
11365         * include/libc-symbols.h: Define libc_hidden_nolink.
11366         * include/rpc/auth.h: Mark functions which are to be hidden.
11367         * include/rpc/auth_des.h: Likewise.
11368         * include/rpc/auth_unix.h: Likewise.
11369         * include/rpc/clnt.h: Likewise.
11370         * include/rpc/des_crypt.h: Likewise.
11371         * include/rpc/key_prot.h: Likewise.
11372         * include/rpc/pmap_clnt.h: Likewise.
11373         * include/rpc/pmap_prot.h: Likewise.
11374         * include/rpc/pmap_rmt.h: Likewise.
11375         * include/rpc/rpc_msg.h: Likewise.
11376         * include/rpc/svc.h: Likewise.
11377         * include/rpc/svc_auth.h: Likewise.
11378         * include/rpc/xdr.h: Likewise.
11379         * nis/Makefile: Link all DSOs against linkobj/libc.so.
11380         * nss/Makefile: Likewise.
11381         * sunrpc/Makefile: Don't install headers.  Build library with normal
11382         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
11383         * sunrpc/auth_des.c: Hide exported symbols by default, export some
11384         for the compat linking library.  Remove use of INTDEF/INTUSE.
11385         * sunrpc/auth_none.c: Likewise.
11386         * sunrpc/auth_unix.c: Likewise.
11387         * sunrpc/authdes_prot.c: Likewise.
11388         * sunrpc/authuxprot.c: Likewise.
11389         * sunrpc/clnt_gen.c: Likewise.
11390         * sunrpc/clnt_perr.c: Likewise.
11391         * sunrpc/clnt_raw.c: Likewise.
11392         * sunrpc/clnt_simp.c: Likewise.
11393         * sunrpc/clnt_tcp.c: Likewise.
11394         * sunrpc/clnt_udp.c: Likewise.
11395         * sunrpc/clnt_unix.c: Likewise.
11396         * sunrpc/des_crypt.c: Likewise.
11397         * sunrpc/des_soft.c: Likewise.
11398         * sunrpc/get_myaddr.c: Likewise.
11399         * sunrpc/key_call.c: Likewise.
11400         * sunrpc/key_prot.c: Likewise.
11401         * sunrpc/netname.c: Likewise.
11402         * sunrpc/pm_getmaps.c: Likewise.
11403         * sunrpc/pm_getport.c: Likewise.
11404         * sunrpc/pmap_clnt.c: Likewise.
11405         * sunrpc/pmap_prot.c: Likewise.
11406         * sunrpc/pmap_prot2.c: Likewise.
11407         * sunrpc/pmap_rmt.c: Likewise.
11408         * sunrpc/publickey.c: Likewise.
11409         * sunrpc/rpc_cmsg.c: Likewise.
11410         * sunrpc/rpc_common.c: Likewise.
11411         * sunrpc/rpc_dtable.c: Likewise.
11412         * sunrpc/rpc_prot.c: Likewise.
11413         * sunrpc/rpc_thread.c: Likewise.
11414         * sunrpc/rtime.c: Likewise.
11415         * sunrpc/svc.c: Likewise.
11416         * sunrpc/svc_auth.c: Likewise.
11417         * sunrpc/svc_authux.c: Likewise.
11418         * sunrpc/svc_raw.c: Likewise.
11419         * sunrpc/svc_run.c: Likewise.
11420         * sunrpc/svc_simple.c: Likewise.
11421         * sunrpc/svc_tcp.c: Likewise.
11422         * sunrpc/svc_udp.c: Likewise.
11423         * sunrpc/svc_unix.c: Likewise.
11424         * sunrpc/svcauth_des.c: Likewise.
11425         * sunrpc/xcrypt.c: Likewise.
11426         * sunrpc/xdr.c: Likewise.
11427         * sunrpc/xdr_array.c: Likewise.
11428         * sunrpc/xdr_float.c: Likewise.
11429         * sunrpc/xdr_intXX_t.c: Likewise.
11430         * sunrpc/xdr_mem.c: Likewise.
11431         * sunrpc/xdr_rec.c: Likewise.
11432         * sunrpc/xdr_ref.c: Likewise.
11433         * sunrpc/xdr_sizeof.c: Likewise.
11434         * sunrpc/xdr_stdio.c: Likewise.
11435
11436 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
11437
11438         [BZ #12650]
11439         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
11440         * sysdeps/ia64/dl-tls.h: Likewise.
11441         * sysdeps/powerpc/dl-tls.h: Likewise.
11442         * sysdeps/s390/dl-tls.h: Likewise.
11443         * sysdeps/sh/dl-tls.h: Likewise.
11444         * sysdeps/sparc/dl-tls.h: Likewise.
11445         * sysdeps/x86_64/dl-tls.h: Likewise.
11446         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
11447
11448 2011-03-14  Andreas Schwab  <schwab@redhat.com>
11449
11450         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
11451         rpath element also skip the following colon.
11452         (expand_dynamic_string_token): Add is_path parameter and pass
11453         down to DL_DST_REQUIRED and _dl_dst_substitute.
11454         (decompose_rpath): Call expand_dynamic_string_token with
11455         non-zero is_path.  Ignore empty rpaths.
11456         (_dl_map_object_from_fd): Call expand_dynamic_string_token
11457         with zero is_path.
11458
11459 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
11460
11461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11462         Make cancelable.
11463
11464 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
11465
11466         [BZ #12655]
11467         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
11468         Patch by Filipe David Manana <fdmanana@apache.org>.
11469
11470 2011-04-07  Andreas Schwab  <schwab@redhat.com>
11471
11472         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
11473         Maintain aligned stack.
11474         (CHECK_RSP): Remove unused macro.
11475
11476 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
11477
11478         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
11479         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
11480
11481 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
11482
11483         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
11484
11485         * include/features.h: Mention __USE_XOPEN2K8 in comment.
11486
11487 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11488
11489         [BZ #12518]
11490         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
11491         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
11492         * sysdeps/x86_64/memmove.c: New file.
11493         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
11494         (memcpy): Renamed to ...
11495         (__new_memcpy): This.
11496         (memcpy): Provide GLIBC_2_14 memcpy.
11497         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
11498         (memcpy): Provide GLIBC_2_2_5 memcpy.
11499
11500 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11501
11502         [BZ #12631]
11503         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
11504
11505 2011-03-30  Andreas Schwab  <schwab@redhat.com>
11506
11507         * misc/syncfs.c: New file.
11508         * misc/Makefile (routines): Add syncfs.
11509         * posix/unistd.h: Declare syncfs.
11510         * sysdeps/unix/syscalls.list: Add syncfs.
11511
11512 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11513
11514         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
11515         open_by_handle_at.
11516         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11517         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11518         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11519         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11520         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11521         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11522         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11523
11524 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11525
11526         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
11527         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11528         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11529         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11530         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11531         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11532         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11533
11534         * io/Makefile: Compile fallocate.c, fallocate64.c, and
11535         sync_file_range.c with -fexceptions.
11536         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
11537         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
11538         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
11539         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
11540         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
11541         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11542         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
11543         sync_file_range as cancellation point
11544         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
11545         now a wrapper around __call_sync_file_range with cancellation handling.
11546         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
11547         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
11548         function name to __call_sync_file_range.
11549         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
11550         Add call_sync_file_range.
11551
11552 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11553
11554         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11555         bits/timex.h.
11556
11557 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11558
11559         * iconv/iconv.h: Fix typo in comment.
11560         * io/fcntl.h: Likewise.
11561         * libio/stdio.h: Likewise.
11562         * posix/spawn.h: Likewise.
11563         * posix/unistd.h: Likewise.
11564         * stdlib/stdlib.h: Likewise.
11565         * time/time.h: Likewise.
11566         * wcsmbs/wchar.h: Likewise.
11567
11568         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
11569         open_by_handle): Add.
11570         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
11571         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
11572         Augment a few comments.
11573         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11574         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11575         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11576         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11577         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11578         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
11579         open_by_handle.
11580
11581         * io/fcntl.h (AT_EMPTY_PATH): Define.
11582
11583 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
11584
11585         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
11586         * sysdeps/unix/sysv/linux/bits/time.h: New file.
11587         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
11588         to...
11589         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
11590         * Versions.def: Add GLIBC_2.14.
11591         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
11592         Export.
11593
11594 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
11595
11596         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
11597         round counter.
11598         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11599
11600 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11601
11602         [BZ #12597]
11603         * string/test-strncmp.c (do_page_test): New function.
11604         (check2): Likewise.
11605         (test_main): Call check2.
11606         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
11607
11608 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
11609
11610         [BZ #12587]
11611         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11612         Handle cache information in CPU leaf 4.
11613         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11614
11615 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
11616
11617         [BZ #12583]
11618         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
11619         character representation.
11620         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
11621
11622 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
11623
11624         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
11625         END(__isnan) to END(__isnanf) to match function entry point/label
11626         EALIGN(__isnanf,...).
11627
11628 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11629
11630         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
11631
11632 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
11633
11634         [BZ #12510]
11635         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
11636         copy from the symbol referenced in the relocation to initialize the
11637         used variable.
11638         Patch by Piotr Bury <pbury@goahead.com>.
11639         * elf/Makefile: Add rules to build and tst-unique3.
11640         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
11641         * elf/tst-unique3.cc: New file.
11642         * elf/tst-unique3.h: New file.
11643         * elf/tst-unique3lib.cc: New file.
11644         * elf/tst-unique3lib2.cc: New file.
11645
11646         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
11647
11648 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
11649
11650         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
11651         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
11652         to _start.
11653
11654 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
11655
11656         * elf/dl-load.c (_dl_map_object): If we are looking for the first
11657         to-be-loaded object along a path to loader is ld.so.
11658
11659 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11660             Ulrich Drepper  <drepper@gmail.com>
11661
11662         * sysdeps/x86_64/memset.S: After aligning destination, code
11663         branches to different locations depending on the value of
11664         misalignment, when multiarch is enabled. Fix this.
11665
11666 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11667
11668         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
11669         Set _x86_64_preferred_memory_instruction for AMD processsors.
11670         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11671         Set bit_Prefer_SSE_for_memop for AMD processors.
11672
11673 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
11674
11675         * libio/fmemopen.c (fmemopen): Optimize a bit.
11676
11677 2011-03-03  Andreas Schwab  <schwab@redhat.com>
11678
11679         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
11680
11681 2011-03-03  Roland McGrath  <roland@redhat.com>
11682
11683         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
11684
11685 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
11686
11687         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
11688         __bzero_ultra1 instead of __memset_ultra1.
11689
11690 2011-02-23  Andreas Schwab  <schwab@redhat.com>
11691             Ulrich Drepper  <drepper@gmail.com>
11692
11693         [BZ #12509]
11694         * include/link.h (struct link_map): Add l_orig_initfini.
11695         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
11696         returning unsuccessfully.
11697         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
11698         close of a file loaded at startup, restore the original l_initfini
11699         list.
11700         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
11701         list, store the pointer.
11702         * elf/Makefile ($(objpfx)noload-mem): New rule.
11703         (noload-ENV): Define.
11704         (tests): Add $(objpfx)noload-mem.
11705         * elf/noload.c: Include <memcheck.h>.
11706         (main): Call mtrace.  Close all opened handles.
11707
11708 2011-02-17  Andreas Schwab  <schwab@redhat.com>
11709
11710         [BZ #12454]
11711         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
11712         dependencies are missing.
11713
11714 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11715
11716         Fix __if_freereq crash: Unlike the generic version which uses free,
11717         Hurd needs munmap.
11718         * sysdeps/mach/hurd/ifreq.h: New file.
11719
11720 2011-01-27  Petr Baudis  <pasky@suse.cz>
11721             Ulrich Drepper  <drepper@gmail.com>
11722
11723         [BZ 12445]#
11724         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
11725         to extend_alloca().
11726         * stdio-common/bug23.c: New file.
11727         * stdio-common/Makefile (tests): Add bug23.
11728
11729 2010-09-28  Andreas Schwab  <schwab@redhat.com>
11730             Ulrich Drepper  <drepper@gmail.com>
11731
11732         [BZ #12489]
11733         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
11734         before performing relro protection.  At old place add assertion
11735         to make sure nothing changed.
11736
11737 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
11738             Glauber de Oliveira Costa  <glommer@gmail.com>
11739
11740         * elf/elf.h: Add new ARM TLS relocs.
11741
11742 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
11743
11744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11745         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
11746         cast from r3.
11747         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
11748         'tests' variable.
11749         * sysdeps/wordsize-64/tst-writev.c: New file.
11750
11751 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
11752
11753         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
11754         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
11755         insns in _dl_start to prevent a TOC reference before relocs are
11756         resolved.
11757
11758 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
11759
11760         [BZ #12469]
11761         * Makeconfig: Remove RANLIB definition.
11762         * Makerules: Don't use RANLIB.
11763         * aclocal.m4: Remove ranlib test.
11764         * configure.in: No need to check for ranlib.
11765         * elf/rtld-Rules: Don't use RANLIB.
11766
11767 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11768
11769         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
11770         protection macro.
11771         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
11772         inclusion protection macro.
11773
11774         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
11775         SIGRTMIN and SIGRTMAX and print information in that case only when
11776         SIGRTMIN is defined.
11777
11778 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11779
11780         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
11781         arginfo fn returning -1.
11782
11783         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
11784         and thousands string is zero terminated.
11785
11786 2011-02-03  Andreas Schwab  <schwab@redhat.com>
11787
11788         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
11789         sysdeps/unix/sysv/linux/bits/socket.h.
11790
11791 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11792
11793         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
11794         (__CPU_COUNT): Remove old macros.
11795         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
11796         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
11797         (__CPU_ALLOC, __CPU_FREE): Add macros.
11798         (__sched_cpualloc, __sched_cpufree): Add declarations.
11799
11800 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
11801
11802         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
11803         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
11804         * nscd/aicache.c (addhstaiX): Return timeout of added value.
11805         (readdhstai): Return value of addhstaiX call.
11806         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
11807         (addgrbyX): Return value returned by cache_addgr.
11808         (readdgrbyname): Return value returned by addgrbyX.
11809         (readdgrbygid): Likewise.
11810         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
11811         (addpwbyX): Return value returned by cache_addpw.
11812         (readdpwbyname): Return value returned by addhstbyX.
11813         (readdpwbyuid): Likewise.
11814         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
11815         (addservbyX): Return value returned by cache_addserv.
11816         (readdservbyname): Return value returned by addservbyX:
11817         (readdservbyport): Likewise.
11818         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
11819         (addhstbyX): Return value returned by cache_addhst.
11820         (readdhstbyname): Return value returned by addhstbyX.
11821         (readdhstbyaddr): Likewise.
11822         (readdhstbynamev6): Likewise.
11823         (readdhstbyaddrv6): Likewise.
11824         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
11825         (readdinitgroups): Return value returned by addinitgroupsX.
11826         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
11827         (prune_cache): Keep track of timeout value of re-added entries.
11828         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
11829         * nscd/nscd.h: Adjust prototypes of readd* functions.
11830
11831 2011-02-04  Roland McGrath  <roland@redhat.com>
11832
11833         * nis/nis_server.c (nis_servstate): Use the right name for 0.
11834         (nis_stats): Likewise.
11835         * nis/nis_modify.c (nis_modify): Likewise.
11836         * nis/nis_remove.c (nis_remove): Likewise.
11837         * nis/nis_add.c (nis_add): Likewise.
11838
11839         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
11840
11841         * posix/fnmatch_loop.c: Add some consts.
11842
11843         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
11844
11845 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
11846
11847         [BZ #12460]
11848         * config.make.in (config-cflags-novzeroupper): Define.
11849         * configure.in: Substitute libc_cv_cc_novzeroupper.
11850         * elf/Makefile (AVX-CFLAGS): Define.
11851         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
11852         (CFLAGS-tst-auditmod4a.c): Likewise.
11853         (CFLAGS-tst-auditmod4b.c): Likewise.
11854         (CFLAGS-tst-auditmod6b.c): Likewise.
11855         (CFLAGS-tst-auditmod6c.c): Likewise.
11856         (CFLAGS-tst-auditmod7b.c): Likewise.
11857         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
11858
11859 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
11860
11861         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
11862         function to the callback.
11863         Patch partly by Jiri Olsa <jolsa@redhat.com>.
11864
11865 2011-02-02  Andreas Schwab  <schwab@redhat.com>
11866
11867         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
11868         of errno.
11869
11870 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
11871
11872         [BZ #11724]
11873         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
11874         of constructors.
11875         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
11876         of destructors.
11877         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
11878
11879         [BZ #11724]
11880         * elf/Makefile: Add rules to build and run new test.
11881         * elf/tst-initorder.c: New file.
11882         * elf/tst-initorder.exp: New file.
11883         * elf/tst-initordera1.c: New file.
11884         * elf/tst-initordera2.c: New file.
11885         * elf/tst-initordera3.c: New file.
11886         * elf/tst-initordera4.c: New file.
11887         * elf/tst-initorderb1.c: New file.
11888         * elf/tst-initorderb2.c: New file.
11889         * elf/tst-order-a1.c: New file.
11890         * elf/tst-order-a2.c: New file.
11891         * elf/tst-order-a3.c: New file.
11892         * elf/tst-order-a4.c: New file.
11893         * elf/tst-order-b1.c: New file.
11894         * elf/tst-order-b2.c: New file.
11895         * elf/tst-order-main.c: New file.
11896         New test case by George Gensure <werkt0@gmail.com>.
11897
11898 2010-10-01  Andreas Schwab  <schwab@redhat.com>
11899
11900         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11901         decoding ACE if AI_CANONIDN.
11902
11903 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
11904
11905         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
11906
11907 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
11908
11909         * version.h (RELEASE): Bump for 2.13 release.
11910         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
11911
11912         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
11913
11914         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
11915         MADV_NOHUGEPAGE.
11916         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
11917         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11918         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11919         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11920         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11921         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11922
11923         * posix/getconf.c: Update copyright year.
11924         * catgets/gencat.c: Likewise.
11925         * csu/version.c: Likewise.
11926         * debug/catchsegv.sh: Likewise.
11927         * debug/xtrace.sh: Likewise.
11928         * elf/ldconfig.c: Likewise.
11929         * elf/ldd.bash.in: Likewise.
11930         * elf/sprof.c (print_version): Likewise.
11931         * iconv/iconv_prog.c: Likewise.
11932         * iconv/iconvconfig.c: Likewise.
11933         * locale/programs/locale.c: Likewise.
11934         * locale/programs/localedef.c: Likewise.
11935         * malloc/memusage.sh: Likewise.
11936         * malloc/mtrace.pl: Likewise.
11937         * nscd/nscd.c (print_version): Likewise.
11938         * nss/getent.c: Likewise.
11939
11940         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
11941         PF_CAIF, and PF_ALG.
11942         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11943
11944 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
11945
11946         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
11947         (modules-names): Use them.
11948         (ifunc-test-modules, ifunc-pie-tests): Define.
11949         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
11950         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
11951         (test-extras): Likewise.
11952         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
11953         $(compile-command.c).
11954         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
11955         (all-built-dso): Define.
11956         (check-textrel.out, check-execstack.out): Depend on it.
11957
11958         * configure.in: Don't override --enable-multi-arch.
11959
11960 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
11961
11962         [BZ #6812]
11963         * nscd/hstcache.c (tryagain): Define.
11964         (cache_addhst): Return tryagain not notfound for temporary errors.
11965         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
11966         failed.
11967
11968 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
11969
11970         [BZ #10563]
11971         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
11972         to make the syscall.
11973         * sysdeps/unix/sysv/linux/setgroups.c: New file.
11974
11975         [BZ #12378]
11976         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
11977         and fall back to matching as normal character if the string ends before
11978         the matching ']' is found.  This is what POSIX requires.
11979         * posix/testfnm.c: Adjust test result.
11980         * posix/globtest.sh: Adjust test result.  Add new test.
11981         * posix/tst-fnmatch.input: Likewise.
11982         * posix/tst-fnmatch2.c: Add new test.
11983
11984 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
11985
11986         * elf/Makefile (check-execstack): Revert last change.  Depend on
11987         check-execstack.h.
11988         (check-execstack.h): New target.
11989         (generated): Add check-execstack.h.
11990         * elf/check-execstack.c: Include "check-execstack.h".
11991         (main): Revert last change.
11992         (handle_file): Return zero if GNU_STACK is absent and
11993         DEFAULT_STACK_PERMS doesn't include PF_X.
11994
11995 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
11996
11997         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
11998         in child fails because the descriptor is already closed.
11999         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
12000         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
12001         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
12002
12003         [BZ #12397]
12004         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
12005         syscall.
12006
12007         [BZ #10484]
12008         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
12009         temporary buffer used to handle multi lookups locally.
12010         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
12011
12012 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
12013
12014         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
12015         loader is ld.so.
12016
12017 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
12018
12019         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
12020         alignment for SSE2.
12021
12022 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
12023
12024         [BZ #12394]
12025         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
12026         characters.  When rounding increased number of integer digits recompute
12027         number of groups.
12028         * stdio-common/tst-grouping.c: New file.
12029         * stdio-common/Makefile: Add rules to build and run tst-grouping.
12030
12031 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
12032
12033         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
12034         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
12035
12036         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
12037         void.
12038         * bits/select.h: Likewise.
12039
12040 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
12041
12042         * po/ja.po: Update from translation team.
12043
12044 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
12045
12046         [BZ #11155]
12047         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
12048         implementation just like for lxstat, fxstatat, et al.
12049
12050 2010-12-27  Jim Meyering  <meyering@redhat.com>
12051
12052         [BZ #12348]
12053         * posix/regexec.c (build_trtable): Return failure indication upon
12054         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12055
12056 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
12057
12058         [BZ #12201]
12059         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
12060         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
12061         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
12062         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
12063
12064         [BZ #12207]
12065         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
12066
12067         [BZ #12204]
12068         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
12069         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
12070
12071 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12072
12073         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
12074         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
12075         script has SORT_BY_INIT_PRIORITY.
12076         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
12077         NO_CTORS_DTORS_SECTIONS is defined.
12078         * elf/soinit.c: Likewise.
12079         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
12080         NO_CTORS_DTORS_SECTIONS is defined.
12081         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
12082         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
12083         * sysdeps/sh/init-first.c: Likewise.
12084         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
12085
12086 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
12087
12088         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
12089         always use the slow path.
12090
12091 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
12092
12093         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
12094         similar rule which adds the sysdep directories to the header search in
12095         order to pick up the correct platform stackinfo.h.
12096         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
12097         perform test if it is, otherwise return successfully without testing.
12098         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
12099         DEFAULT_STACK_PERMS define in stackinfo.h.
12100         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
12101         defined in stackinfo.h.
12102         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
12103         DEFAULT_STACK_PERMS defined in stackinfo.h.
12104         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
12105         * sysdeps/ia64/stackinfo.h: Likewise.
12106         * sysdeps/s390/stackinfo.h: Likewise.
12107         * sysdeps/sh/stackinfo.h: Likewise.
12108         * sysdeps/sparc/stackinfo.h: Likewise.
12109         * sysdeps/x86_64/stackinfo.h: Likewise.
12110         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
12111         PF_X for powerpc64.  Retain PF_X for powerpc32.
12112
12113 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
12114
12115         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
12116         accurately.
12117         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
12118         GETDENTS_64BIT_ALIGNED.
12119
12120 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
12121
12122         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
12123
12124 2010-12-10  Andreas Schwab  <schwab@redhat.com>
12125
12126         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
12127         _GNU_SOURCE.
12128
12129         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
12130         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
12131         Remove __restrict.
12132         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
12133         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
12134
12135 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
12136
12137         [BZ #11655]
12138         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
12139         are initialized.
12140
12141 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
12142
12143         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
12144
12145 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
12146
12147         * po/it.po: Update from translation team.
12148
12149 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12150
12151         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
12152         unused codes.
12153
12154 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
12155
12156         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
12157
12158 2010-11-24  Andreas Schwab  <schwab@redhat.com>
12159
12160         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
12161         specially.
12162         (gaih_getanswer_slice): Likewise.
12163
12164 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
12165
12166         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
12167
12168 2010-05-31  Petr Baudis  <pasky@suse.cz>
12169
12170         [BZ #11149]
12171         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
12172         silently even in the chroot mode.
12173
12174 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
12175
12176         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
12177         last patch a bit.  Pretty printing
12178
12179 2010-05-31  Petr Baudis <pasky@suse.cz>
12180
12181         [BZ #10085]
12182         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
12183         initialization of skip_initgroups_dyn.
12184
12185 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
12186
12187         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
12188         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
12189
12190 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
12191
12192         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
12193
12194 2010-11-11  Andreas Schwab  <schwab@redhat.com>
12195
12196         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
12197         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
12198         (tst-fnmatch-ENV): Set MALLOC_TRACE.
12199         ($(objpfx)tst-fnmatch-mem): New rule.
12200         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
12201         * posix/tst-fnmatch.c (main): Call mtrace.
12202
12203 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
12204
12205         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12206         Support Intel processor model 6 and model 0x2c.
12207
12208 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
12209
12210         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
12211           signed comparison.
12212
12213 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
12214
12215         [BZ #12205]
12216         * string/test-strncasecmp.c (check_result): New function.
12217         (do_one_test): Use it.
12218         (check1): New function.
12219         (test_main): Use it.
12220         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
12221         Support strcasecmp and strncasecmp.
12222
12223 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
12224
12225         [BZ #12194]
12226         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
12227         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12228
12229 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12230
12231         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
12232         IFUNC support.
12233         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12234         memset-x86-64.
12235         * sysdeps/x86_64/multiarch/bzero.S: New file.
12236         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
12237         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
12238         * sysdeps/x86_64/multiarch/memset.S: New file.
12239         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
12240         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12241         Set bit_Prefer_SSE_for_memop for Intel processors.
12242         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
12243         Define.
12244         (index_Prefer_SSE_for_memop): Define.
12245         (HAS_PREFER_SSE_FOR_MEMOP): Define.
12246
12247 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
12248
12249         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
12250         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
12251
12252 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
12253
12254         [BZ #12191]
12255         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12256         (__x86_64_raw_data_cache_size_half): Likewise.
12257         (__x86_64_raw_shared_cache_size): Likewise.
12258         (__x86_64_raw_shared_cache_size_half): Likewise.
12259
12260         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
12261         (__x86_64_raw_data_cache_size_half): Likewise.
12262         (__x86_64_raw_shared_cache_size): Likewise.
12263         (__x86_64_raw_shared_cache_size_half): Likewise.
12264         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
12265         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
12266         and __x86_64_raw_shared_cache_size_half.  Round
12267         __x86_64_data_cache_size_half, __x86_64_data_cache_size
12268         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
12269         to multiple of 256 bytes.
12270
12271 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
12272
12273         [BZ #12167]
12274         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
12275         of inacessible symlinks.  Verify result of symlink before returning it.
12276         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
12277         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
12278
12279 2010-10-28  Erich Ritz  <erichritz@gmail.com>
12280
12281         * math/math.h (isinf): Fix typo in comment.
12282
12283 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
12284
12285         * po/da.po: Update from translation team.
12286
12287 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
12288
12289         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
12290         is added to the list.
12291
12292 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12293             Ulrich Drepper  <drepper@gmail.com>
12294
12295         * elf/dl-object.c (_dl_new_object): Don't append the new object to
12296         the global list here.  Move code to...
12297         (_dl_add_to_namespace_list): ...here.  New function.
12298         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
12299         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
12300         * elf/dl-load.c (lose): Don't remove the element from the list.
12301         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
12302         (_dl_map_object): Likewise.
12303
12304 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
12305
12306         [BZ #12159]
12307         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
12308         into all bytes of SSE register.
12309         Patch by Richard Li <richardpku@gmail.com>.
12310
12311 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
12312
12313         [BZ #12140]
12314         * malloc/malloc.c (_int_free): Fill correct number of bytes when
12315         perturbing.
12316
12317 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
12318
12319         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
12320         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
12321         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
12322         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
12324         submachine.
12325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12326
12327 2010-10-22  Andreas Schwab  <schwab@redhat.com>
12328
12329         * include/dlfcn.h (__RTLD_SECURE): Define.
12330         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
12331         mode & __RTLD_SECURE instead.
12332         (open_path): Rename preloaded parameter to secure.
12333         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
12334         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
12335         * elf/dl-deps.c (openaux): Likewise.
12336         * elf/rtld.c (struct map_args): Remove is_preloaded.
12337         (map_doit): Don't use it.
12338         (dl_main): Likewise.
12339         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
12340         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
12341
12342 2010-09-09  Andreas Schwab  <schwab@redhat.com>
12343
12344         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
12345         (sysd-rules-targets): Remove duplicates.
12346         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
12347         rtld-%.$o dependency.
12348
12349 2010-10-18  Andreas Schwab  <schwab@redhat.com>
12350
12351         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
12352         _dl_map_object do it.
12353
12354 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
12355
12356         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
12357         fast fma builtins, define the macros in the C99 standard.
12358         (FP_FAST_FMAF): Likewise.
12359         (FP_FAST_FMAL): Likewise.
12360         * sysdeps/x86_64/bits/mathdef.h: Likewise.
12361
12362         * bits/mathdef.h: Update copyright year.
12363         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12364
12365 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12366
12367         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
12368         builtins, define the macros in the C99 standard.
12369         (FP_FAST_FMAF): Likewise.
12370         (FP_FAST_FMAL): Likewise.
12371         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
12372         multiply/add.
12373         (FP_FAST_FMAF): Likewise.
12374
12375 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
12376
12377         [BZ #3268]
12378         * math/libm-test.inc (fma_test): Some new testcases.
12379         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
12380         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
12381         y and infinite z.  Do multiplication by C already in long double.
12382         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
12383         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
12384         y and infinite z.  Do bitwise or of inexact bit into u.d.
12385         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
12386         * sysdeps/i386/fpu/s_fmaf.S: Removed.
12387         * sysdeps/i386/fpu/s_fma.S: Removed.
12388         * sysdeps/i386/fpu/s_fmal.S: Removed.
12389
12390 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
12391
12392         [BZ #3268]
12393         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
12394         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
12395         computation is not scheduled after fetestexcept.  Fix value
12396         of minimum denormal long double.
12397
12398 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
12399
12400         [BZ #3268]
12401         * math/libm-test.inc (fma_test): Add some more tests.
12402         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
12403         correctly.
12404
12405 2010-10-15  Andreas Schwab  <schwab@redhat.com>
12406
12407         * scripts/data/localplt-s390-linux-gnu.data: New file.
12408         * scripts/data/localplt-s390x-linux-gnu.data: New file.
12409
12410 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
12411
12412         [BZ #3268]
12413         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
12414         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
12415         instead of dbl-64.
12416         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
12417         inlines.
12418         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
12419         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
12420         if one of x and y is very large and the other is subnormal.
12421         * sysdeps/s390/fpu/s_fmaf.c: New file.
12422         * sysdeps/s390/fpu/s_fma.c: New file.
12423         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
12424         * sysdeps/powerpc/fpu/s_fma.S: New file.
12425         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
12426         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
12427         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
12428
12429 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
12430
12431         [BZ #3268]
12432         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
12433         fma tests.
12434         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
12435         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
12436         * sysdeps/i386/i686/multiarch/s_fma.c: Include
12437         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
12438         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
12439         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
12440         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
12441
12442 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
12443
12444         [BZ #12078]
12445         * posix/regcomp.c (parse_branch): One more memory leak plugged.
12446         * posix/bug-regex31.input: Add test case.
12447
12448 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12449
12450         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
12451         * posix/bug-regex31.input: New file.
12452
12453         [BZ #12078]
12454         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
12455         (parse_sub_exp): Fix last change, use postorder.
12456
12457         * posix/bug-regex31.c: New file.
12458         * posix/Makefile: Add rules to build and run bug-regex31.
12459
12460         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
12461
12462         [BZ #12078]
12463         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
12464
12465         [BZ #12108]
12466         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
12467         to have entries in sys_siglist.
12468
12469         [BZ #12093]
12470         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
12471         be NULL.
12472
12473 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
12474
12475         [BZ #3268]
12476         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
12477         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
12478         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
12479         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
12480         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12481         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
12482         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
12483         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
12484         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
12485         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
12486         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
12487         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
12488         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
12489         * math/ftestexcept.c (fetestexcept): Likewise.
12490         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
12491         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
12492         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12493         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
12494         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
12495         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
12496         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12497
12498 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12499
12500         [BZ #12107]
12501         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
12502         newline.
12503
12504 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
12505
12506         * string/bug-strstr1.c: New file.
12507         * string/Makefile: Add rules to build and run bug-strstr1.
12508
12509 2010-10-05  Eric Blake  <eblake@redhat.com>
12510
12511         [BZ #12092]
12512         * string/str-two-way.h (two_way_long_needle): Always clear memory
12513         when skipping input due to the shift table.
12514
12515 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
12516
12517         [BZ #12005]
12518         * malloc/mcheck.c: Handle large requests.
12519
12520         [BZ #12077]
12521         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
12522         for strncmp and strncasecmp.
12523         * string/stratcliff.c: Add tests for strcmp and strncmp.
12524         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
12525
12526 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12527
12528         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
12529         __set_fpscr.
12530
12531 2010-09-30  Andreas Jaeger  <aj@suse.de>
12532
12533         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
12534         (CGROUP_SUPER_MAGIC): Define.
12535         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12536         Handle btrfs and cgroup file systems.
12537         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12538         Likewise.
12539
12540 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
12541
12542         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
12543         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
12544
12545 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12546
12547         [BZ #12067]
12548         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
12549         trying to locate the ELF header.
12550
12551 2010-09-27  Andreas Schwab  <schwab@redhat.com>
12552
12553         [BZ #11611]
12554         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
12555         Mask out sign-bit copies when constructing f_fsid.
12556
12557 2010-09-24  Petr Baudis <pasky@suse.cz>
12558
12559         * debug/stack_chk_fail_local.c: Add missing licence exception.
12560         * debug/warning-nop.c: Likewise.
12561
12562 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12563
12564         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
12565         implementing getdents64 using getdents syscall, set d_type if
12566         __ASSUME_GETDENTS32_D_TYPE.
12567
12568 2010-09-16  Andreas Schwab  <schwab@redhat.com>
12569
12570         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
12571         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
12572
12573 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
12574
12575         [BZ #12037]
12576         * posix/unistd.h: Undo change of feature selection for ftruncate from
12577         2010-01-11.
12578
12579 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
12580
12581         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
12582         detection.
12583
12584 2010-09-20  Andreas Schwab  <schwab@redhat.com>
12585
12586         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
12587         fanotify_mark.
12588         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12589
12590 2010-09-14  Andreas Schwab  <schwab@redhat.com>
12591
12592         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
12593         variables after CHECK_SP call.
12594         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
12595
12596 2010-09-13  Andreas Schwab  <schwab@redhat.com>
12597             Ulrich Drepper  <drepper@redhat.com>
12598
12599         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
12600         re-relocationg ld.so.
12601         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
12602         _dl_init_paths call.
12603         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
12604         here anymore.
12605
12606 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
12607
12608         * resolv/res_init.c (__res_vinit): Count the default server we added.
12609
12610 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
12611             Ulrich Drepper  <drepper@redhat.com>
12612
12613         [BZ #11968]
12614         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12615         (____longjmp_chk): Use %ebx for saving value across system call.
12616         Add unwind info.
12617
12618 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12619
12620         * manual/Makefile: Don't mix pattern rules with normal rules.
12621
12622 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
12623
12624         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
12625         operation.
12626         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12627         * libio/iofopncook.c (_IO_cookie_init): Likewise.
12628         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12629         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12630         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12631         Likewise.
12632
12633 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
12634
12635         [BZ #11979]
12636         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
12637         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
12638
12639 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
12640
12641         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
12642         * sysdeps/x86_64/addmul_1.S: Likewise.
12643         * sysdeps/x86_64/lshift.S: Likewise.
12644         * sysdeps/x86_64/mul_1.S: Likewise.
12645         * sysdeps/x86_64/rshift.S: Likewise.
12646         * sysdeps/x86_64/sub_n.S: Likewise.
12647         * sysdeps/x86_64/submul_1.S: Likewise.
12648
12649 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12650
12651         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
12652         Define __sched_param instead of SCHED_* and sched_param when
12653         <bits/sched.h> is included with __need_schedparam defined.
12654         * bits/sched.h [__need_schedparam]
12655         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
12656         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
12657         (__defined_schedparam): Define to 1.
12658         (__sched_param): New structure, identical to sched_param.
12659         (__need_schedparam): Undefine.
12660
12661 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
12662
12663         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
12664         (epoll_create1): Declare.
12665
12666         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
12667
12668 2010-08-31  Andreas Schwab  <schwab@redhat.com>
12669
12670         [BZ #7066]
12671         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
12672         shifting retval into place.
12673
12674 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
12675
12676         * nis/rpcsvc/nis.h: Update copyright notice.
12677         * nis/rpcsvc/nis.x: Likewise.
12678         * nis/rpcsvc/nis_callback.h: Likewise.
12679         * nis/rpcsvc/nis_callback.x: Likewise.
12680         * nis/rpcsvc/nis_object.x: Likewise.
12681         * nis/rpcsvc/nis_tags.h: Likewise.
12682         * nis/rpcsvc/yp.h: Likewise.
12683         * nis/rpcsvc/yp.x: Likewise.
12684         * nis/rpcsvc/ypupd.h: Likewise.
12685         * nis/yp_xdr.c: Likewise.
12686         * nis/ypupdate_xdr.c: Likewise.
12687
12688         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
12689         mainly the body of pmap_getport.  Add parameters to specify timeouts.
12690         (pmap_getport): Use __libc_rpc_getport.
12691         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
12692         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
12693         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
12694
12695 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
12696
12697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
12698         fanotify_mark.
12699
12700 2010-08-27  Roland McGrath  <roland@redhat.com>
12701
12702         * sysdeps/i386/i686/multiarch/Makefile
12703         (CFLAGS-varshift.c): New variable.
12704
12705 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
12706
12707         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
12708         * sysdeps/i386/i686/multiarch/varshift.c: New file.
12709
12710         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
12711
12712         * sysdeps/x86_64/strlen.S: Minimal code improvement.
12713
12714 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12715
12716         * sysdeps/x86_64/strlen.S: Unroll the loop.
12717         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12718         strlen-sse2 strlen-sse2-bsf.
12719         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
12720         __strlen_no_bsf if bit_Slow_BSF is set.
12721         (__strlen_sse42): Removed.
12722         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
12723         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
12724
12725 2010-08-25  Roland McGrath  <roland@redhat.com>
12726
12727         * sysdeps/x86_64/multiarch/varshift.S: File removed.
12728         * sysdeps/x86_64/multiarch/varshift.c: New file.
12729         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
12730         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
12731         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
12732         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12733
12734 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12735
12736         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12737         strlen-sse2 strlen-sse2-bsf.
12738         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
12739         __strlen_sse2_bsf if bit_Slow_BSF is unset.
12740         (__strlen_sse2): Removed.
12741         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
12742         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
12743         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
12744         bit_Slow_BSF for Atom.
12745         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
12746         (index_Slow_BSF): Define.
12747         (HAS_SLOW_BSF): Define.
12748
12749 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
12750
12751         [BZ #10851]
12752         * resolv/res_init.c (__res_vinit): When no server address at all
12753         is given default to loopback.
12754
12755 2010-08-24  Roland McGrath  <roland@redhat.com>
12756
12757         * configure.in: Remove config-name.h generation.
12758         * configure: Regenerated.
12759         * config-name.in: File removed.
12760         * scripts/config-uname.sh: New file.
12761         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
12762         ($(objdir)config-name.h): New target.
12763
12764         * sunrpc/rpc_parse.h: Avoid nested comment.
12765
12766 2010-08-24  Richard Henderson  <rth@redhat.com>
12767             Ulrich Drepper  <drepper@redhat.com>
12768             H.J. Lu  <hongjiu.lu@intel.com>
12769
12770         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
12771         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
12772         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
12773         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
12774         _mm_alignr_epi8 with _mm_loadu_si128.
12775         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
12776         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
12777         (__m128i_shift_right): Removed.
12778         * sysdeps/i386/i686/multiarch/varshift.h: New file.
12779         * sysdeps/i386/i686/multiarch/varshift.S: New file.
12780         * sysdeps/x86_64/multiarch/varshift.h: New file.
12781         * sysdeps/x86_64/multiarch/varshift.S: New file.
12782
12783 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
12784
12785         * configure.in: Move assembler checks to before sysdep dir checking.
12786
12787 2010-08-20  Petr Baudis  <pasky@suse.cz>
12788
12789         * LICENSES: Sync the sunrpc license.
12790
12791 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
12792
12793         * sunrpc/auth_des.c: Update copyright notice once again.
12794         * sunrpc/auth_none.c: Likewise.
12795         * sunrpc/auth_unix.c: Likewise.
12796         * sunrpc/authdes_prot.c: Likewise.
12797         * sunrpc/authuxprot.c: Likewise.
12798         * sunrpc/bindrsvprt.c: Likewise.
12799         * sunrpc/clnt_gen.c: Likewise.
12800         * sunrpc/clnt_perr.c: Likewise.
12801         * sunrpc/clnt_raw.c: Likewise.
12802         * sunrpc/clnt_simp.c: Likewise.
12803         * sunrpc/clnt_tcp.c: Likewise.
12804         * sunrpc/clnt_udp.c: Likewise.
12805         * sunrpc/clnt_unix.c: Likewise.
12806         * sunrpc/des_crypt.c: Likewise.
12807         * sunrpc/des_soft.c: Likewise.
12808         * sunrpc/get_myaddr.c: Likewise.
12809         * sunrpc/getrpcport.c: Likewise.
12810         * sunrpc/key_call.c: Likewise.
12811         * sunrpc/key_prot.c: Likewise.
12812         * sunrpc/openchild.c: Likewise.
12813         * sunrpc/pm_getmaps.c: Likewise.
12814         * sunrpc/pm_getport.c: Likewise.
12815         * sunrpc/pmap_clnt.c: Likewise.
12816         * sunrpc/pmap_prot.c: Likewise.
12817         * sunrpc/pmap_prot2.c: Likewise.
12818         * sunrpc/pmap_rmt.c: Likewise.
12819         * sunrpc/rpc/auth.h: Likewise.
12820         * sunrpc/rpc/auth_unix.h: Likewise.
12821         * sunrpc/rpc/clnt.h: Likewise.
12822         * sunrpc/rpc/des_crypt.h: Likewise.
12823         * sunrpc/rpc/key_prot.h: Likewise.
12824         * sunrpc/rpc/netdb.h: Likewise.
12825         * sunrpc/rpc/pmap_clnt.h: Likewise.
12826         * sunrpc/rpc/pmap_prot.h: Likewise.
12827         * sunrpc/rpc/pmap_rmt.h: Likewise.
12828         * sunrpc/rpc/rpc.h: Likewise.
12829         * sunrpc/rpc/rpc_des.h: Likewise.
12830         * sunrpc/rpc/rpc_msg.h: Likewise.
12831         * sunrpc/rpc/svc.h: Likewise.
12832         * sunrpc/rpc/svc_auth.h: Likewise.
12833         * sunrpc/rpc/types.h: Likewise.
12834         * sunrpc/rpc/xdr.h: Likewise.
12835         * sunrpc/rpc_clntout.c: Likewise.
12836         * sunrpc/rpc_cmsg.c: Likewise.
12837         * sunrpc/rpc_common.c: Likewise.
12838         * sunrpc/rpc_cout.c: Likewise.
12839         * sunrpc/rpc_dtable.c: Likewise.
12840         * sunrpc/rpc_hout.c: Likewise.
12841         * sunrpc/rpc_main.c: Likewise.
12842         * sunrpc/rpc_parse.c: Likewise.
12843         * sunrpc/rpc_parse.h: Likewise.
12844         * sunrpc/rpc_prot.c: Likewise.
12845         * sunrpc/rpc_sample.c: Likewise.
12846         * sunrpc/rpc_scan.c: Likewise.
12847         * sunrpc/rpc_scan.h: Likewise.
12848         * sunrpc/rpc_svcout.c: Likewise.
12849         * sunrpc/rpc_tblout.c: Likewise.
12850         * sunrpc/rpc_util.c: Likewise.
12851         * sunrpc/rpc_util.h: Likewise.
12852         * sunrpc/rpcinfo.c: Likewise.
12853         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
12854         * sunrpc/rpcsvc/key_prot.x: Likewise.
12855         * sunrpc/rpcsvc/klm_prot.x: Likewise.
12856         * sunrpc/rpcsvc/mount.x: Likewise.
12857         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
12858         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
12859         * sunrpc/rpcsvc/rex.x: Likewise.
12860         * sunrpc/rpcsvc/rstat.x: Likewise.
12861         * sunrpc/rpcsvc/rusers.x: Likewise.
12862         * sunrpc/rpcsvc/sm_inter.x: Likewise.
12863         * sunrpc/rpcsvc/spray.x: Likewise.
12864         * sunrpc/rpcsvc/yppasswd.x: Likewise.
12865         * sunrpc/rtime.c: Likewise.
12866         * sunrpc/svc.c: Likewise.
12867         * sunrpc/svc_auth.c: Likewise.
12868         * sunrpc/svc_authux.c: Likewise.
12869         * sunrpc/svc_raw.c: Likewise.
12870         * sunrpc/svc_run.c: Likewise.
12871         * sunrpc/svc_simple.c: Likewise.
12872         * sunrpc/svc_tcp.c: Likewise.
12873         * sunrpc/svc_udp.c: Likewise.
12874         * sunrpc/svc_unix.c: Likewise.
12875         * sunrpc/svcauth_des.c: Likewise.
12876         * sunrpc/xcrypt.c: Likewise.
12877         * sunrpc/xdr.c: Likewise.
12878         * sunrpc/xdr_array.c: Likewise.
12879         * sunrpc/xdr_float.c: Likewise.
12880         * sunrpc/xdr_mem.c: Likewise.
12881         * sunrpc/xdr_rec.c: Likewise.
12882         * sunrpc/xdr_ref.c: Likewise.
12883         * sunrpc/xdr_sizeof.c: Likewise.
12884         * sunrpc/xdr_stdio.c: Likewise.
12885
12886         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
12887         handling.
12888
12889 2010-08-19  Andreas Schwab  <schwab@redhat.com>
12890
12891         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
12892
12893 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
12894
12895         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
12896         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
12897         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
12898         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
12899         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
12900         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
12901         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
12902         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
12903         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
12904         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
12905         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
12906         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
12907         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
12908         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
12909
12910 2010-07-26  Anton Blanchard  <anton@samba.org>
12911
12912         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
12913         * malloc/arena.c (heap_trim): Likewise.
12914
12915 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
12916
12917         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
12918         here.  Not...
12919         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
12920         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
12921
12922 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
12923
12924         * sysdeps/i386/elf/Makefile: New file.
12925
12926 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12927
12928         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
12929         from fanotify_init.
12930         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
12931         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12932
12933 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
12934
12935         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
12936         of strncasecmp_l.
12937         * sysdeps/multiarch/strcmp.S: Likewise.
12938
12939 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
12940
12941         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12942         strncase_l-nonascii.
12943         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12944         Add strncase_l-ssse3.
12945         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
12946         * sysdeps/x86_64/strcmp.S: Likewise.
12947         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
12948         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
12949         * sysdeps/x86_64/strncase.S: New file.
12950         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
12951         * sysdeps/x86_64/strncase_l.S: New file.
12952         * string/Makefile (strop-tests): Add strncasecmp.
12953         * string/test-strncasecmp.c: New file.
12954
12955         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
12956         warning.
12957
12958         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
12959         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
12960
12961 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12962
12963         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
12964
12965 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
12966
12967         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
12968         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
12969         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
12970
12971 2010-05-01  Alan Modra  <amodra@gmail.com>
12972
12973         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
12974         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
12975         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
12976         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
12977         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
12978         tidying.  Don't tail-call __sigjmp_save for static lib.
12979         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
12980         save location.
12981         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
12982         (CALL_MCOUNT): Add eh info, and nop after bl.
12983         (TAIL_CALL_SYSCALL_ERROR): New macro.
12984         (PSEUDO_RET): Use it.
12985         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
12986         Correct save location of integer regs and cr.
12987         (_dl_profile_resolve): Correct cr save location.  Delete nops
12988         after bl when SHARED.  Reduce cfi size a little by better
12989         placement of cfi directives.
12990         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
12991         make a stack frame.  Instead use parm save area as a temp.
12992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
12993         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
12994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
12995         Don't make a stack frame for parent, use parm save area.
12996         Increase child stack frame to 112 bytes.  Don't save unused reg,
12997         and adjust reg usage.  Set up cfi on error recovery and
12998         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
12999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
13000         (__makecontext): Add dummy nop after jump to exit.
13001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
13002         Use correct parm save area and cr save, reduce stack frame.
13003         Correct cfi for possible PSEUDO_RET frame setup.
13004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
13005         Branch to local label emitted by PSEUDO_RET rather than
13006         __syscall_error.
13007
13008 2010-08-12  Andreas Schwab  <schwab@redhat.com>
13009
13010         [BZ #11904]
13011         * locale/programs/locale.c (print_assignment): New function.
13012         (show_locale_vars): Use it.
13013
13014 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
13015
13016         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
13017         field.
13018         (struct statfs64): Likewise.
13019         (_STATFS_F_FLAGS): Define.
13020         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
13021         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13022         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
13023         (ST_VALID): Define locally.
13024         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
13025         __statvfs_getflags, use the provided value.
13026         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13027         __ASSUME_STATFS_F_FLAGS.
13028
13029         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
13030
13031         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
13032         Add sys/fanotify.h.
13033         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
13034         fanotify_mask for GLIBC_2.13.
13035         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
13036         fanotify_init and fanotify_mark.
13037         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13038         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
13039
13040         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
13041         Add prlimit.
13042         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
13043         prlimit64 for GLIBC_2.13.
13044         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
13045         prlimit64.
13046         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
13047         syscall.
13048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13049         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
13050         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
13051         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
13052         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
13053         add prlimit alias.
13054         * sysdeps/unix/sysv/linux/prlimit.c: New file.
13055
13056         [BZ #11903]
13057         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
13058         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
13059
13060         * nss/Makefile: Add rules to build and run tst-nss-test1.
13061         * shlib-versions: Add entry for libnss_test1.
13062         * nss/nss_test1.c: New file.
13063         * nss/tst-nss-test1.c: New file.
13064
13065         * nss/nsswitch.c (__nss_database_custom): Define new variable.
13066         (__nss_configure_lookup): Set appropriate entry in
13067         __nss_configure_lookup to true.
13068         * nss/nsswitch.h: Define enum with indeces of databases in
13069         databases and __nss_database_custom arrays.  Declare
13070         __nss_database_custom.
13071         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
13072         to avoid using nscd when custom rules are installed.
13073         * nss/getXXbyYY_r.c: Likewise.
13074         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13075
13076         * nss/nss_files/files-parse.c: Whitespace fixes.
13077
13078 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
13079
13080         [BZ #11883]
13081         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
13082         * posix/fnmatch_loop.c: Likewise.
13083
13084 2010-07-17  Andi Kleen  <ak@linux.intel.com>
13085
13086         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
13087         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
13088         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
13089         * Versions.def [GLIBC_2.13]: Add.
13090
13091 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
13092
13093         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13094         Also fail if tpwd after pwuid call is NULL.
13095
13096 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13097
13098         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
13099         when converting to ms.
13100
13101 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13102
13103         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
13104         EOPNOTSUPP errors with ENOTTY.
13105         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
13106         EOPNOTSUPP errors with ENOTTY.
13107
13108 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
13109
13110         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
13111         Add strcasecmp_l-ssse3.
13112         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
13113         strcasecmp.
13114         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
13115         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
13116         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
13117
13118 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
13119
13120         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
13121
13122         * string/Makefile (strop-tests): Add strcasecmp.
13123         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
13124         strcasecmp_l-nonascii.
13125         (gen-as-const-headers): Add locale-defines.sym.
13126         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
13127         * sysdeps/x86_64/strcasecmp.S: New file.
13128         * sysdeps/x86_64/strcasecmp_l.S: New file.
13129         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
13130         * sysdeps/x86_64/locale-defines.sym: New file.
13131         * string/test-strcasecmp.c: New file.
13132
13133         * string/test-strcasestr.c: Test both ends of the range of characters.
13134         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
13135
13136 2010-07-29  Roland McGrath  <roland@redhat.com>
13137
13138         [BZ #11856]
13139         * manual/locale.texi (Yes-or-No Questions): Fix example code.
13140
13141 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
13142
13143         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
13144         for ld.so.
13145
13146 2010-07-27  Andreas Schwab  <schwab@redhat.com>
13147
13148         * manual/memory.texi (Malloc Tunable Parameters): Document
13149         M_PERTURB.
13150
13151 2010-07-26  Roland McGrath  <roland@redhat.com>
13152
13153         [BZ #11840]
13154         * configure.in (-fgnu89-inline check): Set and substitute
13155         gnu89_inline, not libc_cv_gnu89_inline.
13156         * configure: Regenerated.
13157         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
13158
13159 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
13160
13161         * string/test-strnlen.c: New file.
13162         * string/Makefile (strop-tests): Add strnlen.
13163         * string/tester.c (test_strnlen): Add a few more test cases.
13164         * string/tst-strlen.c: Better error reporting.
13165
13166         * sysdeps/x86_64/strnlen.S: New file.
13167
13168 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
13169
13170         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
13171         lower-latency instructions.
13172
13173 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
13174
13175         * string/test-strcasestr.c: New file.
13176         * string/test-strstr.c: New file.
13177         * string/Makefile (strop-tests): Add strstr and strcasestr.
13178         * string/str-two-way.h: Don't undefine MAX.
13179         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
13180
13181 2010-07-21  Andreas Schwab  <schwab@redhat.com>
13182
13183         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13184         strcasestr-nonascii.
13185         (CFLAGS-strcasestr-nonascii.c): Define.
13186         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
13187         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
13188         Remove unused attribute.
13189
13190 2010-07-20  Roland McGrath  <roland@redhat.com>
13191
13192         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
13193         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
13194         ld.so.cache was broken.  With it, there is no way to disable dsocaps
13195         like LD_HWCAP_MASK can disable hwcaps.
13196
13197 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13198
13199         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
13200
13201 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
13202
13203         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
13204         call in strcasestr.
13205         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
13206         __strcasestr_sse42_nonascii.
13207         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
13208         strcasestr-nonascii.c.
13209         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
13210
13211 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
13212
13213         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
13214         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
13215         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
13216         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
13217
13218 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
13219
13220         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
13221         fcntl.
13222
13223 2010-07-06  Andreas Schwab  <schwab@redhat.com>
13224
13225         [BZ #11577]
13226         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
13227         dl_signal_cerror.
13228
13229 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
13230
13231         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
13232         _PC_PIPE_BUF using F_GETPIPE_SZ.
13233
13234 2010-07-05  Roland McGrath  <roland@redhat.com>
13235
13236         * manual/arith.texi (Rounding Functions): Fix rint description
13237         implicit in round description.
13238
13239 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
13240
13241         * elf/Makefile: Fix linking for a few tests to make recent linker
13242         happy.
13243
13244 2010-06-30  Andreas Schwab  <schwab@redhat.com>
13245
13246         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
13247         $(common-objpfx)libc_nonshared.a.
13248
13249 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
13250
13251         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
13252         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
13253         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13254         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13255         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
13256         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
13257         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13258         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
13260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
13261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
13262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
13263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
13264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
13265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
13266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
13267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
13268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
13269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
13270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
13271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
13272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
13273         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
13274         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
13275         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
13276         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
13277         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
13278         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
13279         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
13280         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
13281         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
13282         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
13283         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
13284         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
13285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
13286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
13287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
13288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
13289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
13290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
13291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
13292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
13293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
13294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
13295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
13296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
13297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
13298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
13299
13300 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13301
13302         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
13303         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
13304         * string/memmove.c (memmove): Renamed to ...
13305         (MEMMOVE): ...this.  Default to memmove.
13306         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
13307         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
13308         (END_CHK): Define.
13309         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13310         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
13311         mempcpy-ssse3-back memmove-ssse3-back.
13312         * sysdeps/x86_64/multiarch/bcopy.S: New file .
13313         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
13314         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
13315         * sysdeps/x86_64/multiarch/memcpy.S: New file.
13316         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
13317         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
13318         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
13319         * sysdeps/x86_64/multiarch/memmove.c: New file.
13320         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
13321         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
13322         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
13323         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
13324         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
13325         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
13326         Define.
13327         (index_Fast_Copy_Backward): Define.
13328         (HAS_ARCH_FEATURE): Define.
13329         (HAS_FAST_REP_STRING): Define.
13330         (HAS_FAST_COPY_BACKWARD): Define.
13331
13332 2010-06-21  Andreas Schwab  <schwab@redhat.com>
13333
13334         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13335         Restore proper fallback handling.
13336
13337 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
13338
13339         [BZ #11701]
13340         * posix/group_member.c (__group_member): Correct checking loop.
13341
13342         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
13343         OOM in getpwuid_r correctly.  Return error number when the caller
13344         should return, otherwise -1.
13345         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
13346         call returning > 0 value.
13347         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
13348
13349 2010-06-07  Andreas Schwab  <schwab@redhat.com>
13350
13351         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
13352         libc_nonshared.a from targets in modules-names.
13353
13354 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
13355
13356         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
13357         requires it.
13358
13359 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
13360
13361         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
13362         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
13363         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
13364         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
13365
13366 2010-06-02  Andreas Schwab  <schwab@redhat.com>
13367
13368         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
13369
13370 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
13371
13372         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
13373         and F_GETPIPE_SZ.
13374         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13375         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13376         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13377         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13378         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13379         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
13380
13381 2010-06-14  Roland McGrath  <roland@redhat.com>
13382
13383         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
13384
13385 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
13386
13387         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
13388         __REDIRECT followed by __THROW.
13389         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
13390         * posix/getopt.h (getopt): Likewise.
13391
13392 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13393
13394         * hurd/lookup-at.c (__file_name_lookup_at): Accept
13395         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
13396         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
13397         in AT_FLAGS.
13398         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
13399         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
13400
13401 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
13402
13403         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
13404
13405 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
13406
13407         [BZ #11640]
13408         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13409         Properly check family and model.
13410
13411 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
13412
13413         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
13414
13415 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
13416
13417         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
13418
13419 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
13420
13421         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
13422         symbol reference.
13423
13424 2010-05-19  Andreas Schwab  <schwab@redhat.com>
13425
13426         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
13427         symbol reference.
13428
13429 2010-05-21  Andreas Schwab  <schwab@redhat.com>
13430
13431         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
13432         and internal_recvmmsg.
13433         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
13434         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
13435         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
13436         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
13437
13438         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
13439         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
13440         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
13441
13442 2010-05-20  Andreas Schwab  <schwab@redhat.com>
13443
13444         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
13445
13446 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
13447
13448         POWER7 optimizations.
13449         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
13450         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
13451
13452 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
13453
13454         * version.h: Update for 2.13 development version.
13455
13456 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
13457
13458         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
13459         exceptions.  Return 0.
13460
13461 2010-05-07  Roland McGrath  <roland@redhat.com>
13462
13463         * elf/ldconfig.c (main): Add a const.
13464
13465 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
13466
13467         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
13468         (args_options): Add no-idn option.
13469         (ahosts_keys_int): Add idn_flags to ai_flags.
13470         (parse_option): Handle 'i' option to clear idn_flags.
13471
13472         * malloc/malloc.c (_int_free): Possible race in the most recently
13473         added check.  Only act on the data if no current modification
13474         happened.
13475
13476 See ChangeLog.17 for earlier changes.