Fix locking in _IO_flush_all_lockp
[platform/upstream/glibc.git] / ChangeLog
1 2011-11-07  Andreas Schwab  <schwab@redhat.com>
2
3         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
4         handler when locking.
5
6         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7         Fix size of allocated buffer.
8
9 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10
11         [BZ #10103]
12         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13         declarations for long double functions.
14         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15
16         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
17
18 2011-11-03  Andreas Schwab  <schwab@redhat.com>
19
20         * nscd/nscd.c (main): Don't start AVC thread until credentials are
21         installed.
22
23         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
24         is disabled.
25
26 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27
28         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
29
30 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
31
32         * include/alloca.h (stackinfo_alloca_round): Define.
33         (extend_alloca): Use it.
34         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
35         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
36         here.
37
38         * scripts/check-local-headers.sh: Ignore libaudit.h.
39
40         * nscd/Makefile (extra-objs): Make recursively expanded.
41
42 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
43
44         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
45         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
46
47         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
48         * posix/tst-rfc3484-2.c: Likewise.
49         * posix/tst-rfc3484-3.c: Likewise.
50
51         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
52         process_vm_writev.
53         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
54         process_vm_writev.
55         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
56         process_vm_writev from libc using GLIBC_2.15 version.
57
58         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
59
60 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
61
62         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
63         stack usage.
64
65 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
66
67         [BZ #13367]
68         * nss/getent.c (initgroups_keys): Show error message in case no group
69         names are given.
70
71         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
72         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
73         __bump_nl_timestamp.
74         * nscd/connections (nscd_init): When host database is served open
75         netlink socket and request notification about configuration changes.
76         (main_loop_poll): Track netlink file descriptor and bump timestamp
77         in case data becomes available.
78         (main_loop_epoll): Likewise.
79         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
80         (database_pers_head): Add extra_data fileds.
81         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
82         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
83         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
84         Adjust caller.
85         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
86         in6ai data, call __free_in6ai.
87         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
88         Add -DHAVE_NETLINK.
89         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
90         interface information.  Reuse previous data if netlink timestamp
91         is not changed.
92         (__bump_nl_timestamp): New function.
93         (__free_in6ai): New function.
94
95 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
96
97         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
98         close_not_cancel_no_status here.
99         (__check_pf): Reorganize code a bit to not call close twice if OOM.
100
101 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
102
103         [BZ #13276]
104         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
105         return value.
106
107         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
108         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
109         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
110
111 2011-07-03  Andreas Jaeger  <aj@suse.de>
112
113         [BZ #10709]
114         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
115         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
116         * math/libm-test.inc (sin_test): Add test case.
117
118 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
119
120         [BZ #13337]
121         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
122         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
123
124         * elf/chroot_canon.c (chroot_canon): Cleanups.
125
126         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
127
128         [BZ #13335]
129         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
130         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
131
132         * string/test-strchr.c: Make usable for strchrnul testing.
133         * string/test-strchrnul.c: New file.
134         * string/Makefile (strop-tests): Add strchrnul.
135
136         * po/it.po: Update from translation team.
137         * po/es.po: Likewise.
138
139 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
140
141         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
142         the three constants needed as parameters.  Drop the others.
143         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
144         __m128i_strloadu_tolower.
145         Create and initialize variable zero and use it in all the places
146         where _mm_setzero_si128 was used.
147
148         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
149         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
150         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
151         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
152         anymore.
153         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
154         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
155         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
156         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
157         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
158         __mpranred, __mptan.
159         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
160         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
161         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
162         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
163         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
164         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
165         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
166         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
167         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
168
169 2011-10-28  Andreas Schwab  <schwab@redhat.com>
170
171         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
172         redefine if SHARED.
173         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
174
175         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
176         wide char related routines to wcsmbs subdir.
177
178 2011-10-27  Andreas Schwab  <schwab@redhat.com>
179
180         [BZ #13344]
181         * misc/sys/cdefs.h (__THROWNL): Define.
182         * posix/unistd.h: Use __THREADNL instead of __THREAD
183         for memory synchronization functions.
184
185 2011-10-26  Roland McGrath  <roland@hack.frob.com>
186
187         [BZ #13349]
188         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
189         doesn't exist.
190         * manual/stdio.texi (Obstack Streams): Node removed.
191
192 2011-10-26  Andreas Schwab  <schwab@redhat.com>
193
194         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
195         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
196         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
197
198         * math/math_private.h (math_force_eval): Allow non-addressable
199         arguments.
200         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
201
202 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
203
204         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
205         file is not needed.
206
207         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
208         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
209         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
210         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
211         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
212         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
213         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
214         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
215         Add AVX variants.
216         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
217         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
218         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
219         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
220         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
221         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
222         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
223         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
224         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
225         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
226         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
227         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
228         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
229         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
230         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
231         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
232         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
233         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
234         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
235
236         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
237         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
238
239         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
240         place.  Use VEX encoding when compiling for AVX.
241
242 2011-10-25  Andreas Schwab  <schwab@redhat.com>
243
244         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
245         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
246
247         * string/test-strchr.c (do_test): Don't generate NUL bytes.
248
249 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
250
251         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
252         useless if() expression.
253         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
254         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
255         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
256         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
257         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
258         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
259         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
260         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
261         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
262         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
263         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
264         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
265         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
266         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
267         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
268         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
269         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
270         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
271         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
272
273         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
274
275 2011-10-25  Andreas Schwab  <schwab@redhat.com>
276
277         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
278         condition.
279         * elf/dl-fini.c (_dl_sort_fini): Likewise.
280
281 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
282
283         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
284         .text section.  Avoid duplicate constants.
285         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
286         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
287         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
288         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
289         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
290         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
291         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
292         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
293         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
294         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
295         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
296         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
297         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
298         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
299         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
300         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
301         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
302         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
303         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
304         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
305         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
306         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
307         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
308         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
309         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
310         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
311         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
312         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
313         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
314         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
315         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
316         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
317         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
318         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
319         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
320         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
321         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
322         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
323         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
324         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
325         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
326         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
327         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
328         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
329         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
330
331 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
332
333         * sysdeps/x86_64/dla.h: Move to ...
334         * sysdeps/x86_64/fpu/dla.h: ...here.
335         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
336         situations.  Use __builtin_fma only for gcc 4.6 and up.
337
338         * config.make.in: Add have-mfma4 entry.
339         * configure.in: Substitute libc_cv_cc_fma4.
340         * math/Makefile (dbl-only-routines): Add sincostab.
341         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
342         Use __sincostab not sincos.
343         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
344         name is a macro.
345         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
346         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
347         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
348         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
349         using __copysign.
350         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
351         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
352         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
353         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
354         and __inv.
355         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
356         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
357         __copysign.
358         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
359         define aliases when function name is a macro.
360         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
361         sysdeps/ieee754/dbl-64/sincos.tbl.
362         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
363         fma4-enabled routines.
364         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
365         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
366         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
367         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
368         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
369         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
370         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
371         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
372         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
373         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
374         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
375         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
376         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
377         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
378         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
379         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
380         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
381         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
382         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
383         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
384         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
385         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
386         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
387         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
388         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
389         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
390         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
391         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
392         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
393         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
394
395         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
396         rename.
397         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
398         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
399         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
400         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
401         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
402         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
403         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
404         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
405
406 2011-10-24  Andreas Schwab  <schwab@redhat.com>
407
408         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
409
410 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
411
412         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
413
414         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
415         prediction.
416         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
417
418         * string/strnlen.c: Don't define STRNLEN, reverse logic.
419         Remove unused variable magic_bits.
420         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
421
422         * string/strnlen.c: Define and use STRNLEN macro.
423         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
424         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
425         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
426         * wcsmbs/wcslen.c: Define and use WCSLEN.
427         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
428         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
429         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
430         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
431         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
432         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
433         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
434
435 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
436
437         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
438         strnlen-sse2-no-bsf.
439         Rename strlen-no-bsf to strlen-sse2-no-bsf.
440         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
441         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
442         Add strnlen support.
443         (USE_AS_STRNLEN): New macro.
444         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
445         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
446         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
447         * sysdeps/x86_64/wcslen.S: New file.
448
449 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
450
451         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
452         XMM-moves are used for copying on small sizes.
453
454 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
455
456         * wcsmbs/Makefile (strop-tests): Add wcschr.
457         * wcsmbs/test-wcschr.c: New file.
458         * string/test-strchr.c: Update.
459         Add wcschr support.
460         (WIDE): New macro.
461
462 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
463
464         * wcsmbs/Makefile (strop-tests): Add wcslen.
465         * wcsmbs/test-wcslen.c: New file.
466         * string/test-strlen.c: Update.
467         Add wcslen support.
468         (WIDE): New macro.
469
470 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
471
472         * po/it.po: Update from translation team.
473
474 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
475
476         * sysdeps/x86_64/wcscmp.S: Update.
477         Fix wrong comparison semantics.
478         wcscmp shall use signed comparison not unsigned.
479         Don't use substraction to avoid overflow bug.
480         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
481         * wcsmbc/wcscmp.c: Likewise.
482         * string/test-strcmp.c: Likewise.
483         Add new tests to check cases with negative values.
484
485 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
486
487         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
488         * sysdeps/x86_64/dla.h: ...here.  New file.
489         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
490         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
491         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
492         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
493         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
494         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
495         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
496         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
497         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
498
499 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
500
501         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
502         __ynl_finite aliases.
503
504 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
505
506         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
507
508         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
509         define DLA_FMA.
510         [DLA_FMA] (EMULV): Use DLA_FMA.
511         [DLA_FMA] (MUL12): Use EMULV.
512         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
513         that are not needed.
514         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
515         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
516         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
517         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
518         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
519         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
520         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
521
522 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
523
524         * math/s_nan.c: Undef __nan.
525         * math/s_nanf.c: Undef __nanf.
526         * math/s_nanl.c: Undef __nanl.
527         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
528         "math_private.h".
529
530 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
531
532         * math/s_catan.c: Add branch predictions.
533         * math/s_catanf.c: Likewise.
534         * math/s_catanh.c: Likewise.
535         * math/s_catanhf.c: Likewise.
536         * math/s_catanhl.c: Likewise.
537         * math/s_catanl.c: Likewise.
538         * math/s_cexp.c: Likewise.
539         * math/s_cexpf.c: Likewise.
540         * math/s_cexpl.c: Likewise.
541         * math/s_clog.c: Likewise.
542         * math/s_clog10.c: Likewise.
543         * math/s_clog10f.c: Likewise.
544         * math/s_clog10l.c: Likewise.
545         * math/s_clogf.c: Likewise.
546         * math/s_clogl.c: Likewise.
547         * math/s_csqrt.c: Likewise.
548         * math/s_csqrtf.c: Likewise.
549         * math/s_csqrtl.c: Likewise.
550         * math/s_ctanf.c: Likewise.
551         * math/s_ctanh.c: Likewise.
552         * math/s_ctanhf.c: Likewise.
553         * math/s_ctanhl.c: Likewise.
554         * math/s_ctanl.c: Likewise.
555
556         * math/math_private.h: Define __nan, __nanf, __nanl.
557         * math/s_cacosh.c: Include <math_private.h>.
558         * math/s_cacoshl.c: Likewise.
559         * math/s_casinh.c: Likewise.
560         * math/s_casinhf.c: Likewise.
561         * math/s_casinhl.c: Likewise.
562         * math/s_ccos.c: Rely entire on ccosh.
563         * math/s_ccosf.c: Rely entire on ccoshf.
564         * math/s_ccosl.c: Rely entirely on ccoshl.
565         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
566         Remove tests for FE_INVALID.
567         * math/s_ccoshf.c: Likewise.
568         * math/s_ccoshl.c: Likewise.
569         * math/s_csin.c: Likewise.
570         * math/s_csinf.c: Likewise.
571         * math/s_csinh.c Likewise.
572         * math/s_csinhf.c: Likewise.
573         * math/s_csinhl.c: Likewise.
574         * math/s_csinl.c: Likewise.
575         * math/s_ctan.c: Likewise.
576         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
577         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
578         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
579
580 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
581
582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
583         compilation problems.
584
585         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
586         __builtin_expect.
587
588 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
589
590         * sysdeps/i386/configure.in: Test for -mfma4 option.
591         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
592         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
593         COMMON_CPUID_INDEX_80000001.
594         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
595         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
596         use it if FMA3 is not supported.
597         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
598
599         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
600         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
601
602 2011-10-20  Andreas Schwab  <schwab@redhat.com>
603
604         [BZ #12892]
605         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
606         it would create a cycle with a link time dependency.
607
608 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
609
610         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
611         instruction.
612         * string/Makefile (strop-tests): Add rawmemchr.
613         * string/test-rawmemchr.c: New file.
614
615         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
616         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
617         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
618         when compiling str{,n}casecmp and when AVX is available.  Hook up
619         new optimized code in initializers.
620
621 2011-10-19  Andreas Schwab  <schwab@redhat.com>
622
623         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
624         __feraiseexcept instead of feraiseexcept.
625
626 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
627
628         * math/math_private.h: Define defaults for libc_fetestexcept and
629         libc_feupdateenv.
630         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
631         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
632         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
633         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
634         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
635         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
636         libc_fetestexcept and libc_feupdateenv.
637
638         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
639         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
640         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
641         * sysdeps/x86_64/fpu/math_private.h: Define special version of
642         libc_feholdexcept_setround.
643
644         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
645         Add s_nearbyint-c and s_nearbyintf-c.
646         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
647         nearbyintf inlines.
648         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
649         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
650         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
651         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
652
653         * math/math_private.h: Define defaults for libc_fegetround,
654         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
655         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
656         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
657         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
658         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
659         standard functions.
660         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
661         Remove comments and hacks for old compiler versions.
662         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
663         libc_fegetround, libc_fesetround, libc_feholdexcept, and
664         libc_feholdexceptl.
665
666 2011-10-18  Andreas Schwab  <schwab@redhat.com>
667
668         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
669         (__feraiseexcept_renamed): Add __NTH.
670         (feraiseexcept): Add __NTH.  Rename local variables to fix
671         namespace violations.
672
673 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
674
675         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
676
677         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
678
679         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
680         recently added interfaces.
681         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
682
683         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
684         about macro parameter expansion.
685
686         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
687         __NO_MATH_INLINES is defined.  Cleanups.
688
689         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
690         and __floorf is target has SSE4.1.
691         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
692         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
693         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
694         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
695
696         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
697         name.
698         (floorf): Likewise.
699
700         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
701
702 2011-10-17  Andreas Schwab  <schwab@redhat.com>
703
704         * misc/sys/cdefs.h: Fix last change.
705
706         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
707         database lookup.
708
709 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
710
711         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
712
713         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
714         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
715         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
716         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
717         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
718         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
719         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
720         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
721         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
722         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
723         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
724         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
725         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
726         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
727         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
728         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
729         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
730         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
731         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
732         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
733         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
734         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
735
736         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
737         ceil, ceilf, floor, floorf.
738
739         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
740         Perform IRELATIVE relocations last.
741
742         * elf/do-rel.h: Add another parameter nrelative, replacing the
743         local variable with the same name.  Change name of the function
744         to end in Rel or Rela (uppercase).
745         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
746         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
747         elf_dynamic_do_##reloc function.
748
749 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
750
751         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
752         is sufficient, at least on modern CPUs.
753
754         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
755
756         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
757         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
758
759         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
760         __expl_finite.
761         * math/bits/math-finite.h: Add entries for exp.
762         * math/e_expl.c: Add __*_finite alias.
763         * sysdeps/i386/fpu/e_exp.S: Likewise.
764         * sysdeps/i386/fpu/e_expf.S: Likewise.
765         * sysdeps/i386/fpu/e_expl.c: Likewise.
766         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
767         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
768         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
769         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
770         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
771         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
772         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
773
774         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
775         is sufficient, at least on modern CPUs.
776
777         * ctype/ctype-info.c (__ctype_init): Define.
778         * include/ctype.h (__ctype_init): Declare.
779         (__ctype_b_loc): The variable is always initialized.
780         (__ctype_toupper_loc): Likewise.
781         (__ctype_tolower_loc): Likewise.
782         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
783         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
784
785 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
786
787         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
788
789         * configure.in: Also look in $cxxmachine/include for C++ system
790         headers.
791
792 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
793
794         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
795         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
796         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
797         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
798         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
799         (USE_AS_WMEMCMP): New macro.
800         Fixing indents.
801         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
802         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
803         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
804         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
805         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
806         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
807         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
808         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
809         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
810         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
811         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
812         (USE_AS_WMEMCMP): New macro.
813         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
814         * sysdeps/string/test-memcmp.c: Update.
815         Fix simple_wmemcmp.
816         Add new tests.
817         * wcsmbs/wmemcmp.c: Update.
818         (WMEMCMP): New macro.
819         Fix overflow bug.
820
821 2011-10-12  Andreas Jaeger  <aj@suse.de>
822
823         [BZ #13268]
824         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
825
826 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
827
828         * libio/iofwide.c (do_length): Avoid warning.
829
830         * ctype/ctype.h (__isctype_f): Add missing __THROW.
831
832 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
833
834         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
835
836         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
837         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
838         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
839         * sysdeps/i386/i686/fpu/e_log.S: New file.
840         * sysdeps/i386/i686/fpu/e_logf.S: New file.
841         * sysdeps/i386/i686/fpu/e_logl.S: New file.
842
843         * ctype/ctype.h: Add support for inlined isXXX functions when
844         compiling C++ code.
845
846 2011-10-14  Andreas Schwab  <schwab@redhat.com>
847
848         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
849
850         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
851
852 2011-10-13  Roland McGrath  <roland@hack.frob.com>
853
854         [BZ #13291]
855         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
856
857 2011-10-13  Andreas Schwab  <schwab@redhat.com>
858
859         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
860         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
861         feraiseexcept.
862
863         * sysdeps/x86_64/memrchr.S: Check for zero size.
864
865         * string/stratcliff.c: Add memrchr tests.
866
867 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
868
869         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
870         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
871         rawmemchr-sse2 rawmemchr-sse2-bsf.
872         * sysdeps/i386/i686/multiarch/memchr.S: New file.
873         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
874         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
875         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
876         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
877         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
878         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
879         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
880         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
881         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
882         * string/memrchr.c (MEMRCHR): New macro.
883
884 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
885
886         Add integration with gcc's -ffinite-math-only and optimize wrapper
887         functions in libm.
888         * Versions.def: Define GLIBC_2.15 version for libm.
889         * math/Makefile (headers): Add bits/math-finite.h.
890         * math/bits/math-finite.h: New file.
891         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
892         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
893         * math/e_acoshl.c: Add __*_finite alias.
894         * math/e_acosl.c: Likewise.
895         * math/e_asinl.c: Likewise.
896         * math/e_atan2l.c: Likewise.
897         * math/e_atanhl.c: Likewise.
898         * math/e_coshl.c: Likewise.
899         * math/e_exp10.c: Likewise.
900         * math/e_exp10f.c: Likewise.
901         * math/e_exp10l.c: Likewise.
902         * math/e_exp2l.c: Likewise.
903         * math/e_fmodl.c: Likewise.
904         * math/e_gammal_r.c: Likewise.
905         * math/e_hypotl.c: Likewise.
906         * math/e_j0l.c: Likewise.
907         * math/e_j1l.c: Likewise.
908         * math/e_jnl.c: Likewise.
909         * math/e_lgammal_r.c: Likewise.
910         * math/e_log10l.c: Likewise.
911         * math/e_log2l.c: Likewise.
912         * math/e_logl.c: Likewise.
913         * math/e_powl.c: Likewise.
914         * math/e_sinhl.c: Likewise.
915         * math/e_sqrtl.c: Likewise.
916         * math/e_scalb.c: Completely rewritten and optimized.
917         * math/e_scalbf.c: Likewise.
918         * math/e_scalbl.c: Likewise.
919         * math/w_acos.c: Likewise.
920         * math/w_acosf.c: Likewise.
921         * math/w_acosl.c: Likewise.
922         * math/w_acosh.c: Likewise.
923         * math/w_acoshf.c: Likewise.
924         * math/w_acoshl.c: Likewise.
925         * math/w_asin.c: Likewise.
926         * math/w_asinf.c: Likewise.
927         * math/w_asinl.c: Likewise.
928         * math/w_atan2.c: Likewise.
929         * math/w_atan2f.c: Likewise.
930         * math/w_atan2l.c: Likewise.
931         * math/w_atanh.c: Likewise.
932         * math/w_atanhf.c: Likewise.
933         * math/w_atanhl.c: Likewise.
934         * math/w_exp10.c: Likewise.
935         * math/w_exp10f.c: Likewise.
936         * math/w_exp10l.c: Likewise.
937         * math/w_fmod.c: Likewise.
938         * math/w_fmodf.c: Likewise.
939         * math/w_fmodl.c: Likewise.
940         * math/w_j0.c: Likewise.
941         * math/w_j0f.c: Likewise.
942         * math/w_j0l.c: Likewise.
943         * math/w_j1.c: Likewise.
944         * math/w_j1f.c: Likewise.
945         * math/w_j1l.c: Likewise.
946         * math/w_jn.c: Likewise.
947         * math/w_jnf.c: Likewise.
948         * math/w_log.c: Likewise.
949         * math/w_logf.c: Likewise.
950         * math/w_logl.c: Likewise.
951         * math/w_log10.c: Likewise.
952         * math/w_log10f.c: Likewise.
953         * math/w_log10l.c: Likewise.
954         * math/w_log2.c: Likewise.
955         * math/w_log2f.c: Likewise.
956         * math/w_log2l.c: Likewise.
957         * math/w_pow.c: Likewise.
958         * math/w_powf.c: Likewise.
959         * math/w_powl.c: Likewise.
960         * math/w_remainder.c: Likewise.
961         * math/w_remainderf.c: Likewise.
962         * math/w_remainderl.c: Likewise.
963         * math/w_scalb.c: Likewise.
964         * math/w_scalbf.c: Likewise.
965         * math/w_scalbl.c: Likewise.
966         * math/w_sqrt.c: Likewise.
967         * math/w_sqrtf.c: Likewise.
968         * math/w_sqrtl.c: Likewise.
969         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
970         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
971         used.
972         * math/math_private.h: Declare __kernel_standard_f.
973         * math/w_cosh.c: Remove cruft and optimize a bit.
974         * math/w_coshf.c: Likewise.
975         * math/w_coshl.c: Likewise.
976         * math/w_exp2.c: Likewise.
977         * math/w_exp2f.c: Likewise.
978         * math/w_exp2l.c: Likewise.
979         * math/w_hypot.c: Likewise.
980         * math/w_hypotf.c: Likewise.
981         * math/w_hypotl.c: Likewise.
982         * math/w_lgamma.c: Likewise.
983         * math/w_lgamma_r.c: Likewise.
984         * math/w_lgammaf.c: Likewise.
985         * math/w_lgammaf_r.c: Likewise.
986         * math/w_lgammal.c: Likewise.
987         * math/w_lgammal_r.c: Likewise.
988         * math/w_sinh.c: Likewise.
989         * math/w_sinhf.c: Likewise.
990         * math/w_sinhl.c: Likewise.
991         * math/w_tgamma.c: Likewise.
992         * math/w_tgammaf.c: Likewise.
993         * math/w_tgammal.c: Likewise.
994         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
995         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
996         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
997         Minor optimizations.  Pretty printing.  Remove cruft.
998         * sysdeps/i386/fpu/e_acosf.S: Likewise.
999         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1000         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1001         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1002         * sysdeps/i386/fpu/e_acosl.c: Likewise.
1003         * sysdeps/i386/fpu/e_asin.S: Likewise.
1004         * sysdeps/i386/fpu/e_asinf.S: Likewise.
1005         * sysdeps/i386/fpu/e_atan2.S: Likewise.
1006         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
1007         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
1008         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1009         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1010         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1011         * sysdeps/i386/fpu/e_exp10.S: Likewise.
1012         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
1013         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
1014         * sysdeps/i386/fpu/e_exp2.S: Likewise.
1015         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
1016         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
1017         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1018         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
1019         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1020         * sysdeps/i386/fpu/e_hypot.S: Likewise.
1021         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
1022         * sysdeps/i386/fpu/e_log.S: Likewise.
1023         * sysdeps/i386/fpu/e_log10.S: Likewise.
1024         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1025         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1026         * sysdeps/i386/fpu/e_log2.S: Likewise.
1027         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1028         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1029         * sysdeps/i386/fpu/e_logf.S: Likewise.
1030         * sysdeps/i386/fpu/e_logl.S: Likewise.
1031         * sysdeps/i386/fpu/e_pow.S: Likewise.
1032         * sysdeps/i386/fpu/e_powf.S: Likewise.
1033         * sysdeps/i386/fpu/e_powl.S: Likewise.
1034         * sysdeps/i386/fpu/e_remainder.S: Likewise.
1035         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
1036         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
1037         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1038         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1039         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1040         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
1041         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
1042         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
1043         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
1044         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1045         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1046         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
1047         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
1048         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
1049         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
1050         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
1051         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
1052         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1053         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
1054         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
1055         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1056         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
1057         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
1058         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1059         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1060         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
1061         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1062         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1063         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
1064         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
1065         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
1066         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
1067         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
1068         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
1069         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
1070         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
1071         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
1072         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
1073         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
1074         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
1075         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
1076         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1077         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
1078         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
1079         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
1080         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
1081         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
1082         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
1083         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
1084         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
1085         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
1086         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1087         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1088         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
1089         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
1090         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1091         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
1092         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1093         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
1094         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
1095         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1096         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1097         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1098         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1099         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1100         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1101         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1102         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
1103         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1104         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
1105         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
1106         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
1107         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
1108         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
1109         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
1110         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
1111         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
1112         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
1113         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
1114         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
1115         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
1116         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
1117         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
1118         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
1119         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
1120         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
1121         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1122         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
1123         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
1124         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
1125         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
1126         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
1127         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1128         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1129         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1130         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1131         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
1132         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
1133         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
1134         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
1135         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1136         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
1137         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1138         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
1139         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
1140         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
1141         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
1142         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
1143         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
1144         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
1145         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
1146         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
1147         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1148         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1149         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1150         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1151         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
1152         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1153         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
1154         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
1155         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
1156         (__isnanf): Likewise.
1157         (__isinf_ns): Likewise.
1158         (__isinf_nsf): Likewise.
1159         (__finite): Likewise.
1160         (__finitef): Likewise.
1161         (__ieee754_sqrt): Define as macro.
1162         (__ieee754_sqrtf): Define as macro.
1163         (__ieee754_sqrtl): Define as macro.
1164         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
1165         inlined copy.
1166         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
1167         __FINITE_MATH_ONLY__ consistent.
1168         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
1169
1170 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
1171
1172         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
1173         of rawmemchr.
1174
1175         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
1176
1177 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
1178
1179         * po/ja.po: Update from translation team.
1180
1181 2011-10-08  Roland McGrath  <roland@hack.frob.com>
1182
1183         * locale/programs/locarchive.c (prepare_address_space): New function.
1184         (create_archive, enlarge_archive, open_archive): Use it.
1185
1186         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
1187         inside [SHARED], where it is used.
1188
1189         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
1190
1191         * nss/getent.c (netgroup_keys): Remove unused variable.
1192         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
1193
1194 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
1195
1196         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
1197         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
1198         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
1199         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
1200         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
1201         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
1202         * math/Makefile (libm-calls): Add s_isinf_ns.
1203         * math/divtc3.c: Use __isinf_nsl instead of isinf.
1204         * math/multc3.c: Likewise.
1205         * math/s_casin.c: Likewise.
1206         * math/s_casinf.c: Likewise.
1207         * math/s_casinl.c: Likewise.
1208         * math/s_ccos.c: Likewise.
1209         * math/s_ccosf.c: Likewise.
1210         * math/s_ccosl.c: Likewise.
1211         * math/s_ctan.c: Likewise.
1212         * math/s_ctanf.c: Likewise.
1213         * math/s_ctanh.c: Likewise.
1214         * math/s_ctanhf.c: Likewise.
1215         * math/s_ctanhl.c: Likewise.
1216         * math/s_ctanl.c: Likewise.
1217         * math/w_fmod.c: Likewise.
1218         * math/w_fmodf.c: Likewise.
1219         * math/w_fmodl.c: Likewise.
1220         * math/w_remainder.c: Likewise.
1221         * math/w_remainderf.c: Likewise.
1222         * math/w_remainderl.c: Likewise.
1223         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
1224         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
1225         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
1226         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
1227         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
1228         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
1229         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
1230         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
1231
1232         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
1233         of the number.
1234         * stdio-common/printf_fphex.c: Likewise.
1235         * stdio-common/printf_size.c: Likewise.
1236
1237         * math/e_exp10.c: Include math_private.h using <...> not "...".
1238         * math/e_exp10f.c: Likewise.
1239         * math/e_exp10l.c: Likewise.
1240         * math/e_exp2l.c: Likewise.
1241         * math/e_j0l.c: Likewise.
1242         * math/e_j1l.c: Likewise.
1243         * math/e_jnl.c: Likewise.
1244         * math/e_lgammal_r.c: Likewise.
1245         * math/e_rem_pio2l.c: Likewise.
1246         * math/e_scalb.c: Likewise.
1247         * math/e_scalbf.c: Likewise.
1248         * math/e_scalbl.c: Likewise.
1249         * math/k_cosl.c: Likewise.
1250         * math/k_sinl.c: Likewise.
1251         * math/k_tanl.c: Likewise.
1252         * math/s_cacoshf.c: Likewise.
1253         * math/s_catan.c: Likewise.
1254         * math/s_catanf.c: Likewise.
1255         * math/s_catanh.c: Likewise.
1256         * math/s_catanhf.c: Likewise.
1257         * math/s_catanhl.c: Likewise.
1258         * math/s_catanl.c: Likewise.
1259         * math/s_ccosh.c: Likewise.
1260         * math/s_ccoshf.c: Likewise.
1261         * math/s_ccoshl.c: Likewise.
1262         * math/s_cexp.c: Likewise.
1263         * math/s_cexpf.c: Likewise.
1264         * math/s_cexpl.c: Likewise.
1265         * math/s_clog.c: Likewise.
1266         * math/s_clog10.c: Likewise.
1267         * math/s_clog10f.c: Likewise.
1268         * math/s_clog10l.c: Likewise.
1269         * math/s_clogf.c: Likewise.
1270         * math/s_clogl.c: Likewise.
1271         * math/s_csin.c: Likewise.
1272         * math/s_csinf.c: Likewise.
1273         * math/s_csinh.c: Likewise.
1274         * math/s_csinhf.c: Likewise.
1275         * math/s_csinhl.c: Likewise.
1276         * math/s_csinl.c: Likewise.
1277         * math/s_csqrt.c: Likewise.
1278         * math/s_csqrtf.c: Likewise.
1279         * math/s_csqrtl.c: Likewise.
1280         * math/s_ctan.c: Likewise.
1281         * math/s_ctanf.c: Likewise.
1282         * math/s_ctanh.c: Likewise.
1283         * math/s_ctanhf.c: Likewise.
1284         * math/s_ctanhl.c: Likewise.
1285         * math/s_ctanl.c: Likewise.
1286         * math/s_ldexp.c: Likewise.
1287         * math/s_ldexpf.c: Likewise.
1288         * math/s_ldexpl.c: Likewise.
1289         * math/s_significand.c: Likewise.
1290         * math/s_significandf.c: Likewise.
1291         * math/s_significandl.c: Likewise.
1292         * math/w_acos.c: Likewise.
1293         * math/w_acosf.c: Likewise.
1294         * math/w_acosh.c: Likewise.
1295         * math/w_acoshf.c: Likewise.
1296         * math/w_acoshl.c: Likewise.
1297         * math/w_acosl.c: Likewise.
1298         * math/w_asin.c: Likewise.
1299         * math/w_asinf.c: Likewise.
1300         * math/w_asinl.c: Likewise.
1301         * math/w_atan2.c: Likewise.
1302         * math/w_atan2f.c: Likewise.
1303         * math/w_atan2l.c: Likewise.
1304         * math/w_atanh.c: Likewise.
1305         * math/w_atanhf.c: Likewise.
1306         * math/w_atanhl.c: Likewise.
1307         * math/w_cosh.c: Likewise.
1308         * math/w_coshf.c: Likewise.
1309         * math/w_coshl.c: Likewise.
1310         * math/w_dremf.c: Likewise.
1311         * math/w_exp10.c: Likewise.
1312         * math/w_exp10f.c: Likewise.
1313         * math/w_exp10l.c: Likewise.
1314         * math/w_exp2.c: Likewise.
1315         * math/w_exp2f.c: Likewise.
1316         * math/w_fmod.c: Likewise.
1317         * math/w_fmodf.c: Likewise.
1318         * math/w_fmodl.c: Likewise.
1319         * math/w_hypot.c: Likewise.
1320         * math/w_hypotf.c: Likewise.
1321         * math/w_hypotl.c: Likewise.
1322         * math/w_j0.c: Likewise.
1323         * math/w_j0f.c: Likewise.
1324         * math/w_j0l.c: Likewise.
1325         * math/w_j1.c: Likewise.
1326         * math/w_j1f.c: Likewise.
1327         * math/w_j1l.c: Likewise.
1328         * math/w_jn.c: Likewise.
1329         * math/w_jnf.c: Likewise.
1330         * math/w_jnl.c: Likewise.
1331         * math/w_lgamma.c: Likewise.
1332         * math/w_lgamma_r.c: Likewise.
1333         * math/w_lgammaf.c: Likewise.
1334         * math/w_lgammaf_r.c: Likewise.
1335         * math/w_lgammal.c: Likewise.
1336         * math/w_lgammal_r.c: Likewise.
1337         * math/w_log.c: Likewise.
1338         * math/w_log10.c: Likewise.
1339         * math/w_log10f.c: Likewise.
1340         * math/w_log10l.c: Likewise.
1341         * math/w_log2.c: Likewise.
1342         * math/w_log2f.c: Likewise.
1343         * math/w_log2l.c: Likewise.
1344         * math/w_logf.c: Likewise.
1345         * math/w_logl.c: Likewise.
1346         * math/w_pow.c: Likewise.
1347         * math/w_powf.c: Likewise.
1348         * math/w_powl.c: Likewise.
1349         * math/w_remainder.c: Likewise.
1350         * math/w_remainderf.c: Likewise.
1351         * math/w_remainderl.c: Likewise.
1352         * math/w_scalb.c: Likewise.
1353         * math/w_scalbf.c: Likewise.
1354         * math/w_scalbl.c: Likewise.
1355         * math/w_sinh.c: Likewise.
1356         * math/w_sinhf.c: Likewise.
1357         * math/w_sinhl.c: Likewise.
1358         * math/w_sqrt.c: Likewise.
1359         * math/w_sqrtf.c: Likewise.
1360         * math/w_sqrtl.c: Likewise.
1361         * math/w_tgamma.c: Likewise.
1362         * math/w_tgammaf.c: Likewise.
1363         * math/w_tgammal.c: Likewise.
1364
1365         * po/ja.po: Update from translation team.
1366
1367 2011-09-29  Andreas Jaeger  <aj@suse.de>
1368
1369         [BZ #13179]
1370         * sunrpc/netname.c (netname2host): Fix logic.
1371
1372         [BZ #6779]
1373         [BZ #6783]
1374         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
1375         correctly.
1376         * math/w_remainder.c (__remainder): Likewise.
1377         * math/w_remainderf.c (__remainderf): Likewise.
1378         * math/libm-test.inc (remainder_test): Add test cases.
1379
1380 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1381
1382         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
1383         sdiv_qrnnd.
1384
1385 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
1386
1387         * string/test-memcmp.c: Avoid unncessary #defines.
1388         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
1389
1390 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1391
1392         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
1393         Use new sse2 version for core i3 - i7 as it's faster
1394         than sse42 version.
1395         (bit_Prefer_PMINUB_for_stringop): New.
1396         * sysdeps/x86_64/rawmemchr.S: Update.
1397         Replace with faster SSE2 version.
1398         * sysdeps/x86_64/memrchr.S: New file.
1399         * sysdeps/x86_64/memchr.S: Update.
1400         Replace with faster SSE2 version.
1401
1402 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
1403
1404         * elf/dl-load.c (lose): Add cast to avoid warning.
1405
1406 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
1407
1408         * po/ca.po: Update from translation team.
1409
1410         * inet/getnetgrent_r.c: Hook up nscd.
1411         * nscd/Makefile (routines): Add nscd_netgroup.
1412         (nscd-modules): Add netgroupcache.
1413         (CFLAGS-netgroupcache.c): Define.
1414         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
1415         (cache_search): Add const to second parameter.
1416         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
1417         INNETGR.
1418         (dbs): Add netgrdb entry.
1419         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
1420         (verify_persistent_db): Handle netgrdb.
1421         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
1422         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
1423         GETFDNETGR.
1424         (netgroup_response_header): Define.
1425         (innetgroup_response_header): Define.
1426         (datahead): Add netgroup_response_header and innetgroup_response_header
1427         elements.
1428         * nscd/nscd.conf: Add entries for netgroup cache.
1429         * nscd/nscd.h (dbtype): Add netgrdb.
1430         (_PATH_NSCD_NETGROUP_DB): Define.
1431         (netgroup_iov_disabled): Declare.
1432         (xmalloc, xcalloc, xrealloc): Move declarations here.
1433         (cache_search): Adjust prototype.
1434         Add netgroup-related prototypes.
1435         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
1436         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
1437         (__nscd_innetgr): Declare.
1438         * nscd/selinux.c (perms): Use access_vector_t as element type and
1439         add netgroup-related initializers.
1440         * nscd/netgroupcache.c: New file.
1441         * nscd/nscd_netgroup.c: New file.
1442         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
1443         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
1444         For four parameters use innetgr.
1445         * nss/nss_files/files-init.c: Add definition and callback for netgr.
1446         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
1447         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
1448         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
1449
1450         * nscd/connections.c (register_traced_file): Don't register file
1451         for disabled databases.
1452
1453 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
1454
1455         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
1456
1457         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
1458         from tree and freeing node.
1459
1460 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
1461
1462         * nss/nsswitch.c (__nss_database_lookup): Handle
1463         nss_parse_service_list out of memory case.
1464
1465 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
1466
1467         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
1468         out of memory case.
1469
1470 2011-10-04  Andreas Schwab  <schwab@redhat.com>
1471
1472         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
1473         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
1474         pass it down.
1475         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
1476         elf_machine_rela, elf_machine_lazy_rel.
1477         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
1478         (ELF_DYNAMIC_DO_REL): Likewise.
1479         (ELF_DYNAMIC_DO_RELA): Likewise.
1480         (ELF_DYNAMIC_RELOCATE): Likewise.
1481         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
1482         to ELF_DYNAMIC_DO_REL.
1483         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
1484         (dl_main): In trace mode always set __RTLD_NOIFUNC.
1485         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
1486         elf_machine_rela.
1487         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
1488         skip_ifunc, don't call ifunc function if non-zero.
1489         (elf_machine_rela): Likewise.
1490         (elf_machine_lazy_rel): Likewise.
1491         (elf_machine_lazy_rela): Likewise.
1492         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
1493         (elf_machine_lazy_rel): Likewise.
1494         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
1495         Likewise.
1496         (elf_machine_lazy_rel): Likewise.
1497         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1498         Likewise.
1499         (elf_machine_lazy_rel): Likewise.
1500         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
1501         (elf_machine_lazy_rel): Likewise.
1502         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1503         (elf_machine_lazy_rel): Likewise.
1504         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1505         (elf_machine_lazy_rel): Likewise.
1506         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1507         (elf_machine_lazy_rel): Likewise.
1508         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1509         (elf_machine_lazy_rel): Likewise.
1510         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1511         (elf_machine_lazy_rel): Likewise.
1512
1513 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
1514
1515         * nss/nss_files/files-init.c (_nss_files_init): Use static
1516         initialization for all the *_traced_file variables.
1517
1518 2011-09-28  Andreas Schwab  <schwab@redhat.com>
1519
1520         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
1521
1522 2011-09-27  Roland McGrath  <roland@hack.frob.com>
1523
1524         [BZ #13226]
1525         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
1526
1527 2011-09-27  Andreas Schwab  <schwab@redhat.com>
1528
1529         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
1530         Reread the line before reparsing it.
1531
1532 2011-09-26  Andreas Schwab  <schwab@redhat.com>
1533
1534         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1535
1536 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
1537             Maxim Kuvyrkov  <maxim@codesourcery.com>
1538             Joseph Myers  <joseph@codesourcery.com>
1539
1540         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
1541         if needed for __stack_chk_guard.
1542
1543 2011-09-19  Roland McGrath  <roland@hack.frob.com>
1544
1545         * sysdeps/posix/spawni.c (script_execute): Always define it.
1546         It will be optimized away if unused.
1547         (maybe_script_execute): New function.
1548         (__spawni): Call it.
1549
1550         * Makerules: Don't include tls.make.
1551         (config-tls): Always set to thread.
1552         * tls.make.c: File removed.
1553
1554 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
1555
1556         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
1557         * config.make.in (CPPFLAGS-config): New substituted variable.
1558
1559 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
1560
1561         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
1562
1563         [BZ #13192]
1564         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
1565         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
1566
1567 2011-09-15  Roland McGrath  <roland@hack.frob.com>
1568
1569         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
1570         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
1571         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
1572         (CALL_FAIL): Likewise.
1573         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
1574         (CALL_FAIL): Macro removed.
1575         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
1576
1577 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
1578
1579         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
1580         for __FINITE_MATH_ONLY__ == 1.
1581
1582 2011-09-15  Andreas Schwab  <schwab@redhat.com>
1583
1584         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
1585         __ieee754_sqrt instead of sqrt.
1586         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
1587         __ieee754_sqrtf instead of sqrtf.
1588         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
1589         __floorf instead of floorf.
1590         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
1591         __floorf, __truncf instead of floorf, truncf.
1592
1593 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
1594
1595         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
1596
1597         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
1598         __extern_always_inline.
1599         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
1600         32-bit.
1601
1602 2011-09-14  Andreas Schwab  <schwab@redhat.com>
1603
1604         * elf/rtld.c (dl_main): Also relocate in dependency order when
1605         doing symbol dependency testing.
1606
1607 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
1608
1609         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1610         Always define `refsym'.
1611
1612 2011-09-13  Andreas Schwab  <schwab@redhat.com>
1613
1614         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
1615         (__FD_ELT): Renamed from __FDELT.
1616         * misc/bits/select2.h (__FD_ELT): Likewise.
1617         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
1618         __FD_MASK instead of __FDELT, __FDMASK.
1619         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
1620         Likewise.
1621         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
1622         Likewise.
1623
1624         * elf/Makefile (gen-ldd): Fix pattern.
1625
1626         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
1627         (init_tls): Likewise.
1628
1629 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
1630
1631         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
1632
1633 2011-09-12  Andreas Schwab  <schwab@redhat.com>
1634
1635         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
1636         `struct cmsghdr *' instead of `void *'.
1637         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
1638         Likewise.
1639
1640 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
1641
1642         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
1643         if non-absolute.
1644         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
1645         ldd_rewrite_script.
1646
1647 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
1648
1649         * configure.in: Remove --with-tls option.
1650         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
1651         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
1652         out in case it is missing.
1653         * sysdeps/ia64/elf/configure.in: Likewise.
1654         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
1655         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
1656         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
1657         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
1658         * sysdeps/sh/elf/configure.in: Likewise.
1659         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
1660         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
1661         * sysdeps/x86_64/elf/configure.in: Likewise.
1662         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
1663         * sysdeps/mach/hurd/tls.h: Likewise.
1664
1665         [BZ #13067]
1666         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
1667
1668         [BZ #13090]
1669         * configure.in: Fix use of AC_INIT.
1670
1671         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
1672
1673 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
1674
1675         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
1676         __set_errno.
1677         * malloc/hooks.c: Likewise.
1678
1679         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
1680         variables statically.
1681         (narenas): Initialize.
1682         (list_lock): Initialize.
1683         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
1684         initializtion of main_arena and list_lock.  Small cleanups.
1685         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
1686         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
1687         Add initializers to main_arena and mp_.
1688         (malloc_state): Remove pagesize member.  Change all users to use
1689         GLRO(dl_pagesize).
1690
1691         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
1692         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
1693         is always initialized.
1694
1695         * malloc/malloc.c: Removed unused configurations and dead code.
1696         * malloc/arena.c: Likewise.
1697         * malloc/hooks.c: Likewise.
1698         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
1699
1700         * include/tls.h: Removed.  USE___THREAD must always be defined.
1701         * bits/libc-tsd.h: Don't handle !USE___THREAD.
1702         * elf/dl-libc.c: Likewise.
1703         * elf/dl-tsd.c: Likewise.
1704         * include/errno.h: Likewise.
1705         * include/netdb.h: Likewise.
1706         * include/resolv.h: Likewise.
1707         * inet/herrno-loc.c: Likewise.
1708         * inet/herrno.c: Likewise.
1709         * malloc/arena.c: Likewise.
1710         * malloc/hooks.c: Likewise.
1711         * malloc/malloc.c: Likewise.
1712         * resolv/res-state.c: Likewise.
1713         * resolv/res_libc.c: Likewise.
1714         * sysdeps/i386/dl-machine.h: Likewise.
1715         * sysdeps/ia64/dl-machine.h: Likewise.
1716         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
1717         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
1718         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1719         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1720         * sysdeps/sh/dl-machine.h: Likewise.
1721         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1722         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1723         * sysdeps/unix/i386/sysdep.S: Likewise.
1724         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1725         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
1726         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1727         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
1728         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1729         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1730         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
1731         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
1732         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1733         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1734         * sysdeps/unix/x86_64/sysdep.S: Likewise.
1735         * sysdeps/x86_64/dl-machine.h: Likewise.
1736         * tls.make.c: Likewise.
1737
1738         * configure.in: Remove --with-__thread option.  Make tests for
1739         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
1740         tls_model attribute fail if no support is available.  Remove
1741         USE_IN_LIBIO.
1742         * Makeconfig: Adjust for dropped configure option.  All features are
1743         now mandatory.
1744         * Makerules: Likewise.
1745         * Versions.def: Likewise.
1746         * argp/argp-fmtstream.c: Likewise.
1747         * argp/argp-fmtstream.h: Likewise.
1748         * argp/argp-help.c: Likewise.
1749         * assert/assert.c: Likewise.
1750         * config.h.in: Likewise.
1751         * config.make.in: Likewise.
1752         * configure: Likewise.
1753         * configure.in: Likewise.
1754         * csu/Versions: Likewise.
1755         * csu/init.c: Likewise.
1756         * elf/tst-audit2.c: Likewise.
1757         * elf/tst-tls10.c: Likewise.
1758         * elf/tst-tls10.h: Likewise.
1759         * elf/tst-tls11.c: Likewise.
1760         * elf/tst-tls12.c: Likewise.
1761         * elf/tst-tls14.c: Likewise.
1762         * elf/tst-tlsmod11.c: Likewise.
1763         * elf/tst-tlsmod12.c: Likewise.
1764         * elf/tst-tlsmod13.c: Likewise.
1765         * elf/tst-tlsmod13a.c: Likewise.
1766         * elf/tst-tlsmod14a.c: Likewise.
1767         * elf/tst-tlsmod15b.c: Likewise.
1768         * elf/tst-tlsmod16a.c: Likewise.
1769         * elf/tst-tlsmod16b.c: Likewise.
1770         * elf/tst-tlsmod7.c: Likewise.
1771         * elf/tst-tlsmod8.c: Likewise.
1772         * elf/tst-tlsmod9.c: Likewise.
1773         * gmon/gmon.c: Likewise.
1774         * grp/fgetgrent_r.c: Likewise.
1775         * grp/putgrent.c: Likewise.
1776         * hurd/fopenport.c: Likewise.
1777         * include/libc-symbols.h: Likewise.
1778         * include/tls.h: Likewise.
1779         * intl/gettextP.h: Likewise.
1780         * intl/loadinfo.h: Likewise.
1781         * locale/global-locale.c: Likewise.
1782         * locale/localeinfo.h: Likewise.
1783         * mach/devstream.c: Likewise.
1784         * malloc/arena.c: Likewise.
1785         * malloc/set-freeres.c: Likewise.
1786         * misc/err.c: Likewise.
1787         * misc/getttyent.c: Likewise.
1788         * misc/mntent_r.c: Likewise.
1789         * posix/getopt.c: Likewise.
1790         * posix/wordexp.c: Likewise.
1791         * pwd/fgetpwent_r.c: Likewise.
1792         * resolv/Versions: Likewise.
1793         * resolv/res_hconf.c: Likewise.
1794         * shadow/fgetspent_r.c: Likewise.
1795         * shadow/putspent.c: Likewise.
1796         * stdio-common/printf_fphex.c: Likewise.
1797         * stdio-common/tmpfile.c: Likewise.
1798         * stdlib/abort.c: Likewise.
1799         * stdlib/fmtmsg.c: Likewise.
1800         * sunrpc/auth_unix.c: Likewise.
1801         * sunrpc/clnt_perr.c: Likewise.
1802         * sunrpc/clnt_tcp.c: Likewise.
1803         * sunrpc/clnt_udp.c: Likewise.
1804         * sunrpc/clnt_unix.c: Likewise.
1805         * sunrpc/openchild.c: Likewise.
1806         * sunrpc/svc_simple.c: Likewise.
1807         * sunrpc/svc_tcp.c: Likewise.
1808         * sunrpc/svc_udp.c: Likewise.
1809         * sunrpc/svc_unix.c: Likewise.
1810         * sunrpc/xdr.c: Likewise.
1811         * sunrpc/xdr_array.c: Likewise.
1812         * sunrpc/xdr_rec.c: Likewise.
1813         * sunrpc/xdr_ref.c: Likewise.
1814         * sunrpc/xdr_stdio.c: Likewise.
1815
1816 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
1817
1818         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
1819
1820 2011-07-03  Andreas Jaeger  <aj@suse.de>
1821
1822         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
1823         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
1824         regenerate with gen-libm-tests.pl.
1825
1826 2010-05-12  Petr Baudis  <pasky@suse.cz>
1827
1828         [BZ #11589]
1829         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
1830         around j0() zero points by switching to j1().
1831         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
1832         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1833         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
1834         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1835
1836 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
1837
1838         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
1839         instead of 0.
1840         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
1841         instead of 0.                              .
1842         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1843         Patch in part by Pavel Roskin <proski@gnu.org>.
1844
1845         [BZ #13138]
1846         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
1847         realloc.
1848         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
1849         Free memory block if necessary.
1850
1851         [BZ #12847]
1852         * libio/genops.c (INTDEF): For string streams the _lock pointer can
1853         be NULL.  Don't lock in this case.
1854
1855 2011-09-09  Roland McGrath  <roland@hack.frob.com>
1856
1857         * elf/elf.h (ELFOSABI_GNU): New macro.
1858         (ELFOSABI_LINUX): Define to that.
1859
1860 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
1861
1862         * string/strncat.c (strncat): Undef the symbol in case it has been
1863         defined in bits/string.h.
1864
1865 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
1866
1867         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
1868
1869         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
1870         link map.
1871
1872 2011-08-17  Andreas Jaeger  <aj@suse.de>
1873
1874         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
1875
1876 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
1877             Ian Lance Taylor  <iant@google.com>
1878
1879         * math/libm-test.inc (lround_test): New testcase.
1880         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
1881
1882 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
1883
1884         * Makefile: Remove support for automatic cvs check-ins.
1885         * Makerules: Likewise.
1886         * config.make.in: Likewise.
1887         * configure.in: Likewise.
1888         * intl/Makefile: Likewise.
1889         * locale/Makefile: Likewise.
1890         * po/Makefile: Likewise.
1891         * posix/Makefile: Likewise.
1892         * sysdeps/gnu/Makefile: Likewise.
1893         * sysdeps/mach/hurd/Makefile: Likewise.
1894         * sysdeps/sparc/sparc32/Makefile: Likewise.
1895
1896         [BZ #13118]
1897         * posix/Makefile (bug-regex32-ENV): Define.
1898         Patch by John Stanley <jpsinthemix@verizon.net>.
1899
1900         * misc/Makefile (headers): Add bits/select2.h.
1901         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
1902         * misc/bits/select2.h: New file.
1903         * include/bits/select2.h: New file.
1904         * debug/Makefile (routines): Add fdelt_chk.
1905         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
1906         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
1907         FD_ISSET.
1908         * debug/fdelt_chk.c: New file.
1909
1910         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
1911         * wcsmbs/test-wmemcmp.c: Likewise.
1912         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
1913         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
1914
1915 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1916
1917         * string/Makefile (strop-tests): Add memcmp.
1918         * string/test-wmemcmp.c: New file.
1919         * string/test-memcmp.c: Add wmemcmp support.
1920
1921 2011-09-08  Roland McGrath  <roland@hack.frob.com>
1922
1923         [BZ #13153]
1924         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
1925         2011-07-19 change.
1926
1927         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
1928         garbage value in a __mach_port_mod_refs call in the cases of the
1929         task-self and thread-self ports.
1930
1931 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1932
1933         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
1934
1935 2011-09-08  Andreas Schwab  <schwab@redhat.com>
1936
1937         * elf/dl-load.c (lose): Check for non-null L.
1938
1939 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
1940
1941         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
1942
1943         * elf/dl-libc.c (dlerror_run): Pass back error code from
1944         dl_catch_error.
1945
1946         [BZ #13123]
1947         * elf/dl-load.c (lose): Free l_origin if it is valid.
1948
1949         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
1950         names.
1951         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
1952         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
1953         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
1954         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
1955         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
1956         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
1957
1958 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1959
1960         * sysdeps/powerpc/fpu/e_hypot.c: New file.
1961         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
1962         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
1963         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
1964         * sysdeps/powerpc/fpu/k_cosf.c: New file.
1965         * sysdeps/powerpc/fpu/k_sinf.c: New file.
1966         * sysdeps/powerpc/fpu/s_cosf.c: New file.
1967         * sysdeps/powerpc/fpu/s_sinf.c: New file.
1968         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
1969         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
1970
1971 2011-08-15  Alan Modra  <amodra@gmail.com>
1972
1973         [BZ #13092]
1974         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
1975         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
1976         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
1977         ppc_mcount to static-only-routines.
1978         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
1979         __mcount_internal.
1980         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
1981         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
1982
1983 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
1984
1985         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
1986         for finite and infinity parameters.
1987
1988 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
1989
1990         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
1991         and add nop instructions for throughput optimization.
1992         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1993
1994 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
1995
1996         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
1997         aligned copy for power7 with vector-scalar instructions.
1998         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
1999
2000 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
2001
2002         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
2003         AVX check.
2004
2005 2011-09-07  Andreas Schwab  <schwab@redhat.com>
2006
2007         [BZ #13144]
2008         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
2009         last change.
2010
2011 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
2012
2013         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2014         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
2015         syscall wrapper around clock_gettime in __vdso_clock_gettime.
2016         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
2017         clock_gettime.
2018
2019 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
2020
2021         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
2022         Forgot to demangle the pointer.
2023
2024         * sysdeps/i386/sysdep.h: Define atom_text_section.
2025         * sysdeps/x86_64/sysdep.h: Likewise.
2026         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
2027         section with atom_text_section.
2028         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
2029         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
2030         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
2031         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
2032         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
2033
2034         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
2035         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
2036         already be defined.  Change to take two parameters and don't assign
2037         result to variable.  Adjust all users.
2038         Define INTERNAL_GETTIME if not already defined.
2039         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
2040         call.
2041         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
2042         HAVE_CLOCK_GETTIME_VSYSCALL.
2043         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
2044
2045         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
2046         gettimeofday vsyscall, just use time.
2047
2048 2011-09-06  Andreas Schwab  <schwab@redhat.com>
2049
2050         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
2051         <errno.h>.
2052
2053 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
2054
2055         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
2056         syscall on x86-64.
2057         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
2058         syscall.
2059         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
2060         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
2061         syscall if possible.
2062
2063 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
2064
2065         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
2066         e_ident.  Don't pass to find_mapsXX.
2067         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
2068
2069 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2070
2071         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2072         strchr-sse2-no-bsf strrchr-sse2-no-bsf
2073         * sysdeps/x86_64/multiarch/strchr.S: Update.
2074         Check bit_slow_BSF bit.
2075         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2076         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
2077         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
2078
2079 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
2080
2081         [BZ #13134]
2082         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
2083         before glibc 2.15.
2084         (tryshell): Define.
2085         (__spawni): Change last parameter to be flag.  Test
2086         SPAWN_XFLAGS_USE_PATH flag to use path or not.
2087         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
2088         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
2089         * posix/spawni.c: Likewise.
2090         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
2091         * posix/spawnp.c: Likewise.  Change normal version to use
2092         SPAWN_XFLAGS_USE_PATH.
2093         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
2094         SPAWN_XFLAGS_TRY_SHELL.
2095
2096         [BZ #13150]
2097         * posix/glob.h: Remove gcc 1.x support.
2098
2099         [BZ #13068]
2100         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
2101
2102 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2103
2104         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2105         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
2106         strrchr-sse2-bsf
2107         * sysdeps/i386/i686/multiarch/strchr.S: New file.
2108         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
2109         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
2110         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
2111         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
2112         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
2113
2114 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2115
2116         * sysdeps/x86_64/wcscmp.S: New file.
2117
2118         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
2119         wcscmp-c wcscmp-sse2
2120         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
2121         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
2122         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
2123         * wcsmbs/wcscmp.c: Allow renaming.
2124
2125 2011-09-05  David S. Miller  <davem@davemloft.net>
2126
2127         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
2128         stack slot, rather than the struct return pointer slot.
2129         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
2130         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
2131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
2132         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
2133
2134 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
2135
2136         * po/ja.po: Update from translation team.
2137
2138         [BZ #13144]
2139         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
2140         kernel in 64-bit binaries.
2141
2142 2011-09-01  David S. Miller  <davem@davemloft.net>
2143
2144         * elf/elf.h (HWCAP_SPARC_*): Move to..
2145         * sysdeps/sparc/sysdep.h: this new file and add new values.
2146         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
2147         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
2148         _DL_HWCAP_COUNT to 24.
2149         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2150         entries.
2151         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
2152         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
2153         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
2154         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
2155         instead of magic constants.
2156         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2157
2158 2011-08-31  David S. Miller  <davem@davemloft.net>
2159
2160         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
2161         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
2162         Reimplement to do errno handling inline.
2163         (SYSCALL_ERROR_HANDLER): New macro.
2164         (__SYSCALL_STRING): Do not do errno handling in asm.
2165         (__CLONE_SYSCALL_STRING): Delete.
2166         (__INTERNAL_SYSCALL_STRING): Delete.
2167         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
2168         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
2169         (PSEUDO): Reimplement to do errno handling inline.
2170         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
2171         (SYSCALL_ERROR_HANDLER): New macro.
2172         (__SYSCALL_STRING): Do not do errno handling in asm.
2173         (__CLONE_SYSCALL_STRING): Delete.
2174         (__INTERNAL_SYSCALL_STRING): Delete.
2175         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
2176         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
2177         i386.
2178         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
2179         (inline_syscall*): Add 'err' argument.
2180         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
2181         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
2182         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
2183         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
2184
2185         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
2186         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
2187
2188 2011-08-30  Andreas Schwab  <schwab@redhat.com>
2189
2190         * elf/rtld.c (dl_main): Relocate objects in dependency order.
2191
2192 2011-08-29  Jiri Olsa <jolsa@redhat.com>
2193
2194         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
2195         directive.
2196
2197 2011-08-24  David S. Miller  <davem@davemloft.net>
2198
2199         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
2200
2201 2011-08-24  Andreas Schwab  <schwab@redhat.com>
2202
2203         * elf/Makefile: Add rules to build and run unload8 test.
2204         * elf/unload8.c: New file.
2205         * elf/unload8mod1.c: New file.
2206         * elf/unload8mod1x.c: New file.
2207         * elf/unload8mod2.c: New file.
2208         * elf/unload8mod3.c: New file.
2209
2210         * elf/dl-close.c (_dl_close_worker): Reset private search list if
2211         it wasn't used.
2212
2213 2011-08-23  David S. Miller  <davem@davemloft.net>
2214
2215         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
2216         subtract stack bias.
2217         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
2218         %sp not %fp in calculations.
2219         (_JMPBUF_UNWINDS_ADJ): Likewise.
2220
2221         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
2222         (aio_suspend): Call it to force an exception region around the
2223         AIO_MISC_WAIT() invocation.
2224
2225 2011-08-23  Andreas Schwab  <schwab@redhat.com>
2226
2227         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
2228         backslash.
2229
2230 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
2231
2232         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
2233         protection macro.
2234         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
2235         and <dl-machine.h>.
2236         (Elf64_FuncDesc): Remove.
2237
2238 2011-08-22  David S. Miller  <davem@davemloft.net>
2239
2240         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
2241         sigaltstack check, add missing cfi directives.
2242         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
2243         missing cfi directives, and sigaltstack handling.
2244
2245 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2246
2247         [BZ #11724]
2248         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
2249         object is seen twice.
2250         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2251
2252         * elf/Makefile (distribute): Add tst-initorder2.c.
2253         (tests): Add tst-initorder2.
2254         (modules-names): Add tst-initorder2a tst-initorder2b
2255         tst-initorder2c tst-initorder2d.  Add rules to build them.
2256         ($(objpfx)tst-initorder2.out): New rule.
2257         * elf/tst-initorder2.c: New file.
2258         * elf/tst-initorder2.exp: New file.
2259
2260 2011-08-22  Andreas Schwab  <schwab@redhat.com>
2261
2262         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
2263
2264         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
2265         dependencies back to end of function.
2266
2267         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
2268         $(elfobjdir)/ld.so.
2269
2270 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
2271
2272         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
2273         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
2274         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2275         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2276         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
2277         of __vdso_gettimeofday.
2278         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
2279         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
2280         attribute_hidden.
2281         (_libc_vdso_platform_setup): Remove initialization of
2282         __vdso_gettimeofday and __vdso_time.
2283
2284 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
2285
2286         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
2287         and fgetc_unlocked.
2288         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
2289         getc_unlocked.
2290
2291         * elf/dl-open.c (add_to_global): Report additions to the global scope
2292         for LD_DEBUG=scopes.
2293         (dl_open_worker): Also print scope of newly loaded dependencies.
2294         (_dl_show_scope): Indicate if there is no scope.
2295
2296         [BZ #13114]
2297         * stdio-common/Makefile (tests): Add bug24.
2298         * stdio-common/bug24.c: New file.
2299
2300 2011-08-19  Andreas Jaeger  <aj@suse.de>
2301
2302         [BZ #13114]
2303         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
2304         non-existant file when using close-on-exec mode.
2305
2306 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
2307
2308         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
2309         the very first instruction.
2310
2311         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
2312         the CFI state in the end.
2313         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
2314         inclusion of dl-trampoline.h.
2315         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
2316
2317 2011-08-19  Andreas Schwab  <schwab@redhat.com>
2318
2319         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
2320         expectations for long double.
2321
2322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
2323         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
2324
2325 2011-08-14  David S. Miller  <davem@davemloft.net>
2326
2327         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
2328         artificual limit depends upon the system page size.
2329
2330 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
2331
2332         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
2333         * resolv/Makefile: Define CFLAGS-libresolv.
2334
2335 2011-08-17  Andreas Schwab  <schwab@redhat.com>
2336
2337         * nss/makedb.c (compute_tables): Make variables used in nested
2338         function static.
2339
2340 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
2341
2342         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
2343         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
2344         if buffer was too small.
2345
2346         * elf/pldd.c (main): Attach to all threads in the process.
2347         Rewrite /proc handling to use *at functions.
2348
2349 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
2350
2351         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
2352         specifies first scope to show.
2353         (dl_open_worker): Update callers.  Move printing scope of new
2354         object to before the relocation.
2355         * elf/rtld.c (dl_main): Update _dl_show_scope call.
2356         * sysdeps/generic/ldsodefs.h: Update declaration.
2357
2358         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
2359         string for the scope number.
2360
2361 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
2362
2363         * nscd/servicescache.c (cache_addserv): Make sure written is always
2364         initialized.
2365
2366 2011-08-14  Roland McGrath  <roland@hack.frob.com>
2367
2368         * sysdeps/i386/i486/bits/atomic.h
2369         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
2370         statement expression, so as to suppress "set but not used" warning.
2371         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
2372
2373         * string/strncat.c (STRNCAT): Use prototype definition.
2374
2375         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
2376         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
2377         -Iprograms here.
2378         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
2379         (localedef-modules): Add localedef.
2380         (locale-modules): Add locale.
2381
2382         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
2383         * elf/rtld.c (dl_main): Invert order of assignment in last change,
2384         to avoid a warning.
2385
2386 2011-08-14  David S. Miller  <davem@davemloft.net>
2387
2388         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
2389         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
2390
2391 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
2392
2393         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
2394         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
2395         * elf/rtld.c (dl_main): Set l_name of vDSO.
2396         Call _dl_show_scope when DL_DEBUG_SCOPES.
2397         (process_dl_debug): Recognize scopes flag and also set it for all.
2398         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
2399         Declare _dl_show_scope.
2400
2401         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
2402         (do_dlopen): Pass caller_dlopen to dl_open.
2403         (__libc_dlopen_mode): Initialize caller_dlopen.
2404
2405         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
2406         of libc.  Make tolower call locale-independent.  Optimize a bit by
2407         using isdigit instead of isalnum.
2408         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
2409
2410 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
2411
2412         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
2413         was a dependency or dynamically loaded.
2414
2415 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
2416
2417         * intl/l10nflist.c: Allow architecture-specific pop function.
2418         * sysdeps/x86_64/l10nflist.c: New file.
2419
2420         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
2421         classification.
2422
2423 2011-08-10  Andreas Schwab  <schwab@redhat.com>
2424
2425         * include/dirent.h: Add libc_hidden_proto for scandirat and
2426         scandirat64.  Don't declare __scandirat64.
2427         * dirent/scandirat.c: Add libc_hidden_def.
2428         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
2429         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
2430
2431 2011-08-10  David S. Miller  <davem@davemloft.net>
2432
2433         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
2434         enum.
2435         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2436         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2437         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2438
2439 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
2440
2441         * Versions.def [libc]: Add GLIBC_2.15.
2442         * dirent/Makefile (routines): Add scandirat and scandirat64.
2443         * dirent/Versions [libc]: Export scandirat and scandirat64 for
2444         GLIBC_2.15.
2445         * dirent/dirent.h: Declare scandirat and scandirat64.
2446         * dirent/scandirat.c: New file.
2447         * dirent/scandirat64.c: New file.
2448         * sysdeps/wordsize-64/scandirat.c: New file.
2449         * sysdeps/wordsize-64/scandirat64.c: New file.
2450         * dirent/opendir.c: Define opendirat.
2451         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
2452         using scandirat.
2453         * dirent/scandir64.c: Adjust for scandir.c change.
2454         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
2455         __scandirat64, and __scandir_cancel_handler.
2456         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
2457         additional parameter and use openat instead of open (outside of ld.so).
2458         Add new __opendir as wrapper around __opendirat.
2459         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
2460         here without requiring old scandirat implementation.
2461
2462 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
2463
2464         * dirent/scandir.c (cancel_handler): Renamed to
2465         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
2466         defined.  Adjust users.
2467         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
2468         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
2469
2470 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
2471
2472         * string/test-string.h (IMPL): Use __STRING to expand name and then
2473         stringify it.
2474
2475         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
2476         of cleanups.
2477
2478 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2479
2480         * string/Makefile: Update.
2481         (strop-tests): Append strncat.
2482         * string/test-wcscmp.c: New file.
2483         New comprehensive test for wcscmp.
2484         * string/test-strcmp.c: Update.
2485         (WIDE): New define.
2486
2487 2011-07-22  Andreas Schwab  <schwab@redhat.com>
2488
2489         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
2490         line.
2491
2492 2011-07-26  Andreas Schwab  <schwab@redhat.com>
2493
2494         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
2495         encoding to ACE if AI_IDN.
2496
2497 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
2498
2499         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
2500         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
2501
2502 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2503
2504         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
2505         Fix overflow bug in strncat.
2506         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
2507
2508         * string/test-strncat.c: Update.
2509         Add new tests for checking overflow bugs.
2510
2511 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2512
2513         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2514         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
2515         * sysdeps/i386/i686/multiarch/strcat.S: New file.
2516         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
2517         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
2518         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
2519         * sysdeps/i386/i686/multiarch/strncat.S: New file.
2520         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
2521         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
2522
2523         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
2524         (USE_AS_STRCAT): Define.
2525         Add strcat and strncat support.
2526         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
2527
2528 2011-07-25  Andreas Schwab  <schwab@redhat.com>
2529
2530         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
2531         __n bigger than INT_MAX+1.
2532         (__strncmp_g): Likewise.
2533
2534 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
2535
2536         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
2537         * libio/stido.h: Likewise.
2538
2539         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
2540         (AF_NFC): Define.
2541         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
2542         (AF_NFC): Define.
2543
2544         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
2545         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2546         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2547         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2548         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2549
2550         [BZ #13021]
2551         * scripts/test-installation.pl: Don't expect libnss_test1 to be
2552         installed.
2553
2554         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
2555         typo.
2556         (_dl_x86_64_save_sse): Likewise.
2557
2558 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
2559
2560         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
2561         OSXSAVE.
2562         (_dl_x86_64_save_sse): Likewise.
2563
2564         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
2565
2566         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
2567
2568 2011-07-21  Andreas Schwab  <schwab@redhat.com>
2569
2570         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
2571         change.
2572         (_dl_x86_64_save_sse): Use correct AVX check.
2573
2574 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2575
2576         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
2577         bug in strncpy/strncat.
2578         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
2579
2580 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
2581
2582         * string/tester.c (test_strcat): Add tests for different alignments
2583         of source and destination.
2584         (test_strncat): Likewise.
2585
2586 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
2587
2588         [BZ #12852]
2589         * posix/glob.c (glob): Check passed in values before using them in
2590         expressions to avoid some overflows.
2591         (glob_in_dir): Likewise.
2592
2593         [BZ #13007]
2594         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
2595         check for AVX enablement so that we don't crash with old kernels and
2596         new hardware.
2597         * elf/tst-audit4.c: Add same checks here.
2598         * elf/tst-audit6.c: Likewise.
2599
2600         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
2601
2602 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
2603
2604         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
2605
2606 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
2607
2608         * po/cs.po: Update from translation team.
2609         * po/bg.po: Likewise.
2610
2611 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
2612
2613         * misc/sys/cdefs.h: Add support for const attribute.
2614         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
2615         to gnu_dev_{major,minor,makedev} functions.
2616
2617 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
2618
2619         * intl/dcigettext.c (get_output_charset): Add missing bracket.
2620
2621 2011-07-20  Andreas Schwab  <schwab@redhat.com>
2622
2623         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
2624         strlen results.
2625
2626 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2627
2628         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2629         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
2630         register in order to avoid conflicts with the soft frame pointer
2631         being held in r11 when necessary.
2632         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2633         (INTERNAL_VSYSCALL_NCS): Likewise.
2634
2635 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
2636
2637         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
2638         * elf/dl-fini.c (_dl_fini): Adjust caller.
2639         * elf/dl-close.c (_dl_close_worker): Likewise.
2640         * sysdeps/generic/ldsodefs.h: Adjust declaration.
2641
2642 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
2643
2644         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
2645         "aux_cache->nlibs < 0".
2646
2647         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
2648         in the reload-count case.
2649
2650 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2651
2652         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2653         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
2654         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
2655         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
2656         * sysdeps/x86_64/multiarch/strcat.S: New file.
2657         * sysdeps/x86_64/multiarch/strncat.S: New file.
2658         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
2659         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
2660         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
2661         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
2662         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
2663         (USE_AS_STRCAT): Define.
2664         Add strcat and strncat support.
2665         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
2666         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
2667         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
2668         * string/strncat.c: Update.
2669         (USE_AS_STRNCAT): Define.
2670         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2671         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
2672         and i7.
2673         * sysdeps/x86_64/multiarch/init-arch.h
2674         (bit_Prefer_PMINUB_for_stringop): New.
2675         (index_Prefer_PMINUB_for_stringop): Likewise.
2676         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
2677         bit_Prefer_PMINUB_for_stringop.
2678
2679 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
2680
2681         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
2682         buffer64.
2683         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
2684         of casting of buffer.
2685         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
2686         buffer32 and buffer64.
2687         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
2688         writes instead of casting of buffer.
2689         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
2690         buffer32.
2691         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
2692         casting of buffer.
2693
2694 2011-07-19  Andreas Schwab  <schwab@redhat.com>
2695
2696         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
2697
2698 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
2699
2700         * nscd/nscd.c (termination_handler): Don't do anything for a database
2701         if it has not yet been initialized.
2702
2703 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
2704
2705         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
2706
2707 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
2708
2709         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
2710
2711 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
2712
2713         * po/nl.po: Update from translation team.
2714         * po/sv.po: Likewise.
2715
2716 2011-07-16  Roland McGrath  <roland@hack.frob.com>
2717
2718         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
2719         now disallowed by GCC.
2720
2721         * configure.in (use-default-link): Default to yes if a test -shared
2722         link meets our qualifications.
2723         * configure: Regenerated.
2724
2725         * config.make.in (output-format): New variable.
2726         * configure.in: Check for ld --print-output-format support.
2727         * configure: Regenerated.
2728         * Makerules ($(common-objpfx)format.lds)
2729         [$(output-format) != unknown]: Just use $(output-format),
2730         instead of the linker-script munging.
2731
2732 2011-07-14  Roland McGrath  <roland@hack.frob.com>
2733
2734         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
2735         of $(common-objpfx)shlib.lds.
2736         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
2737
2738         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
2739         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
2740
2741         * configure.in (-z relro check): Adjust test code to add a large
2742         writable data section after it.
2743         * configure: Regenerated.
2744
2745 2011-07-11  Roland McGrath  <roland@hack.frob.com>
2746
2747         * configure.in (-z relro check): Fix test code to make the variable
2748         truly const.
2749         * configure: Regenerated.
2750
2751 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
2752
2753         * nscd/nscd.h (struct traced_file): Define.
2754         (struct database_dyn): Remove inotify_descr, reset_res, and filename
2755         elements.  Add traced_files.
2756         (inotify_fd): Declare.
2757         (register_traced_file): Declare.
2758         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
2759         (inotify_fd): Export.
2760         (resolv_conf_descr): Remove.
2761         (nscd_init): Move inotify descriptor creation to main.
2762         Don't register files for notification here.
2763         (register_traced_file): New function.
2764         (invalidate_cache): Don't use reset_res to determine whether to call
2765         res_init, go through the list of registered files.
2766         (main_loop_poll): The inotify descriptors are now stored in the
2767         structures for the traced files.
2768         (main_loop_epoll): Likewise
2769         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
2770         to __nss_disable_nscd.
2771         * nscd/cache.c (prune_cache): There is no single inotify descriptor
2772         for a database anymore.  Check the records for all the registered
2773         files instead.
2774         * nss/Makefile (libnss_files-routines): Add files-init.
2775         (libnss_db-routines): Add db-init.
2776         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
2777         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
2778         * nss/nss_db/db-init.c: New file.
2779         * nss/nss_files/files-init.c: New file.
2780         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
2781         __nss_lookup_function.
2782         (__nss_lookup_function): Call nss_load_library.
2783         (nss_load_all_libraries): New function.
2784         (__nss_disable_nscd): Take parameter with callback function for files
2785         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
2786         used for the cached services.
2787         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
2788         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
2789         options for features to all the files in nscd.
2790
2791         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
2792
2793 2011-07-10  Roland McGrath  <roland@hack.frob.com>
2794
2795         * csu/elf-init.c (__libc_csu_init): Comment typo.
2796
2797 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
2798
2799         * po/pl.po: Update from translation team.
2800         * po/ja.po: Likewise.
2801         * po/ru.po: Likewise.
2802         * po/ko.po: Likewise.
2803         * po/fr.po: Likewise.
2804
2805 2011-07-09  Roland McGrath  <roland@hack.frob.com>
2806
2807         * configure.in (.ctors/.dtors header and trailer check):
2808         Use an empirical test on a built program.
2809         * configure: Regenerated.
2810
2811         * configure.in (-z relro check): Use an empirical test on a built DSO.
2812         Detect, but do not require, on ia64.
2813         * configure: Regenerated.
2814
2815         * configure.in (READELF): Find it with AC_CHECK_TOOL.
2816         Update tests that use readelf to use $READELF instead.
2817         * configure: Regenerated.
2818
2819 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
2820
2821         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
2822         if the result is not used.
2823
2824 2011-07-05  Andreas Jaeger  <aj@suse.de>
2825
2826         [BZ#9696]
2827         * stdlib/tst-strtod.c: Add testcase.
2828
2829 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2830
2831         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
2832         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
2833         The latter has a higher limit.  Take additional parameter to pass to
2834         the new function.
2835         (__pathconf): Pass file to __statfs_link_max.
2836         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
2837         __statfs_link_max.
2838         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
2839         __statfs_link_max.
2840
2841         [BZ #12868]
2842         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
2843         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2844         Handle Lustre.
2845         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
2846         (__statfs_filesize_max): Likewise.
2847         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
2848
2849 2011-07-05  Andreas Jaeger  <aj@suse.de>
2850
2851         * resolv/res_comp.c (dn_skipname): Remove unused variable.
2852
2853 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
2854
2855         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
2856         `status' variable.
2857         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
2858         Likewise.
2859
2860 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
2861
2862         * Makefile (strop-tests): Add strncat.
2863         * string/test-strncat.c: New file.
2864
2865 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
2866
2867         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
2868
2869 2011-06-21  Andreas Jaeger  <aj@suse.de>
2870
2871         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
2872         Copy rule from iconvdata/Makefile.
2873
2874 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
2875
2876         [BZ #12922]
2877         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
2878         but no long options are defined, just return 'W'.
2879
2880 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
2881
2882         [BZ #9696]
2883         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
2884
2885 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
2886
2887         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
2888         netgroups to read.
2889         (innetgr): Likewise.
2890
2891 2011-07-05  Roland McGrath  <roland@hack.frob.com>
2892
2893         * config.make.in (install_root): Default to $(DESTDIR).
2894
2895 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
2896
2897         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
2898
2899 2011-07-02  Roland McGrath  <roland@hack.frob.com>
2900
2901         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
2902
2903         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
2904         containing directory rather than embedding absolute directory names.
2905
2906         * scripts/check-local-headers.sh: Rewritten using awk.
2907         Match by word, not by line.  Print error messages for matches.
2908         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
2909
2910         * Makerules [shlib-lds-flags empty]:
2911         ($(common-objpfx)libc_pic.opts): New target.
2912         ($(common-objpfx)libc_pic.os.clean): New target.
2913         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
2914
2915         * config.make.in (OBJCOPY): New variable.
2916         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
2917         * configure: Regenerated.
2918
2919         * config.make.in (use-default-link): New variable.
2920         * configure.in (use_default_link): Grok --with-default-link to set it.
2921         * configure: Regenerated.
2922         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
2923         (shlib-lds, shlib-lds-flags): Define to empty.
2924
2925         * Makerules (shlib-lds): New variable.
2926         (shlib-lds-flags): New variable.
2927         (build-shlib, build-moduile, build-module-asneeded): Use it.
2928         ($(common-objpfx)libc.so): Use $(shlib-lds).
2929         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
2930         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
2931
2932         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
2933         DT_FLAGS/DT_FLAGS_1 with zero flags.
2934
2935         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
2936         linker script munging.
2937
2938 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
2939
2940         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
2941         as 128-bit value.
2942         * crypt/sha512.c (sha512_process_block): Perform total addition using
2943         128-bit if possible.
2944         (__sha512_finish_ctx): Likewise.
2945         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
2946         as 64-bit value.
2947         * crypt/sha256.c (SWAP64): Define.
2948         (sha256_process_block): Perform total addition using 64-bit if
2949         possible.
2950         (__sha256_finish_ctx): Likewise.
2951
2952 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
2953
2954         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
2955         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2956         * nscd/hstcache.c (cache_addhst): Likewise.
2957         * nscd/grpcache.c (cache_addgr): Likewise.
2958         * nscd/aicache.c (addhstaiX): Likewise
2959         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
2960
2961 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
2962
2963         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
2964         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2965         * nscd/hstcache.c (cache_addhst): Likewise.
2966         * nscd/grpcache.c (cache_addgr): Likewise.
2967         * nscd/aicache.c (addhstaiX): Likewise
2968
2969 2011-07-01  Andreas Schwab  <schwab@redhat.com>
2970
2971         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
2972         domain only when needed.
2973
2974 2011-06-30  Andreas Schwab  <schwab@redhat.com>
2975
2976         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
2977         is always restored.
2978
2979 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
2980
2981         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
2982         are re-adding the entry.
2983         * nscd/servicescache.c (cache_addserv): Likewise.
2984
2985 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
2986
2987         * sysdeps/generic/dl-irel.h: fix protection against multiple
2988         inclusions.
2989         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
2990
2991 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
2992
2993         [BZ #12935]
2994         * malloc/memusage.sh: Fix quoting in message.
2995         * debug/xtrace.sh: Likewise.
2996
2997         * configure.in: Remove support for --experimental-malloc option, make
2998         it the default.
2999         * config.make.in: Likewise.
3000         * malloc/Makefile: Likewise.
3001
3002 2011-06-27  Andreas Schwab  <schwab@redhat.com>
3003
3004         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
3005         two-byte characters.
3006
3007 2011-06-27  Roland McGrath  <roland@hack.frob.com>
3008
3009         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
3010         AC_CACHE_CHECK invocation.
3011         * configure: Regenerated.
3012
3013         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
3014
3015 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
3016
3017         [BZ #12350]
3018         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
3019         bit from old_res_options.
3020
3021         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
3022
3023         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
3024         value type for setfct.
3025
3026 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3027
3028         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
3029         __gettimeofday instead of gettimeofday.
3030
3031 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
3032
3033         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
3034
3035 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3036
3037         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
3038
3039         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
3040         info.
3041
3042 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3043
3044         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3045         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
3046         strcpy-sse2-unaligned strncpy-sse2-unaligned
3047         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
3048         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
3049         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
3050         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
3051         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
3052         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
3053         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
3054         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
3055         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
3056         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
3057         (STRCPY): Support SSE2 and SSSE3 versions.
3058
3059 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
3060
3061         [BZ #12874]
3062         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
3063         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
3064         kernels which artificially limit size of requests.
3065
3066 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3067
3068         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3069         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
3070         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
3071         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
3072         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
3073         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
3074         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
3075         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
3076         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
3077         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
3078         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
3079         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
3080         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
3081         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
3082         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
3083         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3084         Enable unaligned load optimization for Intel Core i3, i5 and i7
3085         processors.
3086         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
3087         Define.
3088         (index_Fast_Unaligned_Load): Define.
3089         (HAS_FAST_UNALIGNED_LOAD): Define.
3090
3091 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
3092
3093         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
3094
3095 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
3096
3097         [BZ #12907]
3098         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
3099         until it is clear that the information is realy needed.
3100         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
3101
3102 2011-06-22  Andreas Schwab  <schwab@redhat.com>
3103
3104         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
3105
3106 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
3107
3108         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
3109         /sys/devices/system/cpu/online if it is usable.
3110
3111         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
3112         reading the information from the /proc filesystem to once a second.
3113
3114 2011-06-21  Andreas Jaeger  <aj@suse.de>
3115
3116         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
3117         NULL after inclusion of kernel headers.
3118
3119 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
3120
3121         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
3122         calls to internal_setent.
3123
3124         [BZ #12885]
3125         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
3126         addresses using gethostbyname4_r ignore IPv4 addresses.
3127
3128         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
3129         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
3130
3131         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
3132
3133 2011-06-20  David S. Miller  <davem@davemloft.net>
3134
3135         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
3136         inclusions.
3137         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
3138
3139         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
3140         (elf_irel): Use it.
3141         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
3142         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
3143         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
3144         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
3145         * sysdeps/x86_64/dl-irel.h: Likewise.
3146
3147         * elf/dl-runtime.c: Use elf_ifunc_invoke.
3148         * elf/dl-sym.c: Likewise.
3149
3150 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
3151
3152         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
3153         need to dereference resplen2.
3154
3155 2011-06-14  Andreas Schwab  <schwab@redhat.com>
3156
3157         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
3158
3159 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
3160
3161         * Makeconfig: Define vardbdir and inst_vardbdir.
3162         * nss/Makefile: Add rules to install db-Makefile.
3163
3164         * nss/nss_db/db-XXX.c: Cleanup.
3165
3166         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
3167         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
3168         GLIBC_PRIVATE.
3169         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
3170         * nss/makedb.c: Implement -g option to specify that value strings
3171         are generated and should not be added to table iterated over for
3172         get*ent calls.
3173         * nss/nss_db/db-initgroups.c: New file.
3174
3175         * nss/getent.c: Add support for initgroups lookups through getgrouplist
3176         interface.
3177
3178         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
3179         (internal_getgrouplist): Adjust to name change.
3180         Update use_initgroups_entry if this is not the first call.
3181         * nss/databases.def: Add initgroups entry.
3182
3183         * nss/makedb.c (compute_tables): Check result of multiple hash table
3184         sizes to minimize maximum chain length.
3185
3186 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
3187
3188         * Versions.def: Add entry for libnss_db.
3189         * shlib-versions: Likewise.
3190         * nss/Makefile: Add rules to build libnss_db.
3191         * nss/Versions: Add libnss_db information.  Organize libnss_files
3192         entries better.
3193         * nss/db-Makefile: Add gshadow support.  Change rules for the new
3194         makedb progra.  Some minor improvements to generate smaller files.
3195         * nss/nss_db/nss_db.h: Move NSS database header data structures to
3196         here from...
3197         * nss/makedb.c: ...here.
3198         Improve database format to be smaller and require less memory at
3199         runtime.
3200         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
3201         db anymore.
3202         * nss/nss_db/db-netgrp.c: Likewise.
3203         * nss/nss_db/db-open.c: Likewise.
3204         * nss/nss_files/flies-XXX.x: Adjust comments.
3205         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
3206         * nss/nss_files/files-grp.c: Likewise.
3207         * nss/nss_files/files-hosts.c: Likewise.
3208         * nss/nss_files/files-network.c: Likewise.
3209         * nss/nss_files/files-proto.c: Likewise.
3210         * nss/nss_files/files-pwd.c: Likewise.
3211         * nss/nss_files/files-rpc.c: Likewise.
3212         * nss/nss_files/files-service.c: Likewise.
3213         * nss/nss_files/files-sgrp.c: Likewise.
3214         * nss/nss_files/files-spwd.c: Likewise.
3215         * nss/nss_db/db-alias.c: Removed.
3216         * nss/nss_db/dummy-db.h: Removed.
3217
3218 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
3219
3220         * nss/makedb.c: Rewritten to not use database library.
3221         * nss/Makefile: Update to build new makedb program.
3222
3223 2011-06-14  Andreas Jaeger  <aj@suse.de>
3224
3225         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
3226         memset declaration.
3227
3228 2011-06-10  Andreas Schwab  <schwab@redhat.com>
3229
3230         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
3231         tmpbuf.
3232
3233 2011-06-10  Roland McGrath  <roland@hack.frob.com>
3234
3235         * Makerules (shlib.lds): Fail if the linker script comes out empty.
3236         * elf/Makefile ($(objpfx)ld.so): Likewise.
3237
3238         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
3239         Don't list ld.so twice in dependencies.
3240
3241         * posix/bug-regex31.c: Include <stdlib.h>.
3242
3243         * nscd/hstcache.c (cache_addhst): Remove unused variable.
3244
3245         * nis/nss_compat/compat-spwd.c
3246         (getspent_next_nss_netgr): Remove unused variable.
3247         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
3248
3249         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
3250         nonmembers" output to use the right array.
3251
3252         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
3253
3254         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
3255
3256         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
3257         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
3258         * catgets/gencat.c (read_input_file): Likewise.
3259         * locale/programs/locarchive.c (enlarge_archive): Likewise.
3260
3261         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
3262         variable definition inside #if's controlling its use.
3263
3264         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
3265
3266         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
3267
3268         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
3269
3270         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
3271         unreachable code.
3272
3273         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
3274
3275         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
3276         * configure: Regenerated.
3277
3278         * Makerules: Revert last change.
3279         * elf/Makefile: Likewise.
3280
3281 2011-06-09  Roland McGrath  <roland@hack.frob.com>
3282
3283         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
3284         * elf/Makefile ($(objpfx)librtld.os): Likewise.
3285         (reloc-link): Likewise.
3286
3287 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
3288
3289         * elf/Makefile: Add rules to build pldd.
3290         * elf/pldd.c: New file.
3291         * elf/pldd-xx.c: New file.
3292
3293 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
3294
3295         * version.h: Update for 2.15 development version.
3296
3297 2011-06-07  David S. Miller  <davem@davemloft.net>
3298
3299         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
3300         ifuncs.
3301         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
3302         elf_machine_lazy_rel): Likewise.
3303         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
3304         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
3305         elf_machine_lazy_rel): Likewise.
3306         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
3307         dl_hwcap via passed in argument.
3308         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
3309         Likewise.
3310
3311 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3312
3313         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
3314
3315 2011-06-06  Roland McGrath  <roland@hack.frob.com>
3316
3317         [BZ #12849]
3318         * manual/fdl-1.1.texi: New file, verbatim from:
3319         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
3320         * manual/lgpl-2.1.texi: New file, verbatim from:
3321         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
3322         * manual/Makefile (licenses): New variable, list those new file names.
3323         (texis): Use it.
3324         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
3325
3326         * manual/fdl.texi: File removed.
3327         * manual/lesser.texi: File removed.
3328         * manual/libc.texinfo (Copying, Documentation License):
3329         Use new @include file names, put @appendix directive before @include.
3330
3331 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3332
3333         [BZ #12841]
3334         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
3335         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
3336         (mq_open): Add __NTH.
3337
3338 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3339
3340         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3341         Assume Intel Core i3/i5/i7 processor if AVX is available.
3342
3343 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
3344
3345         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
3346         typo.
3347
3348 2011-05-31  Andreas Schwab  <schwab@redhat.com>
3349
3350         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
3351         memory.  Use alloca_account.  Fix memory leak when retrying.
3352
3353 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
3354
3355         * version.h (RELEASE): Bump for 2.14 release.
3356         * include/features.h (__GLIBC_MINOR__): Bump to 14.
3357
3358         * config.make.in (RANLIB): Remove entry.
3359
3360 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
3361
3362         * po/Makefile (po-sed-cmd): Add ksh to extensions.
3363         (libc.pot): Work around missing support for .ksh extension in xgettext.
3364
3365         [BZ #12684]
3366         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
3367         if both request failed.
3368         (send_dg): In case of server errors clear resplen or *resplen2.
3369
3370         [BZ #12454]
3371         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
3372         when there are multiple maps.
3373         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
3374         (_dl_fini): Remove test here.
3375
3376         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
3377
3378 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
3379
3380         [BZ #12350]
3381         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
3382         bit from old_res_options.
3383         (gaih_inet): Likewise.
3384
3385         [BZ #11099]
3386         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
3387         as signed.
3388
3389         * resolv/res_init.c (res_setoptions): Make the code more compact.
3390
3391         [BZ #11558]
3392         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
3393         set RES_USEVC.
3394
3395         [BZ #11634]
3396         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
3397
3398         * malloc/malloc.h: Mark malloc hook variables as deprecated.
3399
3400         [BZ #11781]
3401         * malloc/malloc.h: Declare malloc hook variables as volatile.
3402
3403         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
3404         in last patch.
3405
3406         [BZ #11799]
3407         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
3408         raise in the comment.
3409         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3410         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3411         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3412
3413 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
3414
3415         [BZ #12811]
3416         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
3417         grow the buffers more if it already has to be sufficient.
3418         (build_wcs_upper_buffer): Likewise.
3419         * posix/regexec.c (check_matching): Likewise.
3420         (clean_state_log_if_needed): Likewise.
3421         (extend_buffers): Don't enlarge buffers beyond size of the input
3422         buffer.
3423         Patches mostly by Emil Wojak <emil@wojak.eu>.
3424         * posix/bug-regex32.c: New file.
3425         * posix/Makefile (tests): Add bug-regex32.
3426
3427         * locale/findlocale.c (_nl_find_locale): Return right away if
3428         _nl_explode_name failed.
3429         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
3430
3431         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
3432
3433         * debug/xtrace.sh: Unify messages.
3434         * malloc/memusage.sh: Likewise.
3435
3436         [BZ #12813]
3437         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
3438         time symbol from vDSO.  Substitute with vsyscall if not available.
3439         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
3440         __vdso_time.
3441
3442         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
3443         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
3444         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
3445         Add sendmmsg and internal_sendmmsg.
3446         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
3447         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
3448         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
3449
3450         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
3451         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
3452         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
3453
3454 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
3455
3456         [BZ #12813]
3457         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
3458         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
3459         available.
3460         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
3461         __vdso_getcpu.
3462
3463         [BZ #12814]
3464         * iconvdata/Makefile (tests): Add bug-iconv9.
3465         * iconvdata/bug-iconv9.c: New file.
3466
3467 2011-05-27  Andreas Schwab  <schwab@redhat.com>
3468
3469         [BZ #12814]
3470         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
3471
3472 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3473
3474         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
3475         (struct user_regs_struct): Change intcs field back to cs.
3476
3477 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
3478
3479         * po/ja.po: Update from translation team.
3480
3481 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
3482
3483         [BZ #12795]
3484         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
3485         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3486
3487 2011-05-20  Andreas Schwab  <schwab@redhat.com>
3488
3489         * stdlib/longlong.h: Update from GCC.
3490
3491 2011-05-23  Andreas Schwab  <schwab@redhat.com>
3492
3493         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
3494         parameter name.
3495         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
3496         Add parameter name.
3497         (__sysconf): Pass it down.
3498
3499 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
3500
3501         [BZ #12671]
3502         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
3503         some situations.
3504         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3505         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
3506         add in in __libc_use_alloca calls.  Adjust callers.
3507         (glob): Use malloc in some situations.
3508
3509         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
3510         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
3511         pltexit.
3512
3513 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
3514
3515         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
3516         and CLOCK_BOOTTIME_ALARM.
3517
3518         [BZ #12782]
3519         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
3520         is returned.
3521
3522         * string/_strerror.c (__strerror_r): Print negative errors as signed
3523         numbers.
3524
3525         [BZ #12777]
3526         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
3527         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
3528         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
3529
3530         * configure.in: Fix typo in redirection and correct removal of test
3531         files in two cases.
3532
3533         [BZ #12788]
3534         * locale/setlocale.c (new_composite_name): Fix test to check for
3535         identical name of all categories.
3536
3537         [BZ #12792]
3538         * libio/filedoalloc.c (local_isatty): New function.
3539         (_IO_file_doallocate): Use local_isatty.
3540         * stdio-common/perror.c (perror): In case a new stream is used
3541         forward the stream error.
3542         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
3543         error flag.
3544
3545 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
3546
3547         [BZ #11869]
3548         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
3549         alloca.
3550         * include/alloca.h (extend_alloca_account): Define.
3551
3552         [BZ #11857]
3553         * posix/regex.h: Fix comments with documentation of user-accessible
3554         fields after compilation and describe correct free'ing of pattern
3555         after re_compile_pattern.
3556         Patch by Reuben Thomas <rrt@sc3d.org>.
3557
3558 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
3559
3560         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
3561         and -mno-altivec to prevent the compiler from using Altivec and/or
3562         VSX instructions when the corresponding registers are not available.
3563
3564 2011-05-19  Andreas Schwab  <schwab@redhat.com>
3565
3566         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
3567
3568 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
3569
3570         * libio/freopen.c (freopen): Use __dup2, not dup2.
3571         * libio/freopen64.c (freopen64): Likewise.
3572
3573 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3574
3575         [BZ #12775]
3576         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
3577         * math/Makefile (tests): Add test-powl.
3578         (CFLAGS-test-powl.c): Define.
3579         * math/test-powl.c: New file.
3580
3581 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3582
3583         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
3584
3585 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
3586
3587         [BZ #11837]
3588         * iconvdata/gb18030.c: Update to GB18020-2005.
3589
3590 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
3591
3592         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
3593         RE_SYNTAX_POSIX_AWK): Update to match recent development.
3594         Patch by Aharon Robbins <arnold@skeeve.com>.
3595
3596         [BZ #11892]
3597         * stdlib/putenv.c (putenv): Don't always create copy of the variable
3598         on the stack.
3599
3600         [BZ #11895]
3601         * misc/pselect.c (__pselect): Handle timeout value errors hidden
3602         through underflows.
3603
3604         [BZ #12766]
3605         * misc/error.c (error_at_line): Ensure file_name and old_file_name
3606         point to strings before performing equality test for error_one_per_line
3607         mode.
3608
3609         [BZ #11697]
3610         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
3611
3612         [BZ #11820]
3613         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
3614         (struct user_fpregs_struct): Avoid __uint*_t types.
3615
3616         [BZ #6420]
3617         * malloc/mtrace.c (tr_where): Add additional parameter to point to
3618         symbol info.  Use it instead of calling _dl_addr locally.
3619         (lock_and_info): New function.
3620         (tr_freehook): Call lock_and_info and pass symbol info as additional
3621         parameter to tr_where.
3622         (tr_mallochook): Likewise.
3623         (tr_reallochook): Likewise.
3624         (tr_memalignhook): Likewise.
3625
3626         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
3627         used and couldn't be at all thread-safe.
3628
3629 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
3630
3631         * libio/freopen.c (freopen): Don't close old file descriptor
3632         before the new one is opened.  Instead dup the new file descriptor
3633         to the old one after the new stream is created.
3634         * libio/freopen64.c (freopen64): Likewise.
3635         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
3636         * libio/fileops.c (_IO_new_file_close_it): Handle new
3637         _IO_FLAGS2_NOCLOSE flag.
3638         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
3639         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
3640         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
3641         _IO_FLAGS2_NOCLOSE flag.
3642         * include/unistd.h: Add hidden_proto for dup3.
3643         Define __have_dup3.
3644         * io/dup3.c: Define hidden symbol.
3645         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
3646
3647         [BZ #7101]
3648         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
3649         when an incomplete long option is used.
3650         * posix/tst-getopt_long1.c: New file.
3651         * posix/Makefile (tests): Add tst-getopt_long1.
3652
3653         [BZ #10138]
3654         * scripts/config.guess: Update from autoconf-2.68.
3655         * scripts/config.sub: Likewise.
3656
3657         [BZ #10157]
3658         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
3659         tests into ...
3660         (has_cpuclock): ...this.  New function.
3661         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
3662         macro here based on has_cpuclock code.
3663
3664         [BZ #10149]
3665         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3666         First byte (not low byte) is now always NUL.
3667         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
3668
3669         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3670         Use non-cancelable interfaces.
3671
3672         [BZ #9809]
3673         * locale/iso-639.def: Add entry for Sorani.
3674
3675         [BZ #11901]
3676         * include/stdlib.h: Move include protection to the right place.
3677         Define abort_msg_s.  Declare __abort_msg with it.
3678         * stdlib/abort.c (__abort_msg): Adjust type.
3679         * assert/assert.c (__assert_fail_base): New function.  Majority
3680         of code from __assert_fail.  Allocate memory for __abort_msg with
3681         mmap.
3682         (__assert_fail): Now call __assert_fail_base.
3683         * assert/assert-perr.c: Remove bulk of implementation.  Use
3684         __assert_fail_base.
3685         * include/assert.hL Declare __assert_fail_base.
3686         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
3687         mmap.
3688         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3689
3690 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
3691
3692         [BZ #11952]
3693         [BZ #12453]
3694         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
3695         until all modules are registered in the DTV.
3696         * elf/Makefile: Add rules to build and run tst-tls19.
3697         * elf/tst-tls19.c: New file.
3698         * elf/tst-tls19mod1.c: New file.
3699         * elf/tst-tls19mod2.c: New file.
3700         * elf/tst-tls19mod3.c: New file.
3701         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
3702
3703         [BZ #12083]
3704         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
3705         correctly.
3706
3707         [BZ #12601]
3708         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
3709         two-byte sequence errors.
3710         * iconvdata/Makefile (tests): Add bug-iconv8.
3711         * iconvdata/bug-iconv8.c: New file.
3712
3713         [BZ #12626]
3714         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
3715         buf2 definition.
3716
3717         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
3718
3719         [BZ #12432]
3720         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
3721         (dummy_getcfa): New function.
3722         (init): Get _Unwind_GetCFA address, use dummy if not found.
3723         (backtrace_helper): In recursion check, also check whether CFA changes.
3724         (__backtrace): Completely initialize arg.
3725
3726         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
3727         storing incomplete byte sequence in state object.  Avoid testing for
3728         guaranteed too small input if we know there is enough data available.
3729
3730 2011-05-11  Andreas Schwab  <schwab@redhat.com>
3731
3732         * Makeconfig (+link-pie): Indent.
3733         * Rules (binaries-pie): Define if $(have-fpie) and
3734         $(build-shared).
3735         (binaries-shared): Also filter out $(binaries-pie).
3736         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
3737         * nscd/Makefile (others-pie): Add nscd.
3738         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
3739         ($(objpfx)nscd): Remove command override.
3740         * login/Makefile (others-pie): Add pt_chown.
3741         ($(objpfx)pt_chown): Remove command override.
3742         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
3743         remove command overrides.
3744
3745 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
3746
3747         * libio/tst_putwc.c: Fix error messages.
3748
3749         [BZ #12724]
3750         * libio/fileops.c (_IO_new_file_close_it): Always flush when
3751         currently writing and seek to current position when not.
3752         * libio/Makefile (tests): Add bug-fclose1.
3753         * libio/bug-fclose1.c: New file.
3754
3755 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
3756
3757         [BZ #12511]
3758         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
3759         don't set DF_1_NODELETE here.
3760         (do_lookup_x): When entering new entry test for copy relocation
3761         and if necessary set DF_1_NODELETE flag.
3762         * elf/tst-unique4.cc: New file.
3763         * elf/tst-unique4.h: New file.
3764         * elf/tst-unique4lib.cc: New file.
3765         * elf/Makefile: Add rules to build and run tst-unique4.
3766         Patch by Piotr Bury <pbury@goahead.com>.
3767
3768 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3769
3770         [BZ #12052]
3771         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
3772
3773         [BZ #12625]
3774         * misc/mntent_r.c (addmntent): Flush the stream after the output
3775
3776         [BZ #12393]
3777         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
3778         (is_trusted_path_normalize): Skip initial colon.  Append slash
3779         to empty buffer.  Duplicate is_trusted_path code but allow
3780         constructed patch to be prefix.
3781         (is_dst): Allow $ORIGIN followed by /.
3782         (_dl_dst_substitute): Correct clearing of check_for_trusted.
3783         Correct testing of result of is_trusted_path_normalize
3784         (decompose_rpath): Fix warning.
3785
3786 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
3787
3788         [BZ #11257]
3789         * grp/initgroups.c (internal_getgrouplist): When we found the service
3790         list through the initgroups entry in nsswitch.conf do not always
3791         continue on a successful lookup.  Don't always use the
3792         __nss_group_database value if it is set.
3793         * nss/nsswitch.conf (initgroups): Change action for successful db
3794         lookup to continue for compatibility.
3795
3796 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
3797
3798         [BZ #11532]
3799         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
3800         and CP774 modules.
3801         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
3802         and CP774 modules.
3803         * iconvdata/tst-tables.sh: Likewise.
3804         * iconvdata/cp770.c: New file.
3805         * iconvdata/cp771.c: New file.
3806         * iconvdata/cp772.c: New file.
3807         * iconvdata/cp773.c: New file.
3808         * iconvdata/cp774.c: New file.
3809         * iconvdata/testdata/CP770: New file.
3810         * iconvdata/testdata/CP770..UTF8: New file.
3811         * iconvdata/testdata/CP771: New file.
3812         * iconvdata/testdata/CP771..UTF8: New file.
3813         * iconvdata/testdata/CP772: New file.
3814         * iconvdata/testdata/CP772..UTF8: New file.
3815         * iconvdata/testdata/CP773: New file.
3816         * iconvdata/testdata/CP773..UTF8: New file.
3817         * iconvdata/testdata/CP774: New file.
3818         * iconvdata/testdata/CP774..UTF8: New file.
3819
3820         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
3821         END CHARMAP line.
3822         * iconvdata/gen-8bit-gap.sh: Likewise.
3823         * iconvdata/gen-8bit.sh: Likewise.
3824
3825         * locale/iso-639.def: Add ary entry.
3826
3827         [BZ #11258]
3828         * locale/C-translit.h.in: Add U20A1 transliteration.
3829
3830         [BZ #12178]
3831         * locale/iso-639.def: Add wae entry.
3832         Patch by Kevin Bortis <bortis@translate-wae.ch>.
3833
3834         [BZ #12545]
3835         * locale/programs/localedef.c (construct_output_path): Use ssize_t
3836         for n.
3837
3838         [BZ #12711]
3839         * locale/C-translit.h.in: Add entry for U20B9.
3840         Patch by pravin.d.s@gmail.com.
3841
3842 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
3843
3844         [BZ #12713]
3845         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
3846         ENAMETOOLONG use generic getcwd.
3847         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
3848         in rtld.  Use *stat64.
3849         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
3850         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
3851         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
3852         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
3853         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
3854         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
3855         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
3856         __fstatat64 macros.
3857         * include/dirent.h: Add libc_hidden_proto for rewinddir.
3858         * dirent/rewinddir.c: Add libc_hidden_def.
3859         * sysdeps/mach/hurd/rewinddir.c: Likewise.
3860         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
3861
3862         * include/dirent.h (__alloc_dir): Add flags parameter.
3863         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
3864         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
3865         __alloc_dir.
3866         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
3867         from fdopendir if O_CLOEXEC is already set.
3868
3869 2011-03-15  Alan Modra  <amodra@gmail.com>
3870
3871         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
3872         l_tls_firstbyte_offset non-zero.  Save padding offset in
3873         l_tls_firstbyte_offset for later use.
3874         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
3875         freeing static tls block.
3876
3877 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
3878
3879         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
3880         where #ifdef was intended.  The intent is to prevent ARG_MAX from
3881         being defined by the kernel headers.
3882
3883 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
3884
3885         [BZ #12734]
3886         * resolv/resolv.h: Define RES_NOTLDQUERY.
3887         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
3888         no-tld-query and set RES_NOTLDQUERY.
3889         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
3890         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
3891         modern BIND to search name as TLD unless forbidden.
3892
3893 2011-05-07  Petr Baudis  <pasky@suse.cz>
3894             Ulrich Drepper  <drepper@gmail.com>
3895
3896         [BZ #12393]
3897         * elf/dl-load.c (fillin_rpath): Move trusted path check...
3898         (is_trusted_path): ...to here.
3899         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
3900         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
3901         using is_trusted_path_normalize() in setuid scripts.
3902
3903 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3904
3905         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
3906         __BEGIN/__END_DECLS.
3907
3908 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
3909
3910         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
3911         NSS_STATUS_NOTFOUND if no record was found.
3912
3913 2011-05-05  Andreas Schwab  <schwab@redhat.com>
3914
3915         * sunrpc/Makefile (headers): Add rpc/netdb.h.
3916         (headers-not-in-tirpc): Remove rpc/netdb.h
3917         * resolv/netdb.h: Revert last change.
3918
3919 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3920
3921         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
3922         circular dependency between libgcc.a and libc.a.
3923
3924 2011-05-05  Andreas Schwab  <schwab@redhat.com>
3925
3926         * resolv/netdb.h: Don't include <rpc/netdb.h>.
3927         * nis/Makefile: Don't install rpcsvc/*.
3928         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
3929         instead of <rpc/types.h>.
3930         (MAXHOSTNAMELEN): Define.
3931
3932 2011-05-03  Andreas Schwab  <schwab@redhat.com>
3933
3934         * elf/ldconfig.c (add_dir): Don't crash on empty path.
3935
3936 2011-04-28  Maciej Babinski  <mbabinski@google.com>
3937
3938         [BZ #12714]
3939         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
3940         gethostbyname4_r when IPv6 results are possible.
3941
3942 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
3943
3944         [BZ #12723]
3945         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
3946         _PC_PIPE_BUF handling.
3947
3948 2011-04-30  Bruno Haible  <bruno@clisp.org>
3949
3950         [BZ #12717]
3951         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
3952         * resolv/netdb.h (getnameinfo): Change type of flags parameter
3953         to 'int'.
3954         * inet/getnameinfo.c (getnameinfo): Likewise.
3955
3956 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
3957
3958         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
3959         to groups setting in database lookup.
3960         * nss/nsswitch.conf: Add initgroups entry.
3961
3962 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
3963
3964         [BZ #12685]
3965         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
3966         mode string.
3967         Patch by Eric Blake <eblake@redhat.com>.
3968
3969 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
3970
3971         * sunrpc/Makefile (need-export-routines): Add svc_run.
3972         (routines): Remove svc_run.
3973         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
3974         * sunrpc/clnt_perr.c (clnt_perrno): Export.
3975         * sunrpc/svc_run.c (svc_run): Likewise.
3976         * sunrpc/svc_udp.c (svcudp_create): Likewise.
3977
3978 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
3979
3980         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
3981         problem in reallocation in last patch.
3982
3983 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
3984
3985         * sunrpc/Makefile: Move inclusion of Rules.
3986
3987 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
3988
3989         * nss/nss_files/files-initgroups.c: New file.
3990         * nss/Makefile (libnss_files-routines): Add files-initgroups.
3991         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
3992         _nss_files_initgroups_dyn.
3993
3994 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
3995
3996         * elf/elf.h (R_ARM_IRELATIVE): Define.
3997
3998 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
3999
4000         * po/ru.po: Update from translation team.
4001
4002 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
4003
4004         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
4005         dependencies.
4006
4007 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
4008
4009         [BZ #12653]
4010         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
4011         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
4012         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4013         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4014         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4015
4016 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
4017
4018         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
4019         differing bytes.
4020         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4021         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4022         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4023
4024 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
4025
4026         [BZ #12420]
4027         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
4028         storing it.
4029         * stdlib/bug-getcontext.c: New file.
4030         * stdlib/Makefile: Add rules to build and run bug-getcontext.
4031
4032 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4033
4034         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
4035         instructions into .machine "z9-109".
4036         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
4037         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
4038
4039 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4040
4041         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
4042         between environment variables and auxiliary vector.
4043
4044 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
4045
4046         * Makefile: Add rules to build linkobj/libc.so.
4047         * include/libc-symbols.h: Define libc_hidden_nolink.
4048         * include/rpc/auth.h: Mark functions which are to be hidden.
4049         * include/rpc/auth_des.h: Likewise.
4050         * include/rpc/auth_unix.h: Likewise.
4051         * include/rpc/clnt.h: Likewise.
4052         * include/rpc/des_crypt.h: Likewise.
4053         * include/rpc/key_prot.h: Likewise.
4054         * include/rpc/pmap_clnt.h: Likewise.
4055         * include/rpc/pmap_prot.h: Likewise.
4056         * include/rpc/pmap_rmt.h: Likewise.
4057         * include/rpc/rpc_msg.h: Likewise.
4058         * include/rpc/svc.h: Likewise.
4059         * include/rpc/svc_auth.h: Likewise.
4060         * include/rpc/xdr.h: Likewise.
4061         * nis/Makefile: Link all DSOs against linkobj/libc.so.
4062         * nss/Makefile: Likewise.
4063         * sunrpc/Makefile: Don't install headers.  Build library with normal
4064         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
4065         * sunrpc/auth_des.c: Hide exported symbols by default, export some
4066         for the compat linking library.  Remove use of INTDEF/INTUSE.
4067         * sunrpc/auth_none.c: Likewise.
4068         * sunrpc/auth_unix.c: Likewise.
4069         * sunrpc/authdes_prot.c: Likewise.
4070         * sunrpc/authuxprot.c: Likewise.
4071         * sunrpc/clnt_gen.c: Likewise.
4072         * sunrpc/clnt_perr.c: Likewise.
4073         * sunrpc/clnt_raw.c: Likewise.
4074         * sunrpc/clnt_simp.c: Likewise.
4075         * sunrpc/clnt_tcp.c: Likewise.
4076         * sunrpc/clnt_udp.c: Likewise.
4077         * sunrpc/clnt_unix.c: Likewise.
4078         * sunrpc/des_crypt.c: Likewise.
4079         * sunrpc/des_soft.c: Likewise.
4080         * sunrpc/get_myaddr.c: Likewise.
4081         * sunrpc/key_call.c: Likewise.
4082         * sunrpc/key_prot.c: Likewise.
4083         * sunrpc/netname.c: Likewise.
4084         * sunrpc/pm_getmaps.c: Likewise.
4085         * sunrpc/pm_getport.c: Likewise.
4086         * sunrpc/pmap_clnt.c: Likewise.
4087         * sunrpc/pmap_prot.c: Likewise.
4088         * sunrpc/pmap_prot2.c: Likewise.
4089         * sunrpc/pmap_rmt.c: Likewise.
4090         * sunrpc/publickey.c: Likewise.
4091         * sunrpc/rpc_cmsg.c: Likewise.
4092         * sunrpc/rpc_common.c: Likewise.
4093         * sunrpc/rpc_dtable.c: Likewise.
4094         * sunrpc/rpc_prot.c: Likewise.
4095         * sunrpc/rpc_thread.c: Likewise.
4096         * sunrpc/rtime.c: Likewise.
4097         * sunrpc/svc.c: Likewise.
4098         * sunrpc/svc_auth.c: Likewise.
4099         * sunrpc/svc_authux.c: Likewise.
4100         * sunrpc/svc_raw.c: Likewise.
4101         * sunrpc/svc_run.c: Likewise.
4102         * sunrpc/svc_simple.c: Likewise.
4103         * sunrpc/svc_tcp.c: Likewise.
4104         * sunrpc/svc_udp.c: Likewise.
4105         * sunrpc/svc_unix.c: Likewise.
4106         * sunrpc/svcauth_des.c: Likewise.
4107         * sunrpc/xcrypt.c: Likewise.
4108         * sunrpc/xdr.c: Likewise.
4109         * sunrpc/xdr_array.c: Likewise.
4110         * sunrpc/xdr_float.c: Likewise.
4111         * sunrpc/xdr_intXX_t.c: Likewise.
4112         * sunrpc/xdr_mem.c: Likewise.
4113         * sunrpc/xdr_rec.c: Likewise.
4114         * sunrpc/xdr_ref.c: Likewise.
4115         * sunrpc/xdr_sizeof.c: Likewise.
4116         * sunrpc/xdr_stdio.c: Likewise.
4117
4118 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
4119
4120         [BZ #12650]
4121         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
4122         * sysdeps/ia64/dl-tls.h: Likewise.
4123         * sysdeps/powerpc/dl-tls.h: Likewise.
4124         * sysdeps/s390/dl-tls.h: Likewise.
4125         * sysdeps/sh/dl-tls.h: Likewise.
4126         * sysdeps/sparc/dl-tls.h: Likewise.
4127         * sysdeps/x86_64/dl-tls.h: Likewise.
4128         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
4129
4130 2011-03-14  Andreas Schwab  <schwab@redhat.com>
4131
4132         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
4133         rpath element also skip the following colon.
4134         (expand_dynamic_string_token): Add is_path parameter and pass
4135         down to DL_DST_REQUIRED and _dl_dst_substitute.
4136         (decompose_rpath): Call expand_dynamic_string_token with
4137         non-zero is_path.  Ignore empty rpaths.
4138         (_dl_map_object_from_fd): Call expand_dynamic_string_token
4139         with zero is_path.
4140
4141 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
4142
4143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
4144         Make cancelable.
4145
4146 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
4147
4148         [BZ #12655]
4149         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
4150         Patch by Filipe David Manana <fdmanana@apache.org>.
4151
4152 2011-04-07  Andreas Schwab  <schwab@redhat.com>
4153
4154         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
4155         Maintain aligned stack.
4156         (CHECK_RSP): Remove unused macro.
4157
4158 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
4159
4160         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
4161         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4162
4163 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
4164
4165         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
4166
4167         * include/features.h: Mention __USE_XOPEN2K8 in comment.
4168
4169 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
4170
4171         [BZ #12518]
4172         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
4173         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
4174         * sysdeps/x86_64/memmove.c: New file.
4175         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
4176         (memcpy): Renamed to ...
4177         (__new_memcpy): This.
4178         (memcpy): Provide GLIBC_2_14 memcpy.
4179         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
4180         (memcpy): Provide GLIBC_2_2_5 memcpy.
4181
4182 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
4183
4184         [BZ #12631]
4185         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
4186
4187 2011-03-30  Andreas Schwab  <schwab@redhat.com>
4188
4189         * misc/syncfs.c: New file.
4190         * misc/Makefile (routines): Add syncfs.
4191         * posix/unistd.h: Declare syncfs.
4192         * sysdeps/unix/syscalls.list: Add syncfs.
4193
4194 2011-04-01  Andreas Schwab  <schwab@redhat.com>
4195
4196         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
4197         open_by_handle_at.
4198         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4199         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4200         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4201         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4202         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4203         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4204         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4205
4206 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
4207
4208         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
4209         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4210         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4211         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4212         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4213         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4214         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4215
4216         * io/Makefile: Compile fallocate.c, fallocate64.c, and
4217         sync_file_range.c with -fexceptions.
4218         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
4219         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4220         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
4221         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
4222         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4223         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
4224         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
4225         sync_file_range as cancellation point
4226         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
4227         now a wrapper around __call_sync_file_range with cancellation handling.
4228         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
4229         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
4230         function name to __call_sync_file_range.
4231         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
4232         Add call_sync_file_range.
4233
4234 2011-04-01  Andreas Schwab  <schwab@redhat.com>
4235
4236         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4237         bits/timex.h.
4238
4239 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
4240
4241         * iconv/iconv.h: Fix typo in comment.
4242         * io/fcntl.h: Likewise.
4243         * libio/stdio.h: Likewise.
4244         * posix/spawn.h: Likewise.
4245         * posix/unistd.h: Likewise.
4246         * stdlib/stdlib.h: Likewise.
4247         * time/time.h: Likewise.
4248         * wcsmbs/wchar.h: Likewise.
4249
4250         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
4251         open_by_handle): Add.
4252         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
4253         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
4254         Augment a few comments.
4255         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4256         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4257         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4258         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4259         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4260         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
4261         open_by_handle.
4262
4263         * io/fcntl.h (AT_EMPTY_PATH): Define.
4264
4265 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
4266
4267         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
4268         * sysdeps/unix/sysv/linux/bits/time.h: New file.
4269         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
4270         to...
4271         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
4272         * Versions.def: Add GLIBC_2.14.
4273         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
4274         Export.
4275
4276 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
4277
4278         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
4279         round counter.
4280         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
4281
4282 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4283
4284         [BZ #12597]
4285         * string/test-strncmp.c (do_page_test): New function.
4286         (check2): Likewise.
4287         (test_main): Call check2.
4288         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
4289
4290 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
4291
4292         [BZ #12587]
4293         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
4294         Handle cache information in CPU leaf 4.
4295         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
4296
4297 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
4298
4299         [BZ #12583]
4300         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
4301         character representation.
4302         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
4303
4304 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
4305
4306         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
4307         END(__isnan) to END(__isnanf) to match function entry point/label
4308         EALIGN(__isnanf,...).
4309
4310 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
4311
4312         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
4313
4314 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
4315
4316         [BZ #12510]
4317         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
4318         copy from the symbol referenced in the relocation to initialize the
4319         used variable.
4320         Patch by Piotr Bury <pbury@goahead.com>.
4321         * elf/Makefile: Add rules to build and tst-unique3.
4322         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
4323         * elf/tst-unique3.cc: New file.
4324         * elf/tst-unique3.h: New file.
4325         * elf/tst-unique3lib.cc: New file.
4326         * elf/tst-unique3lib2.cc: New file.
4327
4328         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
4329
4330 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
4331
4332         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
4333         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
4334         to _start.
4335
4336 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
4337
4338         * elf/dl-load.c (_dl_map_object): If we are looking for the first
4339         to-be-loaded object along a path to loader is ld.so.
4340
4341 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
4342             Ulrich Drepper  <drepper@gmail.com>
4343
4344         * sysdeps/x86_64/memset.S: After aligning destination, code
4345         branches to different locations depending on the value of
4346         misalignment, when multiarch is enabled. Fix this.
4347
4348 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
4349
4350         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
4351         Set _x86_64_preferred_memory_instruction for AMD processsors.
4352         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4353         Set bit_Prefer_SSE_for_memop for AMD processors.
4354
4355 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
4356
4357         * libio/fmemopen.c (fmemopen): Optimize a bit.
4358
4359 2011-03-03  Andreas Schwab  <schwab@redhat.com>
4360
4361         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
4362
4363 2011-03-03  Roland McGrath  <roland@redhat.com>
4364
4365         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
4366
4367 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
4368
4369         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
4370         __bzero_ultra1 instead of __memset_ultra1.
4371
4372 2011-02-23  Andreas Schwab  <schwab@redhat.com>
4373             Ulrich Drepper  <drepper@gmail.com>
4374
4375         [BZ #12509]
4376         * include/link.h (struct link_map): Add l_orig_initfini.
4377         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
4378         returning unsuccessfully.
4379         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
4380         close of a file loaded at startup, restore the original l_initfini
4381         list.
4382         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
4383         list, store the pointer.
4384         * elf/Makefile ($(objpfx)noload-mem): New rule.
4385         (noload-ENV): Define.
4386         (tests): Add $(objpfx)noload-mem.
4387         * elf/noload.c: Include <memcheck.h>.
4388         (main): Call mtrace.  Close all opened handles.
4389
4390 2011-02-17  Andreas Schwab  <schwab@redhat.com>
4391
4392         [BZ #12454]
4393         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
4394         dependencies are missing.
4395
4396 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4397
4398         Fix __if_freereq crash: Unlike the generic version which uses free,
4399         Hurd needs munmap.
4400         * sysdeps/mach/hurd/ifreq.h: New file.
4401
4402 2011-01-27  Petr Baudis  <pasky@suse.cz>
4403             Ulrich Drepper  <drepper@gmail.com>
4404
4405         [BZ 12445]#
4406         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
4407         to extend_alloca().
4408         * stdio-common/bug23.c: New file.
4409         * stdio-common/Makefile (tests): Add bug23.
4410
4411 2010-09-28  Andreas Schwab  <schwab@redhat.com>
4412             Ulrich Drepper  <drepper@gmail.com>
4413
4414         [BZ #12489]
4415         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
4416         before performing relro protection.  At old place add assertion
4417         to make sure nothing changed.
4418
4419 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
4420             Glauber de Oliveira Costa  <glommer@gmail.com>
4421
4422         * elf/elf.h: Add new ARM TLS relocs.
4423
4424 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
4425
4426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4427         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
4428         cast from r3.
4429         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
4430         'tests' variable.
4431         * sysdeps/wordsize-64/tst-writev.c: New file.
4432
4433 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
4434
4435         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
4436         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
4437         insns in _dl_start to prevent a TOC reference before relocs are
4438         resolved.
4439
4440 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
4441
4442         [BZ #12469]
4443         * Makeconfig: Remove RANLIB definition.
4444         * Makerules: Don't use RANLIB.
4445         * aclocal.m4: Remove ranlib test.
4446         * configure.in: No need to check for ranlib.
4447         * elf/rtld-Rules: Don't use RANLIB.
4448
4449 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4450
4451         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
4452         protection macro.
4453         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
4454         inclusion protection macro.
4455
4456         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
4457         SIGRTMIN and SIGRTMAX and print information in that case only when
4458         SIGRTMIN is defined.
4459
4460 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
4461
4462         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
4463         arginfo fn returning -1.
4464
4465         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
4466         and thousands string is zero terminated.
4467
4468 2011-02-03  Andreas Schwab  <schwab@redhat.com>
4469
4470         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
4471         sysdeps/unix/sysv/linux/bits/socket.h.
4472
4473 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4474
4475         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
4476         (__CPU_COUNT): Remove old macros.
4477         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
4478         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
4479         (__CPU_ALLOC, __CPU_FREE): Add macros.
4480         (__sched_cpualloc, __sched_cpufree): Add declarations.
4481
4482 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
4483
4484         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
4485         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
4486         * nscd/aicache.c (addhstaiX): Return timeout of added value.
4487         (readdhstai): Return value of addhstaiX call.
4488         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
4489         (addgrbyX): Return value returned by cache_addgr.
4490         (readdgrbyname): Return value returned by addgrbyX.
4491         (readdgrbygid): Likewise.
4492         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
4493         (addpwbyX): Return value returned by cache_addpw.
4494         (readdpwbyname): Return value returned by addhstbyX.
4495         (readdpwbyuid): Likewise.
4496         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
4497         (addservbyX): Return value returned by cache_addserv.
4498         (readdservbyname): Return value returned by addservbyX:
4499         (readdservbyport): Likewise.
4500         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
4501         (addhstbyX): Return value returned by cache_addhst.
4502         (readdhstbyname): Return value returned by addhstbyX.
4503         (readdhstbyaddr): Likewise.
4504         (readdhstbynamev6): Likewise.
4505         (readdhstbyaddrv6): Likewise.
4506         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
4507         (readdinitgroups): Return value returned by addinitgroupsX.
4508         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
4509         (prune_cache): Keep track of timeout value of re-added entries.
4510         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
4511         * nscd/nscd.h: Adjust prototypes of readd* functions.
4512
4513 2011-02-04  Roland McGrath  <roland@redhat.com>
4514
4515         * nis/nis_server.c (nis_servstate): Use the right name for 0.
4516         (nis_stats): Likewise.
4517         * nis/nis_modify.c (nis_modify): Likewise.
4518         * nis/nis_remove.c (nis_remove): Likewise.
4519         * nis/nis_add.c (nis_add): Likewise.
4520
4521         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
4522
4523         * posix/fnmatch_loop.c: Add some consts.
4524
4525         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
4526
4527 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4528
4529         [BZ #12460]
4530         * config.make.in (config-cflags-novzeroupper): Define.
4531         * configure.in: Substitute libc_cv_cc_novzeroupper.
4532         * elf/Makefile (AVX-CFLAGS): Define.
4533         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
4534         (CFLAGS-tst-auditmod4a.c): Likewise.
4535         (CFLAGS-tst-auditmod4b.c): Likewise.
4536         (CFLAGS-tst-auditmod6b.c): Likewise.
4537         (CFLAGS-tst-auditmod6c.c): Likewise.
4538         (CFLAGS-tst-auditmod7b.c): Likewise.
4539         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
4540
4541 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
4542
4543         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
4544         function to the callback.
4545         Patch partly by Jiri Olsa <jolsa@redhat.com>.
4546
4547 2011-02-02  Andreas Schwab  <schwab@redhat.com>
4548
4549         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
4550         of errno.
4551
4552 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
4553
4554         [BZ #11724]
4555         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
4556         of constructors.
4557         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
4558         of destructors.
4559         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
4560
4561         [BZ #11724]
4562         * elf/Makefile: Add rules to build and run new test.
4563         * elf/tst-initorder.c: New file.
4564         * elf/tst-initorder.exp: New file.
4565         * elf/tst-initordera1.c: New file.
4566         * elf/tst-initordera2.c: New file.
4567         * elf/tst-initordera3.c: New file.
4568         * elf/tst-initordera4.c: New file.
4569         * elf/tst-initorderb1.c: New file.
4570         * elf/tst-initorderb2.c: New file.
4571         * elf/tst-order-a1.c: New file.
4572         * elf/tst-order-a2.c: New file.
4573         * elf/tst-order-a3.c: New file.
4574         * elf/tst-order-a4.c: New file.
4575         * elf/tst-order-b1.c: New file.
4576         * elf/tst-order-b2.c: New file.
4577         * elf/tst-order-main.c: New file.
4578         New test case by George Gensure <werkt0@gmail.com>.
4579
4580 2010-10-01  Andreas Schwab  <schwab@redhat.com>
4581
4582         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
4583         decoding ACE if AI_CANONIDN.
4584
4585 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
4586
4587         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
4588
4589 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
4590
4591         * version.h (RELEASE): Bump for 2.13 release.
4592         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
4593
4594         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
4595
4596         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
4597         MADV_NOHUGEPAGE.
4598         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4599         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
4600         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4601         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4602         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4603         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
4604
4605         * posix/getconf.c: Update copyright year.
4606         * catgets/gencat.c: Likewise.
4607         * csu/version.c: Likewise.
4608         * debug/catchsegv.sh: Likewise.
4609         * debug/xtrace.sh: Likewise.
4610         * elf/ldconfig.c: Likewise.
4611         * elf/ldd.bash.in: Likewise.
4612         * elf/sprof.c (print_version): Likewise.
4613         * iconv/iconv_prog.c: Likewise.
4614         * iconv/iconvconfig.c: Likewise.
4615         * locale/programs/locale.c: Likewise.
4616         * locale/programs/localedef.c: Likewise.
4617         * malloc/memusage.sh: Likewise.
4618         * malloc/mtrace.pl: Likewise.
4619         * nscd/nscd.c (print_version): Likewise.
4620         * nss/getent.c: Likewise.
4621
4622         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
4623         PF_CAIF, and PF_ALG.
4624         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4625
4626 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
4627
4628         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
4629         (modules-names): Use them.
4630         (ifunc-test-modules, ifunc-pie-tests): Define.
4631         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
4632         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
4633         (test-extras): Likewise.
4634         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
4635         $(compile-command.c).
4636         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
4637         (all-built-dso): Define.
4638         (check-textrel.out, check-execstack.out): Depend on it.
4639
4640         * configure.in: Don't override --enable-multi-arch.
4641
4642 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
4643
4644         [BZ #6812]
4645         * nscd/hstcache.c (tryagain): Define.
4646         (cache_addhst): Return tryagain not notfound for temporary errors.
4647         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
4648         failed.
4649
4650 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
4651
4652         [BZ #10563]
4653         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
4654         to make the syscall.
4655         * sysdeps/unix/sysv/linux/setgroups.c: New file.
4656
4657         [BZ #12378]
4658         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
4659         and fall back to matching as normal character if the string ends before
4660         the matching ']' is found.  This is what POSIX requires.
4661         * posix/testfnm.c: Adjust test result.
4662         * posix/globtest.sh: Adjust test result.  Add new test.
4663         * posix/tst-fnmatch.input: Likewise.
4664         * posix/tst-fnmatch2.c: Add new test.
4665
4666 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
4667
4668         * elf/Makefile (check-execstack): Revert last change.  Depend on
4669         check-execstack.h.
4670         (check-execstack.h): New target.
4671         (generated): Add check-execstack.h.
4672         * elf/check-execstack.c: Include "check-execstack.h".
4673         (main): Revert last change.
4674         (handle_file): Return zero if GNU_STACK is absent and
4675         DEFAULT_STACK_PERMS doesn't include PF_X.
4676
4677 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
4678
4679         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
4680         in child fails because the descriptor is already closed.
4681         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
4682         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
4683         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
4684
4685         [BZ #12397]
4686         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
4687         syscall.
4688
4689         [BZ #10484]
4690         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
4691         temporary buffer used to handle multi lookups locally.
4692         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
4693
4694 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
4695
4696         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
4697         loader is ld.so.
4698
4699 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
4700
4701         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
4702         alignment for SSE2.
4703
4704 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
4705
4706         [BZ #12394]
4707         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
4708         characters.  When rounding increased number of integer digits recompute
4709         number of groups.
4710         * stdio-common/tst-grouping.c: New file.
4711         * stdio-common/Makefile: Add rules to build and run tst-grouping.
4712
4713 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
4714
4715         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
4716         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
4717
4718         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
4719         void.
4720         * bits/select.h: Likewise.
4721
4722 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
4723
4724         * po/ja.po: Update from translation team.
4725
4726 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
4727
4728         [BZ #11155]
4729         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
4730         implementation just like for lxstat, fxstatat, et al.
4731
4732 2010-12-27  Jim Meyering  <meyering@redhat.com>
4733
4734         [BZ #12348]
4735         * posix/regexec.c (build_trtable): Return failure indication upon
4736         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4737
4738 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
4739
4740         [BZ #12201]
4741         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
4742         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
4743         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
4744         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
4745
4746         [BZ #12207]
4747         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
4748
4749         [BZ #12204]
4750         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
4751         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
4752
4753 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
4754
4755         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
4756         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
4757         script has SORT_BY_INIT_PRIORITY.
4758         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
4759         NO_CTORS_DTORS_SECTIONS is defined.
4760         * elf/soinit.c: Likewise.
4761         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
4762         NO_CTORS_DTORS_SECTIONS is defined.
4763         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4764         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4765         * sysdeps/sh/init-first.c: Likewise.
4766         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4767
4768 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
4769
4770         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
4771         always use the slow path.
4772
4773 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
4774
4775         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
4776         similar rule which adds the sysdep directories to the header search in
4777         order to pick up the correct platform stackinfo.h.
4778         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
4779         perform test if it is, otherwise return successfully without testing.
4780         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
4781         DEFAULT_STACK_PERMS define in stackinfo.h.
4782         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
4783         defined in stackinfo.h.
4784         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
4785         DEFAULT_STACK_PERMS defined in stackinfo.h.
4786         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
4787         * sysdeps/ia64/stackinfo.h: Likewise.
4788         * sysdeps/s390/stackinfo.h: Likewise.
4789         * sysdeps/sh/stackinfo.h: Likewise.
4790         * sysdeps/sparc/stackinfo.h: Likewise.
4791         * sysdeps/x86_64/stackinfo.h: Likewise.
4792         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
4793         PF_X for powerpc64.  Retain PF_X for powerpc32.
4794
4795 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
4796
4797         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
4798         accurately.
4799         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
4800         GETDENTS_64BIT_ALIGNED.
4801
4802 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
4803
4804         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
4805
4806 2010-12-10  Andreas Schwab  <schwab@redhat.com>
4807
4808         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
4809         _GNU_SOURCE.
4810
4811         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
4812         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
4813         Remove __restrict.
4814         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
4815         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
4816
4817 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
4818
4819         [BZ #11655]
4820         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
4821         are initialized.
4822
4823 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
4824
4825         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
4826
4827 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
4828
4829         * po/it.po: Update from translation team.
4830
4831 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
4832
4833         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
4834         unused codes.
4835
4836 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
4837
4838         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
4839
4840 2010-11-24  Andreas Schwab  <schwab@redhat.com>
4841
4842         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
4843         specially.
4844         (gaih_getanswer_slice): Likewise.
4845
4846 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
4847
4848         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
4849
4850 2010-05-31  Petr Baudis  <pasky@suse.cz>
4851
4852         [BZ #11149]
4853         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
4854         silently even in the chroot mode.
4855
4856 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
4857
4858         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
4859         last patch a bit.  Pretty printing
4860
4861 2010-05-31  Petr Baudis <pasky@suse.cz>
4862
4863         [BZ #10085]
4864         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
4865         initialization of skip_initgroups_dyn.
4866
4867 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
4868
4869         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
4870         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
4871
4872 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
4873
4874         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
4875
4876 2010-11-11  Andreas Schwab  <schwab@redhat.com>
4877
4878         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
4879         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
4880         (tst-fnmatch-ENV): Set MALLOC_TRACE.
4881         ($(objpfx)tst-fnmatch-mem): New rule.
4882         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
4883         * posix/tst-fnmatch.c (main): Call mtrace.
4884
4885 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
4886
4887         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4888         Support Intel processor model 6 and model 0x2c.
4889
4890 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
4891
4892         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
4893           signed comparison.
4894
4895 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4896
4897         [BZ #12205]
4898         * string/test-strncasecmp.c (check_result): New function.
4899         (do_one_test): Use it.
4900         (check1): New function.
4901         (test_main): Use it.
4902         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
4903         Support strcasecmp and strncasecmp.
4904
4905 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
4906
4907         [BZ #12194]
4908         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
4909         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4910
4911 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4912
4913         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
4914         IFUNC support.
4915         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4916         memset-x86-64.
4917         * sysdeps/x86_64/multiarch/bzero.S: New file.
4918         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
4919         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
4920         * sysdeps/x86_64/multiarch/memset.S: New file.
4921         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
4922         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4923         Set bit_Prefer_SSE_for_memop for Intel processors.
4924         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
4925         Define.
4926         (index_Prefer_SSE_for_memop): Define.
4927         (HAS_PREFER_SSE_FOR_MEMOP): Define.
4928
4929 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
4930
4931         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
4932         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
4933
4934 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4935
4936         [BZ #12191]
4937         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
4938         (__x86_64_raw_data_cache_size_half): Likewise.
4939         (__x86_64_raw_shared_cache_size): Likewise.
4940         (__x86_64_raw_shared_cache_size_half): Likewise.
4941
4942         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
4943         (__x86_64_raw_data_cache_size_half): Likewise.
4944         (__x86_64_raw_shared_cache_size): Likewise.
4945         (__x86_64_raw_shared_cache_size_half): Likewise.
4946         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
4947         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
4948         and __x86_64_raw_shared_cache_size_half.  Round
4949         __x86_64_data_cache_size_half, __x86_64_data_cache_size
4950         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
4951         to multiple of 256 bytes.
4952
4953 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
4954
4955         [BZ #12167]
4956         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
4957         of inacessible symlinks.  Verify result of symlink before returning it.
4958         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
4959         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
4960
4961 2010-10-28  Erich Ritz  <erichritz@gmail.com>
4962
4963         * math/math.h (isinf): Fix typo in comment.
4964
4965 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
4966
4967         * po/da.po: Update from translation team.
4968
4969 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
4970
4971         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
4972         is added to the list.
4973
4974 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4975             Ulrich Drepper  <drepper@gmail.com>
4976
4977         * elf/dl-object.c (_dl_new_object): Don't append the new object to
4978         the global list here.  Move code to...
4979         (_dl_add_to_namespace_list): ...here.  New function.
4980         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
4981         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
4982         * elf/dl-load.c (lose): Don't remove the element from the list.
4983         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
4984         (_dl_map_object): Likewise.
4985
4986 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
4987
4988         [BZ #12159]
4989         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
4990         into all bytes of SSE register.
4991         Patch by Richard Li <richardpku@gmail.com>.
4992
4993 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
4994
4995         [BZ #12140]
4996         * malloc/malloc.c (_int_free): Fill correct number of bytes when
4997         perturbing.
4998
4999 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
5000
5001         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
5002         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
5003         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
5004         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
5005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
5006         submachine.
5007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
5008
5009 2010-10-22  Andreas Schwab  <schwab@redhat.com>
5010
5011         * include/dlfcn.h (__RTLD_SECURE): Define.
5012         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
5013         mode & __RTLD_SECURE instead.
5014         (open_path): Rename preloaded parameter to secure.
5015         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
5016         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
5017         * elf/dl-deps.c (openaux): Likewise.
5018         * elf/rtld.c (struct map_args): Remove is_preloaded.
5019         (map_doit): Don't use it.
5020         (dl_main): Likewise.
5021         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
5022         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
5023
5024 2010-09-09  Andreas Schwab  <schwab@redhat.com>
5025
5026         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
5027         (sysd-rules-targets): Remove duplicates.
5028         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
5029         rtld-%.$o dependency.
5030
5031 2010-10-18  Andreas Schwab  <schwab@redhat.com>
5032
5033         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
5034         _dl_map_object do it.
5035
5036 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
5037
5038         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
5039         fast fma builtins, define the macros in the C99 standard.
5040         (FP_FAST_FMAF): Likewise.
5041         (FP_FAST_FMAL): Likewise.
5042         * sysdeps/x86_64/bits/mathdef.h: Likewise.
5043
5044         * bits/mathdef.h: Update copyright year.
5045         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5046
5047 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
5048
5049         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
5050         builtins, define the macros in the C99 standard.
5051         (FP_FAST_FMAF): Likewise.
5052         (FP_FAST_FMAL): Likewise.
5053         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
5054         multiply/add.
5055         (FP_FAST_FMAF): Likewise.
5056
5057 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
5058
5059         [BZ #3268]
5060         * math/libm-test.inc (fma_test): Some new testcases.
5061         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
5062         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
5063         y and infinite z.  Do multiplication by C already in long double.
5064         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
5065         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
5066         y and infinite z.  Do bitwise or of inexact bit into u.d.
5067         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
5068         * sysdeps/i386/fpu/s_fmaf.S: Removed.
5069         * sysdeps/i386/fpu/s_fma.S: Removed.
5070         * sysdeps/i386/fpu/s_fmal.S: Removed.
5071
5072 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
5073
5074         [BZ #3268]
5075         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
5076         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
5077         computation is not scheduled after fetestexcept.  Fix value
5078         of minimum denormal long double.
5079
5080 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
5081
5082         [BZ #3268]
5083         * math/libm-test.inc (fma_test): Add some more tests.
5084         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
5085         correctly.
5086
5087 2010-10-15  Andreas Schwab  <schwab@redhat.com>
5088
5089         * scripts/data/localplt-s390-linux-gnu.data: New file.
5090         * scripts/data/localplt-s390x-linux-gnu.data: New file.
5091
5092 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
5093
5094         [BZ #3268]
5095         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
5096         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
5097         instead of dbl-64.
5098         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
5099         inlines.
5100         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
5101         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
5102         if one of x and y is very large and the other is subnormal.
5103         * sysdeps/s390/fpu/s_fmaf.c: New file.
5104         * sysdeps/s390/fpu/s_fma.c: New file.
5105         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
5106         * sysdeps/powerpc/fpu/s_fma.S: New file.
5107         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
5108         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
5109         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
5110
5111 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5112
5113         [BZ #3268]
5114         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
5115         fma tests.
5116         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
5117         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
5118         * sysdeps/i386/i686/multiarch/s_fma.c: Include
5119         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
5120         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
5121         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
5122         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
5123
5124 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
5125
5126         [BZ #12078]
5127         * posix/regcomp.c (parse_branch): One more memory leak plugged.
5128         * posix/bug-regex31.input: Add test case.
5129
5130 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
5131
5132         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
5133         * posix/bug-regex31.input: New file.
5134
5135         [BZ #12078]
5136         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
5137         (parse_sub_exp): Fix last change, use postorder.
5138
5139         * posix/bug-regex31.c: New file.
5140         * posix/Makefile: Add rules to build and run bug-regex31.
5141
5142         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
5143
5144         [BZ #12078]
5145         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
5146
5147         [BZ #12108]
5148         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
5149         to have entries in sys_siglist.
5150
5151         [BZ #12093]
5152         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
5153         be NULL.
5154
5155 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
5156
5157         [BZ #3268]
5158         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
5159         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
5160         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
5161         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
5162         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
5163         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
5164         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
5165         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
5166         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
5167         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
5168         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
5169         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
5170         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
5171         * math/ftestexcept.c (fetestexcept): Likewise.
5172         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
5173         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
5174         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
5175         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
5176         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
5177         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
5178         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5179
5180 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
5181
5182         [BZ #12107]
5183         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
5184         newline.
5185
5186 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
5187
5188         * string/bug-strstr1.c: New file.
5189         * string/Makefile: Add rules to build and run bug-strstr1.
5190
5191 2010-10-05  Eric Blake  <eblake@redhat.com>
5192
5193         [BZ #12092]
5194         * string/str-two-way.h (two_way_long_needle): Always clear memory
5195         when skipping input due to the shift table.
5196
5197 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
5198
5199         [BZ #12005]
5200         * malloc/mcheck.c: Handle large requests.
5201
5202         [BZ #12077]
5203         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
5204         for strncmp and strncasecmp.
5205         * string/stratcliff.c: Add tests for strcmp and strncmp.
5206         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
5207
5208 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5209
5210         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
5211         __set_fpscr.
5212
5213 2010-09-30  Andreas Jaeger  <aj@suse.de>
5214
5215         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
5216         (CGROUP_SUPER_MAGIC): Define.
5217         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5218         Handle btrfs and cgroup file systems.
5219         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
5220         Likewise.
5221
5222 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
5223
5224         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
5225         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
5226
5227 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5228
5229         [BZ #12067]
5230         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
5231         trying to locate the ELF header.
5232
5233 2010-09-27  Andreas Schwab  <schwab@redhat.com>
5234
5235         [BZ #11611]
5236         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
5237         Mask out sign-bit copies when constructing f_fsid.
5238
5239 2010-09-24  Petr Baudis <pasky@suse.cz>
5240
5241         * debug/stack_chk_fail_local.c: Add missing licence exception.
5242         * debug/warning-nop.c: Likewise.
5243
5244 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
5245
5246         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
5247         implementing getdents64 using getdents syscall, set d_type if
5248         __ASSUME_GETDENTS32_D_TYPE.
5249
5250 2010-09-16  Andreas Schwab  <schwab@redhat.com>
5251
5252         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
5253         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
5254
5255 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
5256
5257         [BZ #12037]
5258         * posix/unistd.h: Undo change of feature selection for ftruncate from
5259         2010-01-11.
5260
5261 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
5262
5263         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
5264         detection.
5265
5266 2010-09-20  Andreas Schwab  <schwab@redhat.com>
5267
5268         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
5269         fanotify_mark.
5270         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
5271
5272 2010-09-14  Andreas Schwab  <schwab@redhat.com>
5273
5274         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
5275         variables after CHECK_SP call.
5276         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
5277
5278 2010-09-13  Andreas Schwab  <schwab@redhat.com>
5279             Ulrich Drepper  <drepper@redhat.com>
5280
5281         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
5282         re-relocationg ld.so.
5283         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
5284         _dl_init_paths call.
5285         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
5286         here anymore.
5287
5288 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
5289
5290         * resolv/res_init.c (__res_vinit): Count the default server we added.
5291
5292 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
5293             Ulrich Drepper  <drepper@redhat.com>
5294
5295         [BZ #11968]
5296         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
5297         (____longjmp_chk): Use %ebx for saving value across system call.
5298         Add unwind info.
5299
5300 2010-09-06  Andreas Schwab  <schwab@redhat.com>
5301
5302         * manual/Makefile: Don't mix pattern rules with normal rules.
5303
5304 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
5305
5306         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
5307         operation.
5308         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
5309         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5310         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5311         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5312         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5313         Likewise.
5314
5315 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
5316
5317         [BZ #11979]
5318         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
5319         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
5320
5321 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
5322
5323         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
5324         * sysdeps/x86_64/addmul_1.S: Likewise.
5325         * sysdeps/x86_64/lshift.S: Likewise.
5326         * sysdeps/x86_64/mul_1.S: Likewise.
5327         * sysdeps/x86_64/rshift.S: Likewise.
5328         * sysdeps/x86_64/sub_n.S: Likewise.
5329         * sysdeps/x86_64/submul_1.S: Likewise.
5330
5331 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5332
5333         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
5334         Define __sched_param instead of SCHED_* and sched_param when
5335         <bits/sched.h> is included with __need_schedparam defined.
5336         * bits/sched.h [__need_schedparam]
5337         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
5338         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
5339         (__defined_schedparam): Define to 1.
5340         (__sched_param): New structure, identical to sched_param.
5341         (__need_schedparam): Undefine.
5342
5343 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
5344
5345         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
5346         (epoll_create1): Declare.
5347
5348         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
5349
5350 2010-08-31  Andreas Schwab  <schwab@redhat.com>
5351
5352         [BZ #7066]
5353         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
5354         shifting retval into place.
5355
5356 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
5357
5358         * nis/rpcsvc/nis.h: Update copyright notice.
5359         * nis/rpcsvc/nis.x: Likewise.
5360         * nis/rpcsvc/nis_callback.h: Likewise.
5361         * nis/rpcsvc/nis_callback.x: Likewise.
5362         * nis/rpcsvc/nis_object.x: Likewise.
5363         * nis/rpcsvc/nis_tags.h: Likewise.
5364         * nis/rpcsvc/yp.h: Likewise.
5365         * nis/rpcsvc/yp.x: Likewise.
5366         * nis/rpcsvc/ypupd.h: Likewise.
5367         * nis/yp_xdr.c: Likewise.
5368         * nis/ypupdate_xdr.c: Likewise.
5369
5370         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
5371         mainly the body of pmap_getport.  Add parameters to specify timeouts.
5372         (pmap_getport): Use __libc_rpc_getport.
5373         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
5374         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
5375         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
5376
5377 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
5378
5379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
5380         fanotify_mark.
5381
5382 2010-08-27  Roland McGrath  <roland@redhat.com>
5383
5384         * sysdeps/i386/i686/multiarch/Makefile
5385         (CFLAGS-varshift.c): New variable.
5386
5387 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
5388
5389         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
5390         * sysdeps/i386/i686/multiarch/varshift.c: New file.
5391
5392         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
5393
5394         * sysdeps/x86_64/strlen.S: Minimal code improvement.
5395
5396 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5397
5398         * sysdeps/x86_64/strlen.S: Unroll the loop.
5399         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5400         strlen-sse2 strlen-sse2-bsf.
5401         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
5402         __strlen_no_bsf if bit_Slow_BSF is set.
5403         (__strlen_sse42): Removed.
5404         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
5405         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
5406
5407 2010-08-25  Roland McGrath  <roland@redhat.com>
5408
5409         * sysdeps/x86_64/multiarch/varshift.S: File removed.
5410         * sysdeps/x86_64/multiarch/varshift.c: New file.
5411         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
5412         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
5413         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
5414         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5415
5416 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
5417
5418         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5419         strlen-sse2 strlen-sse2-bsf.
5420         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
5421         __strlen_sse2_bsf if bit_Slow_BSF is unset.
5422         (__strlen_sse2): Removed.
5423         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
5424         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
5425         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
5426         bit_Slow_BSF for Atom.
5427         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
5428         (index_Slow_BSF): Define.
5429         (HAS_SLOW_BSF): Define.
5430
5431 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
5432
5433         [BZ #10851]
5434         * resolv/res_init.c (__res_vinit): When no server address at all
5435         is given default to loopback.
5436
5437 2010-08-24  Roland McGrath  <roland@redhat.com>
5438
5439         * configure.in: Remove config-name.h generation.
5440         * configure: Regenerated.
5441         * config-name.in: File removed.
5442         * scripts/config-uname.sh: New file.
5443         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
5444         ($(objdir)config-name.h): New target.
5445
5446         * sunrpc/rpc_parse.h: Avoid nested comment.
5447
5448 2010-08-24  Richard Henderson  <rth@redhat.com>
5449             Ulrich Drepper  <drepper@redhat.com>
5450             H.J. Lu  <hongjiu.lu@intel.com>
5451
5452         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
5453         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
5454         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
5455         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
5456         _mm_alignr_epi8 with _mm_loadu_si128.
5457         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
5458         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
5459         (__m128i_shift_right): Removed.
5460         * sysdeps/i386/i686/multiarch/varshift.h: New file.
5461         * sysdeps/i386/i686/multiarch/varshift.S: New file.
5462         * sysdeps/x86_64/multiarch/varshift.h: New file.
5463         * sysdeps/x86_64/multiarch/varshift.S: New file.
5464
5465 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
5466
5467         * configure.in: Move assembler checks to before sysdep dir checking.
5468
5469 2010-08-20  Petr Baudis  <pasky@suse.cz>
5470
5471         * LICENSES: Sync the sunrpc license.
5472
5473 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
5474
5475         * sunrpc/auth_des.c: Update copyright notice once again.
5476         * sunrpc/auth_none.c: Likewise.
5477         * sunrpc/auth_unix.c: Likewise.
5478         * sunrpc/authdes_prot.c: Likewise.
5479         * sunrpc/authuxprot.c: Likewise.
5480         * sunrpc/bindrsvprt.c: Likewise.
5481         * sunrpc/clnt_gen.c: Likewise.
5482         * sunrpc/clnt_perr.c: Likewise.
5483         * sunrpc/clnt_raw.c: Likewise.
5484         * sunrpc/clnt_simp.c: Likewise.
5485         * sunrpc/clnt_tcp.c: Likewise.
5486         * sunrpc/clnt_udp.c: Likewise.
5487         * sunrpc/clnt_unix.c: Likewise.
5488         * sunrpc/des_crypt.c: Likewise.
5489         * sunrpc/des_soft.c: Likewise.
5490         * sunrpc/get_myaddr.c: Likewise.
5491         * sunrpc/getrpcport.c: Likewise.
5492         * sunrpc/key_call.c: Likewise.
5493         * sunrpc/key_prot.c: Likewise.
5494         * sunrpc/openchild.c: Likewise.
5495         * sunrpc/pm_getmaps.c: Likewise.
5496         * sunrpc/pm_getport.c: Likewise.
5497         * sunrpc/pmap_clnt.c: Likewise.
5498         * sunrpc/pmap_prot.c: Likewise.
5499         * sunrpc/pmap_prot2.c: Likewise.
5500         * sunrpc/pmap_rmt.c: Likewise.
5501         * sunrpc/rpc/auth.h: Likewise.
5502         * sunrpc/rpc/auth_unix.h: Likewise.
5503         * sunrpc/rpc/clnt.h: Likewise.
5504         * sunrpc/rpc/des_crypt.h: Likewise.
5505         * sunrpc/rpc/key_prot.h: Likewise.
5506         * sunrpc/rpc/netdb.h: Likewise.
5507         * sunrpc/rpc/pmap_clnt.h: Likewise.
5508         * sunrpc/rpc/pmap_prot.h: Likewise.
5509         * sunrpc/rpc/pmap_rmt.h: Likewise.
5510         * sunrpc/rpc/rpc.h: Likewise.
5511         * sunrpc/rpc/rpc_des.h: Likewise.
5512         * sunrpc/rpc/rpc_msg.h: Likewise.
5513         * sunrpc/rpc/svc.h: Likewise.
5514         * sunrpc/rpc/svc_auth.h: Likewise.
5515         * sunrpc/rpc/types.h: Likewise.
5516         * sunrpc/rpc/xdr.h: Likewise.
5517         * sunrpc/rpc_clntout.c: Likewise.
5518         * sunrpc/rpc_cmsg.c: Likewise.
5519         * sunrpc/rpc_common.c: Likewise.
5520         * sunrpc/rpc_cout.c: Likewise.
5521         * sunrpc/rpc_dtable.c: Likewise.
5522         * sunrpc/rpc_hout.c: Likewise.
5523         * sunrpc/rpc_main.c: Likewise.
5524         * sunrpc/rpc_parse.c: Likewise.
5525         * sunrpc/rpc_parse.h: Likewise.
5526         * sunrpc/rpc_prot.c: Likewise.
5527         * sunrpc/rpc_sample.c: Likewise.
5528         * sunrpc/rpc_scan.c: Likewise.
5529         * sunrpc/rpc_scan.h: Likewise.
5530         * sunrpc/rpc_svcout.c: Likewise.
5531         * sunrpc/rpc_tblout.c: Likewise.
5532         * sunrpc/rpc_util.c: Likewise.
5533         * sunrpc/rpc_util.h: Likewise.
5534         * sunrpc/rpcinfo.c: Likewise.
5535         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
5536         * sunrpc/rpcsvc/key_prot.x: Likewise.
5537         * sunrpc/rpcsvc/klm_prot.x: Likewise.
5538         * sunrpc/rpcsvc/mount.x: Likewise.
5539         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
5540         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
5541         * sunrpc/rpcsvc/rex.x: Likewise.
5542         * sunrpc/rpcsvc/rstat.x: Likewise.
5543         * sunrpc/rpcsvc/rusers.x: Likewise.
5544         * sunrpc/rpcsvc/sm_inter.x: Likewise.
5545         * sunrpc/rpcsvc/spray.x: Likewise.
5546         * sunrpc/rpcsvc/yppasswd.x: Likewise.
5547         * sunrpc/rtime.c: Likewise.
5548         * sunrpc/svc.c: Likewise.
5549         * sunrpc/svc_auth.c: Likewise.
5550         * sunrpc/svc_authux.c: Likewise.
5551         * sunrpc/svc_raw.c: Likewise.
5552         * sunrpc/svc_run.c: Likewise.
5553         * sunrpc/svc_simple.c: Likewise.
5554         * sunrpc/svc_tcp.c: Likewise.
5555         * sunrpc/svc_udp.c: Likewise.
5556         * sunrpc/svc_unix.c: Likewise.
5557         * sunrpc/svcauth_des.c: Likewise.
5558         * sunrpc/xcrypt.c: Likewise.
5559         * sunrpc/xdr.c: Likewise.
5560         * sunrpc/xdr_array.c: Likewise.
5561         * sunrpc/xdr_float.c: Likewise.
5562         * sunrpc/xdr_mem.c: Likewise.
5563         * sunrpc/xdr_rec.c: Likewise.
5564         * sunrpc/xdr_ref.c: Likewise.
5565         * sunrpc/xdr_sizeof.c: Likewise.
5566         * sunrpc/xdr_stdio.c: Likewise.
5567
5568         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
5569         handling.
5570
5571 2010-08-19  Andreas Schwab  <schwab@redhat.com>
5572
5573         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
5574
5575 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
5576
5577         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
5578         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
5579         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
5580         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
5581         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
5582         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
5583         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
5584         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
5585         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
5586         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
5587         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
5588         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
5589         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
5590         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
5591
5592 2010-07-26  Anton Blanchard  <anton@samba.org>
5593
5594         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
5595         * malloc/arena.c (heap_trim): Likewise.
5596
5597 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
5598
5599         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
5600         here.  Not...
5601         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
5602         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
5603
5604 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
5605
5606         * sysdeps/i386/elf/Makefile: New file.
5607
5608 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
5609
5610         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
5611         from fanotify_init.
5612         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
5613         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
5614
5615 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
5616
5617         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
5618         of strncasecmp_l.
5619         * sysdeps/multiarch/strcmp.S: Likewise.
5620
5621 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
5622
5623         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5624         strncase_l-nonascii.
5625         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
5626         Add strncase_l-ssse3.
5627         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
5628         * sysdeps/x86_64/strcmp.S: Likewise.
5629         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
5630         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
5631         * sysdeps/x86_64/strncase.S: New file.
5632         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
5633         * sysdeps/x86_64/strncase_l.S: New file.
5634         * string/Makefile (strop-tests): Add strncasecmp.
5635         * string/test-strncasecmp.c: New file.
5636
5637         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
5638         warning.
5639
5640         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
5641         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
5642
5643 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
5644
5645         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
5646
5647 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
5648
5649         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
5650         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5651         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5652
5653 2010-05-01  Alan Modra  <amodra@gmail.com>
5654
5655         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
5656         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
5657         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
5658         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
5659         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
5660         tidying.  Don't tail-call __sigjmp_save for static lib.
5661         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
5662         save location.
5663         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
5664         (CALL_MCOUNT): Add eh info, and nop after bl.
5665         (TAIL_CALL_SYSCALL_ERROR): New macro.
5666         (PSEUDO_RET): Use it.
5667         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
5668         Correct save location of integer regs and cr.
5669         (_dl_profile_resolve): Correct cr save location.  Delete nops
5670         after bl when SHARED.  Reduce cfi size a little by better
5671         placement of cfi directives.
5672         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
5673         make a stack frame.  Instead use parm save area as a temp.
5674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
5675         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
5676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
5677         Don't make a stack frame for parent, use parm save area.
5678         Increase child stack frame to 112 bytes.  Don't save unused reg,
5679         and adjust reg usage.  Set up cfi on error recovery and
5680         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
5681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5682         (__makecontext): Add dummy nop after jump to exit.
5683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
5684         Use correct parm save area and cr save, reduce stack frame.
5685         Correct cfi for possible PSEUDO_RET frame setup.
5686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
5687         Branch to local label emitted by PSEUDO_RET rather than
5688         __syscall_error.
5689
5690 2010-08-12  Andreas Schwab  <schwab@redhat.com>
5691
5692         [BZ #11904]
5693         * locale/programs/locale.c (print_assignment): New function.
5694         (show_locale_vars): Use it.
5695
5696 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
5697
5698         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
5699         field.
5700         (struct statfs64): Likewise.
5701         (_STATFS_F_FLAGS): Define.
5702         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
5703         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5704         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
5705         (ST_VALID): Define locally.
5706         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
5707         __statvfs_getflags, use the provided value.
5708         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5709         __ASSUME_STATFS_F_FLAGS.
5710
5711         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
5712
5713         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5714         Add sys/fanotify.h.
5715         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
5716         fanotify_mask for GLIBC_2.13.
5717         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
5718         fanotify_init and fanotify_mark.
5719         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
5720         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
5721
5722         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
5723         Add prlimit.
5724         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
5725         prlimit64 for GLIBC_2.13.
5726         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
5727         prlimit64.
5728         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
5729         syscall.
5730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
5731         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
5732         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
5733         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
5734         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
5735         add prlimit alias.
5736         * sysdeps/unix/sysv/linux/prlimit.c: New file.
5737
5738         [BZ #11903]
5739         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
5740         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
5741
5742         * nss/Makefile: Add rules to build and run tst-nss-test1.
5743         * shlib-versions: Add entry for libnss_test1.
5744         * nss/nss_test1.c: New file.
5745         * nss/tst-nss-test1.c: New file.
5746
5747         * nss/nsswitch.c (__nss_database_custom): Define new variable.
5748         (__nss_configure_lookup): Set appropriate entry in
5749         __nss_configure_lookup to true.
5750         * nss/nsswitch.h: Define enum with indeces of databases in
5751         databases and __nss_database_custom arrays.  Declare
5752         __nss_database_custom.
5753         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
5754         to avoid using nscd when custom rules are installed.
5755         * nss/getXXbyYY_r.c: Likewise.
5756         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5757
5758         * nss/nss_files/files-parse.c: Whitespace fixes.
5759
5760 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
5761
5762         [BZ #11883]
5763         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
5764         * posix/fnmatch_loop.c: Likewise.
5765
5766 2010-07-17  Andi Kleen  <ak@linux.intel.com>
5767
5768         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
5769         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
5770         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
5771         * Versions.def [GLIBC_2.13]: Add.
5772
5773 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
5774
5775         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5776         Also fail if tpwd after pwuid call is NULL.
5777
5778 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5779
5780         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
5781         when converting to ms.
5782
5783 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5784
5785         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
5786         EOPNOTSUPP errors with ENOTTY.
5787         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
5788         EOPNOTSUPP errors with ENOTTY.
5789
5790 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
5791
5792         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
5793         Add strcasecmp_l-ssse3.
5794         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
5795         strcasecmp.
5796         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
5797         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
5798         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
5799
5800 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
5801
5802         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
5803
5804         * string/Makefile (strop-tests): Add strcasecmp.
5805         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5806         strcasecmp_l-nonascii.
5807         (gen-as-const-headers): Add locale-defines.sym.
5808         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
5809         * sysdeps/x86_64/strcasecmp.S: New file.
5810         * sysdeps/x86_64/strcasecmp_l.S: New file.
5811         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
5812         * sysdeps/x86_64/locale-defines.sym: New file.
5813         * string/test-strcasecmp.c: New file.
5814
5815         * string/test-strcasestr.c: Test both ends of the range of characters.
5816         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
5817
5818 2010-07-29  Roland McGrath  <roland@redhat.com>
5819
5820         [BZ #11856]
5821         * manual/locale.texi (Yes-or-No Questions): Fix example code.
5822
5823 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
5824
5825         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
5826         for ld.so.
5827
5828 2010-07-27  Andreas Schwab  <schwab@redhat.com>
5829
5830         * manual/memory.texi (Malloc Tunable Parameters): Document
5831         M_PERTURB.
5832
5833 2010-07-26  Roland McGrath  <roland@redhat.com>
5834
5835         [BZ #11840]
5836         * configure.in (-fgnu89-inline check): Set and substitute
5837         gnu89_inline, not libc_cv_gnu89_inline.
5838         * configure: Regenerated.
5839         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
5840
5841 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
5842
5843         * string/test-strnlen.c: New file.
5844         * string/Makefile (strop-tests): Add strnlen.
5845         * string/tester.c (test_strnlen): Add a few more test cases.
5846         * string/tst-strlen.c: Better error reporting.
5847
5848         * sysdeps/x86_64/strnlen.S: New file.
5849
5850 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
5851
5852         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
5853         lower-latency instructions.
5854
5855 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
5856
5857         * string/test-strcasestr.c: New file.
5858         * string/test-strstr.c: New file.
5859         * string/Makefile (strop-tests): Add strstr and strcasestr.
5860         * string/str-two-way.h: Don't undefine MAX.
5861         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
5862
5863 2010-07-21  Andreas Schwab  <schwab@redhat.com>
5864
5865         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5866         strcasestr-nonascii.
5867         (CFLAGS-strcasestr-nonascii.c): Define.
5868         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
5869         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
5870         Remove unused attribute.
5871
5872 2010-07-20  Roland McGrath  <roland@redhat.com>
5873
5874         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
5875         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
5876         ld.so.cache was broken.  With it, there is no way to disable dsocaps
5877         like LD_HWCAP_MASK can disable hwcaps.
5878
5879 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
5880
5881         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
5882
5883 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
5884
5885         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
5886         call in strcasestr.
5887         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
5888         __strcasestr_sse42_nonascii.
5889         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
5890         strcasestr-nonascii.c.
5891         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
5892
5893 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
5894
5895         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
5896         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
5897         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
5898         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
5899
5900 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
5901
5902         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
5903         fcntl.
5904
5905 2010-07-06  Andreas Schwab  <schwab@redhat.com>
5906
5907         [BZ #11577]
5908         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
5909         dl_signal_cerror.
5910
5911 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
5912
5913         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
5914         _PC_PIPE_BUF using F_GETPIPE_SZ.
5915
5916 2010-07-05  Roland McGrath  <roland@redhat.com>
5917
5918         * manual/arith.texi (Rounding Functions): Fix rint description
5919         implicit in round description.
5920
5921 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
5922
5923         * elf/Makefile: Fix linking for a few tests to make recent linker
5924         happy.
5925
5926 2010-06-30  Andreas Schwab  <schwab@redhat.com>
5927
5928         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
5929         $(common-objpfx)libc_nonshared.a.
5930
5931 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
5932
5933         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
5934         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
5935         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
5936         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
5937         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
5938         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
5939         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
5940         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
5941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
5942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
5943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
5944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
5945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
5946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
5947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
5948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
5949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
5950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
5951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
5952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
5953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
5954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
5955         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
5956         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
5957         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
5958         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
5959         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
5960         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
5961         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
5962         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
5963         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
5964         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
5965         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
5966         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
5967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
5968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
5969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
5970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
5971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
5972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
5973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
5974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
5975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
5976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
5977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
5978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
5979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
5980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
5981
5982 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5983
5984         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
5985         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
5986         * string/memmove.c (memmove): Renamed to ...
5987         (MEMMOVE): ...this.  Default to memmove.
5988         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
5989         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
5990         (END_CHK): Define.
5991         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5992         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
5993         mempcpy-ssse3-back memmove-ssse3-back.
5994         * sysdeps/x86_64/multiarch/bcopy.S: New file .
5995         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
5996         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
5997         * sysdeps/x86_64/multiarch/memcpy.S: New file.
5998         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
5999         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
6000         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
6001         * sysdeps/x86_64/multiarch/memmove.c: New file.
6002         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
6003         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
6004         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
6005         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
6006         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
6007         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
6008         Define.
6009         (index_Fast_Copy_Backward): Define.
6010         (HAS_ARCH_FEATURE): Define.
6011         (HAS_FAST_REP_STRING): Define.
6012         (HAS_FAST_COPY_BACKWARD): Define.
6013
6014 2010-06-21  Andreas Schwab  <schwab@redhat.com>
6015
6016         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6017         Restore proper fallback handling.
6018
6019 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
6020
6021         [BZ #11701]
6022         * posix/group_member.c (__group_member): Correct checking loop.
6023
6024         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
6025         OOM in getpwuid_r correctly.  Return error number when the caller
6026         should return, otherwise -1.
6027         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
6028         call returning > 0 value.
6029         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
6030
6031 2010-06-07  Andreas Schwab  <schwab@redhat.com>
6032
6033         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
6034         libc_nonshared.a from targets in modules-names.
6035
6036 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
6037
6038         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
6039         requires it.
6040
6041 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
6042
6043         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
6044         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
6045         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
6046         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
6047
6048 2010-06-02  Andreas Schwab  <schwab@redhat.com>
6049
6050         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
6051
6052 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
6053
6054         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
6055         and F_GETPIPE_SZ.
6056         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6057         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6058         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6059         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6060         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6061         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
6062
6063 2010-06-14  Roland McGrath  <roland@redhat.com>
6064
6065         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
6066
6067 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
6068
6069         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
6070         __REDIRECT followed by __THROW.
6071         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
6072         * posix/getopt.h (getopt): Likewise.
6073
6074 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
6075
6076         * hurd/lookup-at.c (__file_name_lookup_at): Accept
6077         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
6078         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
6079         in AT_FLAGS.
6080         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
6081         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
6082
6083 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
6084
6085         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
6086
6087 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6088
6089         [BZ #11640]
6090         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6091         Properly check family and model.
6092
6093 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
6094
6095         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
6096
6097 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
6098
6099         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
6100
6101 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
6102
6103         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
6104         symbol reference.
6105
6106 2010-05-19  Andreas Schwab  <schwab@redhat.com>
6107
6108         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
6109         symbol reference.
6110
6111 2010-05-21  Andreas Schwab  <schwab@redhat.com>
6112
6113         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
6114         and internal_recvmmsg.
6115         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
6116         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
6117         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
6118         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
6119
6120         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
6121         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6122         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6123
6124 2010-05-20  Andreas Schwab  <schwab@redhat.com>
6125
6126         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
6127
6128 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
6129
6130         POWER7 optimizations.
6131         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
6132         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
6133
6134 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
6135
6136         * version.h: Update for 2.13 development version.
6137
6138 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
6139
6140         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
6141         exceptions.  Return 0.
6142
6143 2010-05-07  Roland McGrath  <roland@redhat.com>
6144
6145         * elf/ldconfig.c (main): Add a const.
6146
6147 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
6148
6149         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
6150         (args_options): Add no-idn option.
6151         (ahosts_keys_int): Add idn_flags to ai_flags.
6152         (parse_option): Handle 'i' option to clear idn_flags.
6153
6154         * malloc/malloc.c (_int_free): Possible race in the most recently
6155         added check.  Only act on the data if no current modification
6156         happened.
6157
6158 See ChangeLog.17 for earlier changes.