]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Update.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
afedc4af
UD
12004-03-01 Ulrich Drepper <drepper@redhat.com>
2
16aac663
UD
3 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization
4 of return value.
5 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6
afedc4af
UD
7 * sysdeps/unix/sysv/linux/kernel-features.h: Add support for
8 __ASSUME_GETDENTS32_D_TYPE.
c706ad88 9 * sysdeps/unix/sysv/linux/getdents.c: For 2.6.4+ kernels use
afedc4af
UD
10 getdents syscall again since it provides d_type information.
11
7a49a7d5
AJ
122004-02-29 Andreas Jaeger <aj@suse.de>
13
afedc4af
UD
14 * manual/install.texi (Tools for Compilation): Autoconf 2.53 is
15 required.
7a49a7d5 16 (Supported Configurations): Add x86_64-*-linux.
7a49a7d5 17
f8fbb4c4
UD
182004-02-28 Ulrich Drepper <drepper@redhat.com>
19
20 * sysdeps/i386/i686/memcmp.S: Move table to .rodata. Patch by HJ Lu.
21
4c771a3b
UD
222004-02-27 Jakub Jelinek <jakub@redhat.com>
23
49ad572a
UD
24 * elf/rtld.c (dl_main): Adjust l->l_ld of the vDSO by l->l_addr.
25 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Only set
26 GL(dl_sysinfo) if non-zero.
27
4c771a3b
UD
28 * sysdeps/unix/sysv/linux/sysconf.c: Include stdlib.h.
29
261eada2
UD
302004-02-26 Ulrich Drepper <drepper@redhat.com>
31
32 * nss/getXXbyYY_r.c: Pass result also to the nscd_* function. Don't
33 set *result here.
34 * nscd/nscd_proto.h: Add new argument for pointer to result pointer
35 to all nscd_* functions.
36 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add new parameter. Store result
37 pointer in the address provided by the new parameter if successful.
38 Otherwise store NULL. Return zero if no entry found.
39 (__nscd_getgrnam_r, __nscd_getgrgid_r): Add new parameter and pass
40 it on.
41 * nscd/nscd_gethst_r.c (nscd_gethst_r): Add new parameter. Store
42 result pointer in the address provided by the new parameter if
43 successful. Otherwise store NULL. Return zero if no entry found.
44 (__nscd_gethostbyname_r, __nscd_gethostbyname2_r,
45 __nscd_gethostbyaddr_r): Add new parameter and pass it on.
46 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add new parameter. Store result
47 pointer in the address provided by the new parameter if successful.
48 Otherwise store NULL. Return zero if no entry found.
49 (__nscd_getpwnam_r, __nscd_getpwuid_r): Add new parameter and pass
50 it on.
51
f15e5528
UD
522004-02-26 Jakub Jelinek <jakub@redhat.com>
53
54 * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
55 retval to -1 on error.
56
266c1f50
UD
572004-02-26 Ulrich Drepper <drepper@redhat.com>
58
d3a4681c
UD
59 * stdlib/canonicalize.c (__realpath): Simplify.
60
266c1f50
UD
61 * posix/regcomp.c (parse_expression): Avoid duplication in calls
62 to build_charclass_op.
63
3b3ddb4f
UD
642004-02-26 Jakub Jelinek <jakub@redhat.com>
65
66 * elf/rtld.c (dl_main): Correctly set up l_map_end and l_addr
67 in vDSO's link_map, don't assume l_addr == 0. Set GL(dl_sysinfo)
68 from e_entry only if AT_SYSINFO not present and adjust by l_addr.
69 Take vDSO into account when inserting rtld into _dl_loaded chain.
70
5db7adc4
UD
712004-02-26 Ulrich Drepper <drepper@redhat.com>
72
773640b4
UD
73 * sunrpc/svcauth_des.c (authdes_getucred): Removed fixed limit on
74 number of groups in the cache. Relax the disconnect between the
75 interface of authdes_getucred and netname2user a bit.
76 * sunrpc/auth_unix.c (authunix_create_default): Don't allocate
77 huge arrays on the stack.
78
5db7adc4
UD
79 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Use the official
80 not cancelable interfaces.
81
17568537
UD
822004-02-24 Arnold D. Robbins <arnold@skeeve.com>
83
84 * posix/regex_internal.c (build_wcs_upper_buffer): Enclose
85 `offsets_needed' label in `#ifdef _LIBC' to silence `unused label'
86 compiler warning.
87
882004-02-24 Nelson H.F. Beebe <beebe@math.utah.edu>
89
266c1f50
UD
90 * posix/regcomp.c (parse_expression): Add cast to (const unsigned
91 char *) in calls to `build_charclass_op'.
17568537
UD
92 * posix/regex_internal.c (build_wcs_buffer): Add cast to char* in call
93 to `wcrtomb'.
94 * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
95 bitset_mask, re_string_char_size_a, re_string_wchar_at,
96 re_string_elem_size_at): Change to use prototypes.
97 (re_string_char_size_at, re_string_wchar_at,
98 re_string_elem_size_at): Declare as `internal_function'.
99
d024596d
UD
1002004-02-25 Ulrich Drepper <drepper@redhat.com>
101
102 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
103 _SC_NGROUPS_MAX.
104
16edf13b
UD
1052004-02-23 Jakub Jelinek <jakub@redhat.com>
106
107 * wcsmbs/mbrtowc.c (__mbrtowc): Cap s + n at the end of address space.
108 * stdlib/Makefile (tests): Add testmb2.
109 (testmb2-ENV): New.
110 * stdlib/testmb2.c: New test.
111
5605e117
UD
1122004-02-23 Jakub Jelinek <jakub@redhat.com>
113
114 * sysdeps/posix/getaddrinfo.c (gaih_inet): If _res has not been
115 inited yet, try to init it before saving old _res.options.
116 * posix/Makefile (xtests): Add bug-ga2.
117 (generated): Add bug-ga2.mtrace and bug-ga2-mem.
118 (xtests): Depend on bug-ga2-mem.
119 ($(objpfx)bug-ga2-mem, bug-ga2-ENV): New.
120 * posix/bug-ga2.c: New test.
121
a8fd5a02
UD
1222004-02-22 Ulrich Drepper <drepper@redhat.com>
123
124 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Pop register
125 content also in case of an overflow in the parameter.
126 Reported by Momchil Velikov <velco@fadata.bg>.
127
c91b8752
UD
1282004-02-21 Ulrich Drepper <drepper@redhat.com>
129
130 * elf/dynamic-link.h (elf_get_dynamic_info): Recognize DF_1_NOW.
131 In ld.so, neither DT_FLAGS nor DT_FLAGS_1 must be used.
132
14755b91
AJ
1332004-02-21 Andreas Jaeger <aj@suse.de>
134
4ba3c746
AJ
135 * posix/bug-ga1.c: Include <string.h> for memset prototype.
136
14755b91
AJ
137 * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue.
138
139 * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as
140 lvalue.
141
d7cc1c9f
UD
1422004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
143
144 * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__]
145 (__frame_state_for): Set frame_State_for to abort if the compiler
146 is using sjlj.
147 * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to
148 build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper.
149
97f94fff
UD
1502004-02-20 Alexandre Oliva <aoliva@redhat.com>
151
152 * resolv/Versions: Remove semicolon from the end of libresolv's
153 GLIBC_2.3.2 version block.
154 * Versions.def (libresolv): Add GLIBC_2.3.2.
155
6fadaea6
UD
1562004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
157
158 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp
159 status register loads.
160
230c3e1e
UD
1612004-02-20 Thorsten Kukuk <kukuk@suse.de>
162
163 * nscd/nscd.c (termination_handler): Use _exit instead of exit
164
a461b147
UD
1652004-02-20 Ulrich Drepper <drepper@redhat.com>
166
230c3e1e
UD
167 * nscd/nscd.c (main): Report fork errors.
168
a461b147
UD
169 * dlfcn/dlsym.c: Get ld.so loading lock before the call into ld.so.
170 * dlfcn/dlvsym.c: Likewise.
171 * elf/dl-addr.c: Get loading lock while using _dl_loaded data.
172 * elf/dl-fini.c: Likewise.
173 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
174
8ba5025a
UD
1752004-02-20 Jakub Jelinek <jakub@redhat.com>
176
177 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the
178 2003-11-27 atan2 test.
179
180 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect
181 with #ifndef __powerpc64__.
182
183 * sysdeps/generic/ldsodefs.h (_dl_argv, _dl_argv_internal): If
184 DL_ARGV_NOT_RELRO defined, don't use attribute_relro.
185 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
186 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
187 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
188 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
189 * sysdeps/alpha/dl-sysdep.h: New file.
190 * sysdeps/ia64/dl-sysdep.h: New file.
191 * sysdeps/sparc/dl-sysdep.h: New file.
192
1be3130e
UD
1932004-02-19 Jakub Jelinek <jakub@redhat.com>
194
195 * sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated
196 for .gnu.linkonce.b.__sparc32_atomic_locks section.
197 (__sparc32_atomic_locks): Add __sec_comment at the end of section name.
198
11986c68
UD
1992004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
200
201 * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC):
202 Define as static.
203 * sysdeps/powerpc/elf/libc-start.c: Define LIBC_START_DISABLE_INLINE
204 because gcc does not allow inline of functions that call setjmp.
205
2062004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
207
208 * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit.
209
2102004-02-19 Jakub Jelinek <jakub@redhat.com>
211
212 * elf/rtld.c (_dl_argv): If DL_ARGV_NOT_RELRO defined, don't
213 use attribute_relro for _dl_argv.
214 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
215 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
216 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
217 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
218
1dc74473
UD
2192004-02-19 Ulrich Drepper <drepper@redhat.com>
220
64d2a379 221 * libio/iopopen.c (_IO_new_proc_open): It's not kosher to use
11986c68 222 vfork instead of fork.
64d2a379
UD
223 * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
224
1dc74473
UD
225 * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which
226 prevented system-dependent handling from being used.
227
dc391246
UD
2282004-02-18 Carlos O'Donell <carlos@baldric.uwo.ca>
229
230 * test-skeleton.c (main): If set, use environment variable
231 TIMEOUTFACTOR to scale test TIMEOUT.
232
ec1c8075
UD
2332004-02-18 Ulrich Drepper <drepper@redhat.com>
234
235 * nscd/nscd_conf.c: Include <stdio_ext.h>.
236
f4047366
UD
2372004-02-16 Ulrich Drepper <drepper@redhat.com>
238
71b1675e
UD
239 * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop
240 as well.
241
33d52792
UD
242 * stdlib/canonicalize.c (__realpath): Remove unnecessary copy
243 operations.
244
f4047366
UD
245 * nscd/nscd_conf.c (nscd_parse_file): Little optimization.
246
2472004-02-14 Thorsten Kukuk <kukuk@suse.de>
248
249 * nscd/dbg_log.c (set_logfile): Only save name of logfile,
250 don't open it.
251 (init_logfile): New function, open logfile if requested.
252 * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile.
253 * nscd/nscd.c (main): Call init_logfile after forking in background.
254 * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile.
255
d9a3ae7f
UD
2562004-02-16 Ulrich Drepper <drepper@redhat.com>
257
f04b9a68 258 * elf/rtld.c (dl_main): Don't fail execution if file named in
f4047366 259 ld.so.preload is not present [BZ #18].
f04b9a68 260
06877a37
UD
261 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended
262 changes in last patch.
263
bf14fb7c
UD
264 * posix/regexec.c (transit_state): Fix typo in commented-out code
265 [BZ #6].
266
d9a3ae7f 267 * sysdeps/posix/getaddrinfo.c (match_prefix): Correctly match
e2366611 268 partial bytes [BZ #24].
380f06d3
UD
269 * posix/Makefile (tests): Add bug-ga1.
270 * posix/bug-ga1.c: New file.
d9a3ae7f 271
5c76ff27
UD
2722004-02-13 Steven Munroe <sjmunroe@us.ibm.com>
273
274 * sysdeps/powerpc/powerpc64/__longjmp-common.S: New file.
275 * sysdeps/powerpc/powerpc64/__longjmp.S [NOT_IN_libc](__longjmp):
276 Non-versioned __longjmp for rtld-__longjmp.
277 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
278 default version of __longjmp.
279 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
280 (__novmx__longjmp): Original version of __longjmp.
281 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
282 Non-versioned _setjmp for rtld-_setjmp.
283 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
284 as default version of _setjmp.
285 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
286 (__novmx_setjmp): Original version of _setjmp.
287 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__vmxsetjmp): Branch to
288 __vmx__sigsetjmp and define as default version of setjmp.
289 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
290 (__novmxsetjmp): Original version of setjmp.
291 * sysdeps/powerpc/powerpc64/setjmp-common.S: New file.
292 * sysdeps/powerpc/powerpc64/setjmp.S [NOT_IN_libc](__setjmp):
293 Non-versioned __sigsetjmp for rtld-setjmp.
294 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
295 as default version of __sigsetjmp.
296 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
297 (__novmx__sigsetjmp): Original version of __sigsetjmp.
298
299 * sysdeps/powerpc/powerpc32/__longjmp-common.S: New File
300 * sysdeps/powerpc/powerpc32/__longjmp.S [NOT_IN_libc](__longjmp):
301 Non-versioned __longjmp for rtld-__longjmp.
302 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
303 default version of __longjmp.
304 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
305 (__novmx__longjmp): Original version of __longjmp.
306 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
307 Non-versioned _setjmp for rtld-_setjmp.
308 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
309 as default version of _setjmp.
310 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
311 (__novmx_setjmp): Original version of _setjmp.
312 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__vmxsetjmp): Branch to
313 __vmx__sigsetjmp and define as default version of setjmp.
314 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
315 (__novmxsetjmp): Original version of setjmp.
316 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: New file.
317 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S [NOT_IN_libc](__longjmp):
318 Non-versioned __longjmp for rtld-__longjmp.
319 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
320 default version of __longjmp.
321 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
322 (__novmx__longjmp): Original version of __longjmp.
323 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: New file.
324 * sysdeps/powerpc/powerpc32/fpu/setjmp.S [NOT_IN_libc](__setjmp):
325 Non-versioned __sigsetjmp for rtld-setjmp.
326 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
327 as default version of __sigsetjmp.
328 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
329 (__novmx__sigsetjmp): Original version of __sigsetjmp.
330 * sysdeps/powerpc/powerpc32/setjmp-common.S: New file.
331 * sysdeps/powerpc/powerpc32/setjmp.S [NOT_IN_libc](__setjmp):
332 Non-versioned __sigsetjmp for rtld-setjmp.
333 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
334 as default version of __sigsetjmp.
335 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
336 (__novmx__sigsetjmp): Original version of __sigsetjmp.
337
338 * sysdeps/powerpc/Dist: New File.
339 * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c
340 and novmx-sigjmp.c
341 * sysdeps/powerpc/Versions (libc): To GLIBC_2.3_4 add _longjmp,
342 __sigsetjmp, _setjmp, longjmp, and setjmp. To GLIBC_PRIVATE add
343 __novmx__libc_longjmp, __novmx__libc_siglongjmp, __vmx__libc_longjmp,
344 and __vmx__libc_siglongjmp.
345 * sysdeps/powerpc/bits/setjmp.h: Define JB_VRSAVE, JB_VRS, and adjust
346 JB_SIZE to add VMX regs to __jmp_buf.
347 * sysdeps/powerpc/longjmp.c: New file.
348 * sysdeps/powerpc/novmxsetjmp.h: New file.
349 * sysdeps/powerpc/novmx-longjmp.c: New file.
350 * sysdeps/powerpc/novmx-sigjmp.c: New file.
351 * sysdeps/powerpc/sigjmp.c: New file.
352
9f8765bc
UD
3532004-02-13 Jakub Jelinek <jakub@redhat.com>
354
355 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf):
356 Define.
357 (__lrintl, lrintl): Remove.
358 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c (__lrint): Fix a typo in
359 strong_alias spelling.
360 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: Remove.
361 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: New file.
362
2a1ece14
UD
3632004-02-12 Ulrich Drepper <drepper@redhat.com>
364
365 * posix/getopt.h: Add some non-gcc support. Patch by Aharon Robbins.
366
3672004-02-12 Mark Brown <bmark@us.ibm.com>
368
369 * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license.
370
39007ae3
UD
3712004-02-12 Jakub Jelinek <jakub@redhat.com>
372
2a1ece14
UD
373 * sysdeps/powerpc/fpu/s_lrint.c: Move to...
374 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: ... here.
375 * sysdeps/powerpc/fpu/s_llrint.c: Move to...
376 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: ... here.
377 * sysdeps/powerpc/fpu/s_llrintf.c: Move to...
378 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: ... here.
2a1ece14
UD
379 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
380 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: New file.
381 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: New file.
382
39007ae3
UD
383 * math/libm-test.inc (lrint_test): Add new test.
384 (llrint_test, lround_test, llround_test): Likewise.
385 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case
386 with result taking up 48 bits.
387 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
388 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
389 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case
390 with result taking up 31 bits.
391
02860e47
UD
3922004-02-12 Ulrich Drepper <drepper@redhat.com>
393
394 * locale/programs/locale.c (show_locale_vars): Don't print a value
395 for LANG if it is not set.
396
6c2a04a7
UD
3972004-02-11 Jakub Jelinek <jakub@redhat.com>
398
399 * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
400 (find_collation_sequence_value): Don't look beyond end of
401 SYMB_EXTRAMB table.
402 * posix/Makefile (tests): Add bug-regex23.
403 (bug-regex23-ENV): New.
404 * posix/bug-regex23.c: New file.
405
a921ebe7
RM
4062004-02-10 Roland McGrath <roland@frob.com>
407
ada24e76
RM
408 * sysdeps/mach/hurd/times.c (__times): Use union instead of cast.
409 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
410
a921ebe7
RM
411 * sysdeps/mach/hurd/configure.in: Move `retcode' check to ...
412 * sysdeps/mach/configure.in: ... here.
413 * sysdeps/mach/hurd/configure: Regenerated.
414 * sysdeps/mach/configure.in: Regenerated.
415
43e56b0e
UD
4162004-02-10 Ulrich Drepper <drepper@redhat.com>
417
22d9c1ee
UD
418 * sysdeps/generic/setenv.c (__add_to_environ): Don't let the
419 temporary copies of the variables accumulate on the stack.
420
43e56b0e
UD
421 * stdio-common/_i18n_number.h: Finish last patch.
422
408d46a5
UD
4232004-02-09 Ulrich Drepper <drepper@redhat.com>
424
425 * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu.
426
c655f8f8
RM
4272003-12-05 Roland McGrath <roland@redhat.com>
428
429 * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
430 for vm86@GLIBC_2.0 version. Add new vm86@GLIBC_2.3.4.
431 * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86.
432 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.
433
980aa979
UD
4342004-02-09 Ulrich Drepper <drepper@redhat.com>
435
436 * nis/ypclnt.c: Cleanup last patch.
437
89f53c54
AJ
4382004-02-09 Andreas Jaeger <aj@suse.de>
439
31075c2f
AJ
440 * configure.in: Remove glibcbug creation.
441 * configure: Regenerated.
442
89f53c54
AJ
443 * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes.
444
57be8a82
RM
4452004-02-03 Thorsten Kukuk <kukuk@suse.de>
446
447 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
448 of duplicated code from __yp_bind.
449 (__yp_bind_file): New, binding dir code from __yp_bind.
450 (__yp_bind_client_create): New, ypbind code from __yp_bind.
451 (__ypclnt_call): New, make NIS query.
452 (do_ypcall): At first use cached data, then try data from
453 binding directory, after this ask ypbind for a working ypserv.
454 Based on a patch from Jeff Bastian <jmbastia@ti.com> and
455 Chris Barrera <cbarrera@ti.com>
456
fe54a69c
RM
4572004-01-19 Roland McGrath <roland@redhat.com>
458
459 * configure.in: Don't set CCVERSION.
460 * configure: Regenerated.
461 * glibcbug.in: File removed.
462 * Makefile (install-bin-script): Remove glibcbug.
463 (glibcbug): Target removed.
464 (distclean-1): Don't rm glibcbug.
465 (distribute): Remove glibcbug.in.
466
9eec17f5
RM
4672004-02-09 Roland McGrath <roland@redhat.com>
468
469 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
470 24, not 23.
471
1e0c1226
RM
4722004-01-29 Roland McGrath <roland@redhat.com>
473
474 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
475 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
476
e48d897d
UD
4772004-02-09 Ulrich Drepper <drepper@redhat.com>
478
479 * libio/genops.c (_IO_cleanup): Do not use locking when flushing
480 the buffers. Some thread might be using a stream.
481
8ce776d3
AJ
4822004-02-09 Andreas Jaeger <aj@suse.de>
483
e48d897d 484 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
8ce776d3
AJ
485 Patch by Jan Beulich <jbeulich@novell.com>.
486
1bc1a2b9
AS
4872004-02-09 Andreas Schwab <schwab@suse.de>
488
6c2a04a7 489 * include/rpc/rpc.h: Declare thread variables with their correct type.
1bc1a2b9
AS
490 * sunrpc/clnt_perr.c: Don't cast thread variables.
491 * sunrpc/clnt_raw.c: Likewise.
492 * sunrpc/clnt_simp.c: Likewise.
493 * sunrpc/key_call.c: Likewise.
494 * sunrpc/svcauth_des.c: Likewise.
495 * sunrpc/svc.c: Likewise.
496 * sunrpc/svc_raw.c: Likewise.
497 * sunrpc/svc_simple.c: Likewise.
498
ff136edd
UD
4992004-02-09 Ulrich Drepper <drepper@redhat.com>
500
7be688b5
UD
501 * stdio-common/_i18n_number.h: Support printing localized decimal
502 point and thousand separator.
503 * wctype/wctrans.c: Add __wctrans alias.
504 * include/wctype.h: Declare __wctrans.
505 Based on a patch by Hamed Malek.
506
ff136edd
UD
507 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
508 other than the status bits [BZ #10].
509
14a60f04
UD
5102004-02-08 Ulrich Drepper <drepper@redhat.com>
511
9e59d9cb
UD
512 Make stream locking operations really work.
513 * misc/Makefile (CFLAGS-mntent_r.c): Define.
514 * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
515 (CFLAGS-putspent.c): Define.
516 * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
517 (CFLAGS-putgrent.c): Define.
518 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
519 Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
520
a481b13c
UD
521 * elf/dl-load.c (lose): Use noinline attribute instead of silly
522 alloca to prevent inlining.
523 * elf/dl-runtime.c (fixup): Likewise.
524 (profile_fixup): Likewise.
525
14a60f04
UD
526 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
527 Initialize width correctly.
528
33ed6903
AJ
5292004-02-07 Andreas Jaeger <aj@suse.de>
530
531 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
532 lvalue.
533 (internal_ucs4le_loop_single): Likewise.
534 (ucs4_internal_loop): Likewise.
535 (BODY): Likewise.
536 (internal_ucs4_loop_single): Likewise.
537 * iconvdata/iso8859-1.c (BODY): Likewise.
538 * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
539 * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
540 * iconvdata/gb18030.c (BODY): Likewise.
541 * iconvdata/armscii-8.c (BODY): Likewise.
542 * stdlib/msort.c (msort_with_tmp): Likewise.
543
544 * iconv/gconv_open.c (__gconv_open): Remove conditional expression
545 as lvalue.
546
acd262e6
UD
5472004-02-06 Steven Munroe <sjmunroe@us.ibm.com>
548
549 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
550 weak extern.
551 (__elf_machine_runtime_setup): Invalidate the instruction cache over
552 the whole range of the PLT.
553
1e7947dc
UD
5542004-02-06 Andreas Schwab <schwab@suse.de>
555
556 * posix/regcomp.c (build_range_exp): Fix off-by-one.
557 (parse_bracket_exp): Likewise.
558
1bf5cffd
UD
5592004-02-05 Ulrich Drepper <drepper@redhat.com>
560
561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
562 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard.
563
15bad1a5
UD
5642004-02-02 Paolo Bonzini <bonzini@gnu.org>
565
566 * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
567 (re_search_internal): Pass new parameter to check_matching.
568 (check_matching): Unless a parenthesized group is found at the
569 beginning of the regexp, advance P_MATCH_FIRST until we entered
570 a state different from the initial state.
571
00c70741
UD
5722004-02-01 Ulrich Drepper <drepper@redhat.com>
573
3eb61415
UD
574 * math/libm-test.inc (lround_test): Add new test.
575 (llround_test): Likewise.
576 (lrint_test): Likewise.
577 (llrint_test): Likewise.
578 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
579 with result taking up 20 bits.
580 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
581 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
582 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
583 case with result taking up 31 bits.
584 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
585
00c70741
UD
586 * po/nl.po: Update from translation team.
587
bd2a53eb
UD
5882004-01-30 Andreas Schwab <schwab@suse.de>
589
590 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
591 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
592 SEGV_PSTKOVF): Remove underscore prefix from definition.
593
df759c2a
UD
5942004-01-28 Paolo Bonzini <bonzini@gnu.org>
595
596 Merge regex changes in gawk.
597 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
598 of collation elements.
599 * posix/regex.c: Include limits.h.
600 * posix/regex.h: Document REG_ECOLLATE correctly.
601 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
602
9d1e2b7d
UD
6032004-01-24 Andreas Jaeger <aj@suse.de>
604
605 * malloc/obstack.h: Import gnulib version.
606 * malloc/obstack.c: Likewise.
607
e8ed861d
UD
6082004-01-26 David Mosberger <davidm@hpl.hp.com>
609
610 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
611 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
612 increment dl_load_adds.
613 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
614 with equivalent GL(dl_load_adds - GL(dl_nloaded).
615 (dl_iterate_phdr): Likewise.
616 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
617 * elf/dl-support.c: Remove global variable _dl_load_subs.
618 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
619 _dl_load_subs member.
620
6212004-01-27 Jakub Jelinek <jakub@redhat.com>
622
623 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
624 (_dl_start): And neither here.
625 (dl_main): Set GL(dl_loaded)->l_relro_* and
626 GL(dl_rtld_map)->l_relro_*.
627
bed12f78
UD
6282004-01-23 David Mosberger <davidm@hpl.hp.com>
629
630 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
631 _dl_load_adds and _dl_load_subs.
632 * elf/dl-support.c (_dl_load_adds): New variable.
633 (_dl_load_subs): Likewise.
634 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
635 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
636 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
637 dlpi_subs.
638 * include/link.h: Likewise.
639 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
640 and dlpi_subs members.
641 (dl_iterate_phdr): Likewise.
642 * elf/tst-dlmodcount.c: New file.
643 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
644 (tests): If build-shared, mention tst-dlmodcount.
645 ($(objpfx)tst-dlmodcount): If build-shared, build and
646 run tst-dlmodcount.
647
e8648a5a
UD
6482004-01-22 Jakub Jelinek <jakub@redhat.com>
649
650 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
651 into...
652 (_dl_protect_relro): New routine.
653 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
654 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
655 from bootstrap_map.
656 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
657 Call _dl_protect_relro for libraries if prelinking.
658
e151ce7a
RH
6592004-01-23 Richard Henderson <rth@redhat.com>
660
661 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
662 * sysdeps/alpha/fpu/Versions (libm): Likewise.
663 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
664 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
665
1f81acbc
AJ
6662004-01-22 Andreas Jaeger <aj@suse.de>
667
668 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
669 avoid warnings for builtin function log2.
670
4ef09295
AJ
671 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
672 information.
673
a658675d
UD
6742004-01-20 Ulrich Drepper <drepper@redhat.com>
675
e11676dd
UD
676 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
677 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
678 Patch by Davide Libenzi.
679
f3484f27
UD
680 * sysdeps/unix/sysv/linux/kernel-features.h: Define
681 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
682
29f68d60
UD
683 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
684
a658675d
UD
685 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
686 instead of loff_t. Include <fcntl.h>.
687 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
688 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
689 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
690 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
691 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
692 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
693 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
694 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
695 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
696 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
697 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
698 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
699
700 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
701
702 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
703
edf855d5
UD
7042003-12-31 Bruno Haible <bruno@clisp.org>
705
706 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
707 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
708 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
709 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
710 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
711 0x00 0x20. Don't map U+2500..U+25E3.
712
c1baba0f
UD
7132004-01-19 Jakub Jelinek <jakub@redhat.com>
714
715 * posix/regexec.c (get_subexp): Remove bkref_str variable.
716 Extend buffers if needed before comparisons.
717 (get_subexp_sub): Handle clean_state_log_if_needed failure.
718
ec6e8624
UD
7192004-01-17 Ulrich Drepper <drepper@redhat.com>
720
721 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
722 atomic_decrement. Patch by Davin McCall.
723
1db88b33
RM
7242004-01-13 Daniel Jacobowitz <drow@mvista.com>
725
726 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
727 (__sim_disabled_exceptions, __sim_round_mode): Declare with
728 hidden data and nocommon.
729 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
730 (__sim_disabled_exceptions, __sim_round_mode): Use
731 libc_hidden_proto.
732 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
733 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
734
209dabb4
UD
7352004-01-16 Ulrich Drepper <drepper@redhat.com>
736
737 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
738 PT_IA_64_HP_STACK.
739
ff151400
RH
7402004-01-16 Richard Henderson <rth@redhat.com>
741
a658675d
UD
742 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
743 (__libc_enable_secure_internal): Likewise.
d0369217 744
a658675d
UD
745 * elf/dl-load.c: Don't declare __libc_stack_end.
746 * sysdeps/generic/libc-start.c: Likewise.
747 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
748 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
749 * sysdeps/generic/backtrace.c: Likewise.
ff151400 750
d803c853
UD
7512004-01-15 Ulrich Drepper <drepper@redhat.com>
752
753 * Versions.def: Add GLIBC_2.3.4.
754
0e9bacf7
RH
7552004-01-15 Richard Henderson <rth@redhat.com>
756
757 * sysdeps/unix/alpha/sysdep.h: Revert last change.
758
60cd0f0a
RH
7592004-01-15 Richard Henderson <rth@redhat.com>
760
761 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
762
647e0537
RH
763 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
764 !samegp relocation.
765
33f0a6c7
RH
7662004-01-15 Richard Henderson <rth@redhat.com>
767
768 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
769 ucontext-offsets.sym.
770 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
771 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
772 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
773 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
774 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
775
23e50ece
RH
7762004-01-15 Richard Henderson <rth@redhat.com>
777
778 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
779 __syscall_, move nop inside, adjust users by +4.
780
5ef6ae4b
UD
7812004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
782
783 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
784 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
785 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
786 symbols.
787 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
788 gen-as-const-headers.
789 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
790 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
791 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
792 * sysdeps/unix/sysv/linux/kernel-features.h
793 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
794 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
795 Declare mcontext_t inline and include altivec state for 64-bit.
796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
797 versions for setcontext, getcontext, and swapcontext.
798
799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
800 versions for setcontext, getcontext, swapcontext, and makecontext.
801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
802 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
d803c853 803 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
5ef6ae4b
UD
804 Compatible with GLIBC_2.3.3 release.
805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
806 (__makecontext): Use parm save area instead of compiler_dw to hold
807 context pointer.
808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
809 (__setcontext): Upgrade to restore Altivec regs and version
810 GLIBC_2_3_4.
d803c853 811 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
5ef6ae4b
UD
812 Compatible with GLIBC_2.3.3 release.
813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
814 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
d803c853 815 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
5ef6ae4b
UD
816 Compatible with GLIBC_2.3.3 release.
817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
818 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
819
5ef6ae4b
UD
8202004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
821
822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
823 versions for setcontext, getcontext, swapcontext, and makecontext.
824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
825 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
d803c853 826 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
5ef6ae4b
UD
827 Compatible with GLIBC_2.3.3 release.
828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
829 (__makecontext): Upgrade to align for Altivec regs and version
830 GLIBC_2_3_4.
d803c853 831 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
5ef6ae4b
UD
832 Compatible with GLIBC_2.3.3 release.
833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
834 (__setcontext): Upgrade to restore Altivec regs and version
835 GLIBC_2_3_4.
d803c853 836 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
5ef6ae4b
UD
837 Compatible with GLIBC_2.3.3 release.
838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
839 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
840 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
841 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
843 (_UC_VSCR, _UC_VRSAVE): Define.
844 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
845 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
846
39b04aa3
UD
8472004-01-15 Ulrich Drepper <drepper@redhat.com>
848
849 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
850
d8e36e00
UD
8512004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
852
853 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
854 parameter type.
855
ee778b56
UD
8562004-01-15 Ulrich Drepper <drepper@redhat.com>
857
828037ae
UD
858 * elf/elf.h: Fix typo in comment.
859
80f50bfa 860 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
697afbe1
UD
861 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
862
ee778b56
UD
863 * resolv/resolv.h: Add RES_USEBSTRING.
864 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
865 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
866 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
867 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
868 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
869 Otherwise use the two nibble formats.
870
392a6b52
UD
8712004-01-14 Ulrich Drepper <drepper@redhat.com>
872
873 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
874 * config.h.in: Add entry for HAVE_Z_RELRO.
875 * include/libc-symbols.h: Define attribute_relro.
876 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
877 max_capstrlen, and max_dirnamelen definitions.
878 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
879 load_time, start_time, library_path, preloadlist, version_info,
880 any_debug.
881 Remove rtld_total_time. Make it a local variable. Pass pointer to
882 it to print_statistics. Change print_statistics accordingly.
883 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
884 attribute_relro instead of explicitly assigning variable to the
885 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
886 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
887 _dl_argv, _dl_argv_internal with attribute_relro.
888
d38ba88a
RM
8892004-01-13 Segher Boessenkool <boessen@de.ibm.com>
890
891 * Makerules (gen-as-const): Don't silently continue on failure.
892
39981e31
UD
8932004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
894
895 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
896 rtld_hidden_data_def.
897
b2637a22
UD
8982004-01-14 Ulrich Drepper <drepper@redhat.com>
899
900 * libio/libio.h: Add const to function tables types.
901 * libio/libioP.h: Likewise.
d38ba88a 902 * login/utmp-private.h: Likewise.
b2637a22
UD
903 * libio/fileops.c: Add const to jump table variable definition.
904 * libio/genops.c: Likewise.
905 * libio/iofopncook.c: Likewise.
906 * libio/iopopen.c: Likewise.
907 * libio/memstream.c: Likewise.
908 * libio/obprintf.c: Likewise.
909 * libio/oldfileops.c: Likewise.
910 * libio/oldiopopen.c: Likewise.
911 * libio/strops.c: Likewise.
912 * libio/vsnprintf.c: Likewise.
913 * libio/vswprintf.c: Likewise.
914 * libio/wfileops.c: Likewise.
915 * libio/wstrops.c: Likewise.
916 * login/getutent_r.c: Likewise.
917 * login/getutid_r.c Likewise.
918 * login/getutline_r.c: Likewise.
919 * sysdeps/generic/utmp_file.c: Likewise.
920
083dc54a
UD
9212004-01-09 Bruno Haible <bruno@clisp.org>
922
923 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
924 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
925 (_nl_load_domain): Treat major revision 1 like major revision 0.
926
9272004-01-11 Bruno Haible <bruno@clisp.org>
928
929 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
930 width or precision has been seen.
931
9322004-01-08 Bruno Haible <bruno@clisp.org>
933
934 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
935 dependent segment not known to this version of the library, ignore
936 the string pair instead of crashing.
937
82e2ba9a
UD
9382004-01-13 Ulrich Drepper <drepper@redhat.com>
939
5de90b7c
UD
940 * configure.in: Rewrite test to give gcc to clean up after itself.
941 Patch by Greg Schafer.
942
82e2ba9a
UD
943 * posix/regex.c: Support crappy compilers and platforms which have
944 problems with alloca.
945 * posix/regex_internal.h: Likewise.
946 Patch by Paolo Bonzini.
947
10677727
UD
9482004-01-12 Paolo Bonzini <bonzini@gnu.org>
949
950 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
951 Drop code to support this, it is never true.
952 (build_range_exp) [!_LIBC]: Do not create a range
953 in MBCSET for a single-byte character set.
954 (build_range_exp) [_LIBC]: Do not create a range
955 in MBCSET for a single-byte character set without
956 collation elements.
957 (init_dfa): Do not conditionalize on _LIBC, it
958 just makes the code less clear.
959 (parse_bracket_exp): Use NON_MATCH variable in
960 addition to "mbcset->non_match", not as an
961 alternative.
962 (build_charclass_op): rename NOT parameter to
963 NON_MATCH, use it instead of declaring a variable.
964 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
965 if the character set is single-byte.
966
294b6bcc
UD
9672004-01-14 Jakub Jelinek <jakub@redhat.com>
968
969 * posix/regcomp.c (peek_token_bracket): Check remaining
970 string length before re_string_peek_byte (x, 1).
971 (parse_bracket_symbol): Likewise.
972 * posix/regex_internal.h (re_string_is_single_byte_char): Return
973 true at last byte in the string.
974 * posix/bug-regex22.c (main): Add new test.
975
ea4f25a7
UD
9762004-01-13 Ulrich Drepper <drepper@redhat.com>
977
81144a9c
UD
978 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
979 .data.rel.ro.
980
ea4f25a7
UD
981 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
982
983 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
984 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
985 rtld_hidden_def and move into .data.rel.ro section.
986 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
987 rtld_hidden_proto.
988 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
989 if !SHARED.
990
17aff4c8
RH
9912004-01-13 Richard Henderson <rth@redhat.com>
992
993 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
994
d1fc817e
UD
9952004-01-13 Ulrich Drepper <drepper@redhat.com>
996
ea4f25a7
UD
997 * sysdeps/unix/sysv/linux/dl-execstack.c
998 (_dl_make_stack_executable): Move common code in front. Use
999 __builtin_expect.
1000
d1fc817e
UD
1001 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
1002 challenge for caller.
1003 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
1004 member in rtld_global appropriately.
1005 * elf/dl-support.c: Likewise.
1006 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
1007 Pass it on to the changed function.
1008 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
1009
141749ca
RH
10102004-01-13 Richard Henderson <rth@redhat.com>
1011
1012 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
1013 Cast old up to uint64_t before back down to inner width.
1014 (__arch_compare_and_exchange_xxx_16_int): Likewise.
1015 (__arch_compare_and_exchange_xxx_32_int): Likewise.
1016 (__arch_compare_and_exchange_xxx_64_int): Likewise.
1017 (__arch_compare_and_exchange_val_8_int): Cast result to
1018 the type of the memory.
1019 (__arch_compare_and_exchange_val_16_int): Likewise.
1020 (__arch_compare_and_exchange_val_32_int): Likewise.
1021 (__arch_compare_and_exchange_val_64_int): Likewise.
1022 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
1023 (atomic_compare_and_exchange_bool_rel): Likewise.
1024
1025 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
1026 based on HAVE___THREAD instead of USE_TLS.
1027
1028 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
1029 (__adjtimex_tv64): Use it.
1030
1031 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
1032 to void* rather than directly to the compatibility structure type.
1033 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
1034
1035 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
1036 Forward declare.
1037
1705f0a3
RH
10382004-01-13 Richard Henderson <rth@redhat.com>
1039
1040 * Versions.def (libm): Add GLIBC_2.3.3.
1041 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
1042 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
1043 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
1044 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
1045 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
1046 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
1047 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
1048 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
1049 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
1050 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
1051 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
1052 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
1053 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
1054 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
1055 functions for gcc 3.3.
1056
1057 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
1058 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
1059 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
1060 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
1061 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
1062 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
1063 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
1064 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
1065 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
1066 weak_alias if the function name has been #defined.
1067
1068 * math/cabsf.c: Move ...
1069 * sysdeps/generic/cabsf.c: ... here.
1070 * math/cargf.c: Move ...
1071 * sysdeps/generic/cargf.c: ... here.
1072 * math/cimagf.c: Move ...
1073 * sysdeps/generic/cimagf.c: ... here.
1074 * math/conjf.c: Move ...
1075 * sysdeps/generic/conjf.c: ... here.
1076 * math/crealf.c: Move ...
1077 * sysdeps/generic/crealf.c: ... here.
1078
ed20b3d9
UD
10792004-01-13 Ulrich Drepper <drepper@redhat.com>
1080
1081 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
1082 LDFLAGS.so and LDFLAGS-rtld.
1083 (+link): Add relro-LDFLAGS.
1084 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
1085 __libc_thread_subfreeres sections after .jcr section.
1086 * config.make.in: Add have-z-relro.
1087 * configure.in: Add check for -z relro option.
1088 * include/link.h (struct link_map): Add relro_addr and relro_size
1089 members.
1090 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
1091 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
1092 part of loaded segments read-only.
1093 * elf/elf.h: Define PT_GNU_RELRO.
1094 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
1095 (dl_main): Recognize PT_GNU_RELRO of the application. Call
1096 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
1097 relocations.
1098
a5ee0b9e
AJ
10992004-01-12 Jakub Jelinek <jakub@redhat.com>
1100
1101 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
1102
7e7458e3
AJ
11032004-01-11 Andreas Jaeger <aj@suse.de>
1104
1105 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
1106
0e328c85
UD
11072004-01-10 Andreas Jaeger <aj@suse.de>
1108
1109 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
1110 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
1111 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1112 * sysdeps/x86_64/strcspn.S: Likewise.
1113 * sysdeps/x86_64/strspn.S: Likewise.
1114
249a3d0c
UD
11152004-01-08 Jakub Jelinek <jakub@redhat.com>
1116
1117 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
1118 right before syscall and cfi_startproc before PSEUDO_END.
1119 Clear %rbp in thread_start.
1120
f39eef7b
UD
11212004-01-05 Jakub Jelinek <jakub@redhat.com>
1122
1123 * posix/regcomp.c (regcomp): Fix comment typo.
1124 (regfree): Free preg->translate, clear buffer, allocated, fastmap
1125 and translate fields.
1126
1127 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
1128 argument to unsigned RE_TRANSLATE_TYPE.
1129 * posix/regex_internal.h (re_string_t): Change trans type to
1130 unsigned RE_TRANSLATE_TYPE.
1131 * posix/regex_internal.c (re_string_construct_common): Cast
1132 trans to unsigned RE_TRANSLATE_TYPE.
1133 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
1134 path if pstr->trans. Never translate the character through
1135 pstr->trans.
1136 * posix/Makefile (tests): Add bug-regex22.
1137 (bug-regex22-ENV): Set.
1138 * posix/bug-regex22.c: New test.
1139
59e7ebcc
UD
11402004-01-02 Paolo Bonzini <bonzini@gnu.org>
1141
1142 * posix/regex_internal.c (re_node_set_add_intersect,
1143 re_node_set_merge): Rewritten.
1144 (re_node_set_insert, re_node_set_remove_at):
1145 Avoid memmove, we know what direction we should copy and that we
1146 are copying 32-bit words.
1147 (re_node_set_compare): Iterate backwards.
1148
875c594c
RM
11492003-12-30 Paul Eggert <eggert@twinsun.com>
1150
1151 * time/mktime.c (verify): New macro.
1152 (time_t_is_integer, twos_complement_arithmetic,
1153 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
1154 C99_integer_division): Document these longstanding assumptions in the
1155 code, and verify them at compile-time.
1156
56b168be
UD
11572004-01-02 Jakub Jelinek <jakub@redhat.com>
1158
59e7ebcc
UD
1159 * posix/regex_internal.h (re_match_context_t): Add dfa member.
1160 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
1161 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
1162 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
1163 sift_states_backward, update_cur_sifted_state, check_dst_limits,
1164 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
1165 check_subexp_matching_top, transit_state_sb, transit_state_mb,
1166 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
1167 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
e1238dc9
AJ
1168 Remove dfa parameter. Get dfa from mctx. Adjust callers.
1169 (re_search_internal): Initialize mctx.dfa.
59e7ebcc 1170
56b168be
UD
1171 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
1172
1173 * posix/regex_internal.h (re_dfa_t): Add syntax field.
1174 * posix/regcomp.c (parse): Initialize dfa->syntax.
1175 * posix/regexec.c (acquire_init_state_context,
1176 prune_impossible_nodes, check_matching, check_halt_state_context,
1177 proceed_next_node, sift_states_iter_mb, sift_states_backward,
1178 update_cur_sifted_state, sift_states_bkref, transit_state,
1179 transit_state_sb, transit_state_mb, transit_state_bkref,
1180 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
1181 build_trtable): Remove preg argument, add dfa argument instead
1182 and remove dfa = preg->buffer initialization in the body.
1183 Adjust all callers.
1184 (check_node_accept_bytes, group_nodes_into_DFAstates,
1185 check_node_accept): Likewise. Use dfa->syntax instead of
1186 preg->syntax.
1187 (check_arrival_add_next_nodes): Remove preg argument.
1188
1189 * posix/regex_internal.h (re_match_context_t): Make input
1190 re_string_t instead of a pointer to it.
1191 * posix/regex_internal.c (re_string_construct_common): Don't clear
1192 pstr here...
1193 (re_string_construct): ... but only here.
1194 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
1195 initialize fields to zero.
1196 (re_search_internal): Move input into mctx.input.
1197 (acquire_init_state_context, check_matching,
1198 check_halt_state_context, proceed_next_node,
1199 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
1200 transit_state, transit_state_sb, transit_state_mb,
1201 transit_state_bkref, get_subexp, check_arrival,
1202 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
1203 Change mctx->input into &mctx->input and mctx->input->field into
1204 mctx->input.field.
1205
12062004-01-02 Jakub Jelinek <jakub@redhat.com>
1207 Paolo Bonzini <bonzini@gnu.org>
1208
1209 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
1210 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
1211 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
1212 (re_string_context_at, re_string_reconstruct): Remove last argument.
1213 * posix/regex_internal.c (re_string_allocate): Initialize
1214 pstr->word_char and pstr->word_ops_used.
1215 (re_string_context_at): Remove newline_anchor argument.
1216 Use input->newline_anchor instead, swap && conditions.
1217 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
1218 Use input->word_char bitmap instead of IS_WORD_CHAR.
1219 (re_string_reconstruct): Likewise.
1220 Adjust re_string_context_at caller.
1221 * posix/regexec.c (acquire_init_state_context,
1222 check_halt_state_context, transit_state, transit_state_sb,
1223 transit_state_mb, transit_state_bkref, check_arrival,
1224 check_node_accept): Adjust re_string_context_at and
1225 re_string_reconstruct callers.
1226 (re_search_internal): Likewise. Set input.newline_anchor.
1227 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
1228 * posix/regcomp.c (init_word_char): Change return type to void.
1229 Set dfa->word_ops_used.
1230 (free_dfa_content): Don't free dfa->word_char.
1231 (parse_expression): Remove error handling for init_word_char.
1232
8503c987
UD
12332004-01-01 Paolo Bonzini <bonzini@gnu.org>
1234
1235 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
1236 bitfield.
1237
1238 * posix/regex_internal.c (re_node_set_insert): Rewrite.
1239
25751060
UD
12402004-01-01 Ulrich Drepper <drepper@redhat.com>
1241
1242 * posix/getconf.c: Update copyright year.
1243 * nss/getent.c: Likewise.
1244 * nscd/nscd_nischeck.c: Likewise.
1245 * iconv/iconvconfig.c: Likewise.
1246 * iconv/iconv_prog.c: Likewise.
1247 * elf/ldconfig.c: Likewise.
1248 * catgets/gencat.c: Likewise.
1249 * csu/version.c: Likewise.
1250 * elf/ldd.bash.in: Likewise.
1251 * elf/sprof.c (print_version): Likewise.
1252 * locale/programs/locale.c: Likewise.
1253 * locale/programs/localedef.c: Likewise.
1254 * nscd/nscd.c (print_version): Likewise.
1255 * debug/xtrace.sh: Likewise.
1256 * malloc/memusage.sh: Likewise.
1257 * malloc/mtrace.pl: Likewise.
1258
a4024b3e
UD
12592004-01-01 Petter Reinholdtsen <pere@hungry.com>
1260
1261 * stdlib/strfmon.c: Make formatting of left-justified currency
1262 values match the the POSIX standard. When using format string
1263 "[%-14#5.4n]" to print -123.45, the result should be
1264 "[-$ 123.4500 ]", not "[-$123.4500 ]".
1265
434190c0
AJ
12662004-01-01 Andreas Jaeger <aj@suse.de>
1267
1268 * resolv/Makefile (generated): New.
1269
a4e2a169
RM
12702003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
1271
1272 * CONFORMANCE: Update.
1273
e039fb25
RM
12742003-12-30 Paul Eggert <eggert@twinsun.com>
1275
7683e140
RM
1276 * time/mktime.c: (my_mktime_localtime_r):
1277 Remove. All uses changed to __localtime_r.
1278 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
1279 get its implementation.
1280 Fix compile-command to allow for TIME_R_POSIX.
1281
1282 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
1283 Remove. All uses changed to __localtime_r and __gmtime_r.
1284 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
1285 Include "time_r.h" to get their implementations.
1286
1287 * time/timegm.c: Allow use in GNU applications outside glibc.
1288 [defined HAVE_CONFIG_H]: Include <config.h>.
1289 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
1290 Define __gmtime_r, and declare __mktime_internal.
1291 (timegm): Define via a prototype, since we can safely assume C89 now.
1292
e039fb25
RM
1293 * time/mktime.c (check_result): Use less-confusing report format.
1294 "long" -> "long int", as per usual GNU style.
1295 (main): Likewise.
1296 Don't loop if the iteration overflows time_t.
1297 Allow a negative step in the iteration.
1298
1299 * time/mktime.c: Assume freestanding C89 or better.
1300 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
1301 assume they're 1.
1302 (__P): Remove; not used.
1303 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
1304 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
1305 Prototypes use const * where appropriate.
1306 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
1307 which caused the testing code to dump core on some hosts.
1308
d4b04a33
UD
13092003-12-31 Ulrich Drepper <drepper@redhat.com>
1310
a31f867a
UD
1311 * locale/setlocale.c (setlocale): Avoid duplicating locale names
1312 if we can reuse old strings.
1313
520ec963
UD
1314 * inet/rcmd.c: Provide better error message in case of unknown
1315 host. Remove USE_IN_LIBIO.
1316
1317 * nscd/nscd.init: Updated version, more conforming with current
1318 init file standards.
1319
1320 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
1321 /var/run/nscd directory.
1322 (_PATH_NSCDSOCKET): Likewise.
1323
1324 * test-skeleton.c (timeout_handler): Fix error message.
1325
d4b04a33
UD
1326 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
1327 CNT == 0.
1328
5bd4d368
UD
13292003-12-30 Jakub Jelinek <jakub@redhat.com>
1330
7c1be3ec
UD
1331 * posix/regexec.c (get_subexp): Only set bkref_str after the first
1332 loop, use buf + bkref_str_off in the loop instead.
1333 * posix/bug-regex11.c (tests): Add 3 new tests.
1334
1335 * posix/regexec.c (clean_state_log_if_need): Rename to...
1336 (clean_state_log_if_needed): ...this.
1337 (transit_state_mb, get_subexp_sub): Adjust callers.
1338
5bd4d368
UD
1339 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
1340 failed. Reported by Steve Grubb.
1341
e5ebb9ca
UD
13422003-12-29 Ulrich Drepper <drepper@redhat.com>
1343
1344 * elf/elf.h: Add a few definitions from Solaris 9.
1345
795985e4
UD
13462003-12-29 Andreas Schwab <schwab@suse.de>
1347
1348 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
1349 $(fno_unit_at_a_time) to avoid reordering assembler output.
1350
44777771
UD
13512003-12-29 Jakub Jelinek <jakub@redhat.com>
1352
1353 * posix/regexec.c (re_copy_regs): Revert comment change.
1354 Avoid memory leak if realloc fails.
1355 (proceed_next_node): Return -2 if re_node_set_insert fails.
1356 Return -2 if push_fail_stack fails.
795985e4 1357 (push_fail_stack): Change fs->alloc only after successful realloc.
44777771 1358 (pop_fail_stack): Formatting.
795985e4 1359 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
44777771
UD
1360 (check_arrival_add_next_nodes): Merge identical statements
1361 from if branches.
1362
1363 * signal/Makefile (tests): Add tst-raise.
1364 * signal/tst-raise.c: New test.
1365
19eb812f
UD
13662003-12-28 Ulrich Drepper <drepper@redhat.com>
1367
a96c63ed
UD
1368 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
1369
1370 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
5a299c96
UD
1371 (push_fail_stack): Add missing check for failed memory allocation.
1372
19eb812f 1373 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
a96c63ed 1374 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
19eb812f
UD
1375 _IO_putwc_unlocked.
1376
add14478
AJ
13772003-12-28 Andreas Jaeger <aj@suse.de>
1378
1f510b3f 1379 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
5a299c96 1380 overflow for 0 as argument. Raise Invalid exception for negative args.
1f510b3f
AJ
1381 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1382 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
1383 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
1384 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
1385 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
1386 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
1387 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
1388 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
1389 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1390 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
1391 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
1392
1393 * math/libm-test.inc (yn_test): Expect invalid exception for
1394 negative arguments.
1395 (y0_test): Likewise.
1396 (y1_test): Likewise.
1397
add14478
AJ
1398 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
1399 execptions for exp(NaN).
1400
6b6557e8
UD
14012003-12-23 Paolo Bonzini <bonzini@gnu.org>
1402
1403 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
1404 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
1405 among the tokens, rather than among the epsilon-transiting nodes.
1406 (re_token_t): Add the opt_subexp flag.
1407 * posix/regcomp.c (optimize_utf8, calc_first,
1408 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
1409 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
1410 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
1411 OP_DUP_ASTERISK and marking optional subexpressions
1412 as such using mark_opt_subexp.
1413 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
1414 and pass it to update_regs.
1415 (update_regs): Use the PREV_INDEX_MATCH parameter, together
1416 with the opt_subexp flag, in order to discard a final empty
1417 match of a repeated subexpression.
1418 * posix/BOOST.tests: Adjust test vectors.
1419 * posix/PCRE.tests: Likewise.
1420 * posix/rxspencer/tests: Likewise.
1421
4e142297
RM
14222000-05-22 Jakub Jelinek <jakub@redhat.com>
1423
1424 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
1425 with omitted middle operand.
1426
8cae99db
UD
14272003-12-22 Jakub Jelinek <jakub@redhat.com>
1428
1429 * posix/regcomp.c: Remove C99-ism.
1430 * posix/tst-rxspencer.c: Likewise.
1431 Based on a patch by Alex Davis <alex14641@yahoo.com>.
1432
6b6557e8 14332003-12-17 Paolo Bonzini <bonzini@gnu.org>
8cae99db
UD
1434
1435 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
1436 (re_string_allocate, re_string_construct, re_string_reconstruct,
1437 re_string_realloc_buffers, build_wcs_buffer,
1438 build_wcs_upper_buffer, build_upper_buffer,
1439 re_string_translate_buffer, re_string_destruct,
1440 re_string_elem_size_at, re_string_char_size_at,
1441 re_string_wchar_at, re_string_context_at,
1442 re_node_set_alloc, re_node_set_init_1
1443 re_node_set_init_2, re_node_set_init_copy,
1444 re_node_set_add_intersect, re_node_set_init_union,
1445 re_node_set_merge, re_node_set_insert
1446 re_node_set_compare, re_node_set_contains
1447 re_node_set_remove_at, re_dfa_add_node,
1448 re_acquire_state, re_acquire_state_context,
1449 free_state): Add internal_function to declaration.
1450
1451 * posix/regexec.c (match_ctx_init, match_ctx_clean,
1452 match_ctx_free, match_ctx_free_subtops,
1453 match_ctx_add_entry, search_cur_bkref_entry,
1454 match_ctx_clear_flag, match_ctx_add_subtop,
1455 match_ctx_add_sublast, sift_ctx_init,
1456 re_search_internal, re_search_2_stub, re_search_stub,
1457 re_copy_regs, acquire_init_state_context,
1458 prune_impossible_nodes, check_matching,
1459 check_halt_node_context, check_halt_state_context
1460 update_regs, proceed_next_node, push_fail_stack,
1461 pop_fail_stack, set_regs, free_fail_stack_return,
1462 sift_states_iter_mb, sift_states_backward
1463 update_cur_sifted_state, add_epsilon_src_nodes,
1464 sub_epsilon_src_nodes, check_dst_limits,
1465 check_dst_limits_calc_pos, check_subexp_limits,
1466 sift_states_bkref, clean_state_log_if_need,
1467 merge_state_array, transit_state,
1468 check_subexp_matching_top, transit_state_sb,
1469 transit_state_mb, transit_state_bkref,
1470 get_subexp, get_subexp_sub, find_subexp_node,
1471 check_arrival, check_arrival_add_next_nodes,
1472 find_collation_sequence_value, check_arrival_expand_ecl,
1473 check_arrival_expand_ecl_sub, expand_bkref_cache,
1474 build_trtable, check_node_accept_bytes, extend_buffers,
1475 group_nodes_into_DFAstates, check_node_accept): Likewise.
1476
1477 * posix/regex_internal.c (re_string_construct_common,
1478 re_string_skip_chars, create_newstate_common,
1479 register_state, create_ci_newstate, create_cd_newstate,
1480 calc_state_hash): Likewise.
1481 (re_string_peek_byte_case, re_fetch_byte_case): Change
1482 declaration from ANSI to K&R.
1483
6b6557e8 14842003-12-16 Paolo Bonzini <bonzini@gnu.org>
8cae99db
UD
1485
1486 * posix/regexec.c (build_trtable): Don't allocate the trtable
1487 until state->word_trtable is known. Don't hardcode UINT_BITS
1488 iterations on each bitset item.
1489
d3e4ed99
RM
14902003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1491
1492 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
1493 Initialize REF before passing it to _dl_lookup_symbol.
1494
0d7f2f21
RM
14952003-12-21 Roland McGrath <roland@frob.com>
1496
1497 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
1498
1cef7b3c
UD
14992003-12-21 Jakub Jelinek <jakub@redhat.com>
1500
1501 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
1502 2003-11-24 changes.
1503 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
1504 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
1505 * posix/bug-regex19.c (tests): Add new tests.
1506
1507 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
1508
1509 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
1510 after checking syntax. Optimize.
1511 (calc_first): Fix comment.
1512 * posix/bug-regex13.c (tests): Add new tests.
1513
f5708cb0
RM
15142003-12-21 Roland McGrath <roland@redhat.com>
1515
1516 * manual/arith.texi (Parsing of Integers): Typo fix.
1517
15182003-12-20 Roland McGrath <roland@frob.com>
1519
1520 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
1521 add missing dereference of IFREQS before counting loop.
1522
a9ead056
AS
15232003-12-21 Andreas Schwab <schwab@suse.de>
1524
1525 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
1526 constraints.
1527
c0ecb80a
UD
15282003-12-20 Ulrich Drepper <drepper@redhat.com>
1529
a9ead056 1530 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
c0ecb80a 1531
8a7455e7
UD
15322003-12-18 Ulrich Drepper <drepper@redhat.com>
1533
1534 * stdio-common/printf_fp.c: Add support to use alternative decimal
1535 digits.
1536 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
1537 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
1538
3434f152
UD
15392003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
1540
1541 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
1542 reload PIC if we need to call __syscall_error, cleanup asm.
1543
592f26a3
UD
15442003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
1545
1546 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
1547 FE_ALL_EXCEPT before complimenting.
1548 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
1549 and gcc '+r' constraint.
1550 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
1551 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
1552 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
1553 exception bits, OR with envp, pass to fesetenv.
1554 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
1555 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
1556 triggered by M_PI/69.69 converted to single precision.
1557 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
1558 bits not raised exception bits.
1559
1560 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
1561 correct build strings.
1562 * sysdeps/hppa/dl-fptr.h: New file.
1563 * sysdeps/hppa/dl-fptr.c: Removed.
1564 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
1565 remove const qualifier for map.
1566 (_dl_function_address): Removed.
1567 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
1568 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
1569 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
1570 DL_DT_FINI_ADDRESS use the previous two macros.
1571
e796f92f
UD
15722003-12-17 Jakub Jelinek <jakub@redhat.com>
1573
1574 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
1575 (tr_memalignhook): New function.
1576 (mtrace): Register tr_memalignhook.
1577 (muntrace): Deregister tr_memalignhook.
1578 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
1579 call it directly instead of memalign_internal.
1580
15812003-12-17 Ulrich Drepper <drepper@redhat.com>
1582
592f26a3 1583 * misc/mntent_r.c: Change encoding to match recently changed decoder.
e796f92f
UD
1584 Patch by Alexander Achenbach <xela@slit.de>.
1585
15862003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1587
1588 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
1589 vrregset_t.
1590
15912003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1592
f5708cb0 1593 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
e796f92f
UD
1594 conditional to include typedef elf_vrreg_t.
1595
6b6557e8 15962003-12-17 Paolo Bonzini <bonzini@gnu.org>
e796f92f
UD
1597
1598 * posix/regexec.c (re_search_internal): Limit search to the
1599 beginning of the buffer if the initial states are empty for
1600 contexts that do not include CONTEXT_BEGBUF or, if
1601 !preg->newline_anchor, that do not include any one of
1602 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
1603
219ebb6d
AJ
16042003-12-17 Andreas Jaeger <aj@suse.de>
1605
1606 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
1607 Kevin Pedretti <pedretti@ieee.org>.
1608
27a754a9
UD
16092003-12-17 Ulrich Drepper <drepper@redhat.com>
1610
1611 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
1612 removes the visibility attributes which might be defined earlier
1613 for some gcc versions. Instead spell out what strong_alias does
1614 plus the visibility.
1615
93226feb
UD
16162003-12-16 Petter Reinholdtsen <pere@hungry.com>
1617
1618 * posix/regex_internal.h: Make sure the regex code compile
1619 with non-GCC compilers by hiding attributes.
1620
6b6557e8 16212003-12-16 Jakub Jelinek <jakub@redhat.com>
141749ca 1622 Paolo Bonzini <bonzini@gnu.org>
457beec8
UD
1623
1624 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
1625 dests_ch items that are empty.
1626
c0d5034e
UD
16272003-12-14 Paolo Bonzini <bonzini@gnu.org>
1628
1629 * posix/regexec.c (check_arrival): Remove duplicate test.
1630
16312003-12-15 Ulrich Drepper <drepper@redhat.com>
1632
1633 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
1634 * posix/regex_internal.c: Likewise.
1635 * posix/regexec.c: Likewise.
1636 Patch by Paolo Bonzini.
1637
a0a8461c
UD
16382003-12-14 Paolo Bonzini <bonzini@gnu.org>
1639
1640 * posix/regex_internal.c (re_acquire_state_context):
141749ca 1641 Compare the node sets after all the other comparisons.
a0a8461c
UD
1642
16432003-12-13 Paolo Bonzini <bonzini@gnu.org>
1644
1645 * posix/regexec.c (find_subexp_node, check_arrival,
1646 check_arrival_add_next_nodes, check_arrival_expand_ecl,
1647 check_arrival_expand_ecl_sub, expand_bkref_cache):
1648 Rename the FL_OPEN parameter to TYPE, which is either
1649 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
1650
0a6321ba
AJ
16512003-12-12 Andreas Jaeger <aj@suse.de>
1652
1653 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
1654 to syscall.
1655
8e4f5035
UD
16562003-12-11 Ulrich Drepper <drepper@redhat.com>
1657
1658 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
1659 There might always be processes which have no vDSO.
1660 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
1661 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1662
1ce9631b
UD
16632003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1664
1665 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
1666 in the right order.
1667
092eb73c
UD
16682003-12-01 Jes Sorensen <jes@wildopensource.com>
1669
1670 * rt/tst-clock.c (do_test): Print message when skipping
1671 CLOCK_PROCESS_CPUTIME_ID test.
1672
1673 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
1674 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
1675
c776b3d7
UD
16762003-12-02 David Mosberger <davidm@hpl.hp.com>
1677
1678 * sysdeps/ia64/elf/initfini.c: Add unwind info.
1679
1680 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
1681 attribute "unused".
1682 (elf_machine_dynamic): Mark with attributes "unused" and "const".
1683 (elf_machine_runtime_setup): Likewise.
1684
1685 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
1686 attribute "always_inline".
1687 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
1688 Likewise.
1689
1690 * configure.in: Check whether compiler has libunwind support.
1691 * config.make.in (have-cc-with-libunwind): New variable.
1692 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
a0a8461c 1693 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
c776b3d7
UD
1694 mention -lunwind.
1695
a0a8461c 16962003-11-12 David Mosberger <davidm@hpl.hp.com>
c776b3d7
UD
1697
1698 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
1699 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
1700 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
1701 DO_INLINE_SYSCALL.
1702
1703 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
1704 instead of DO_CALL().
1705
1706 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
1707 of DO_CALL().
1708
1709 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
1710 to take advantage of DO_CALL() macro.
1711 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1712 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1713
1714 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
1715 program header. On ia64, the check failed previously because
1716 there are two program headers.
1717
e1d74bec
AJ
17182003-12-10 Andreas Jaeger <aj@suse.de>
1719 Ruediger Oertel <ro@suse.de>
1720
1721 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
1722
07449987
UD
17232003-12-07 Ulrich Drepper <drepper@redhat.com>
1724
1725 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
1726 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1727 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1728 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
c776b3d7 1729 * sysdeps/generic/s_nexttowardf.c: Likewise.
07449987 1730 * math/Makefile (tests): Add bug-nexttoward.
c776b3d7 1731 * math/bug-nexttoward.c: New file.
07449987
UD
1732
1733 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
1734 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1735 * math/bug-nextafter.c (main): Add tests for overflow and negative
1736 values.
1737
64b02fd2
UD
17382003-12-06 Ulrich Drepper <drepper@redhat.com>
1739
1740 * math/Makefile (tests): Add bug-nextafter.
1741 * math/bug-nextafter.c: New file.
1742 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
1743 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1744 * math/libm-test.inc (nextafter_test): Add test for overflow after
1745 +/-FLT_MAX etc.
1746
c2630c3a
UD
17472003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
1748
1749 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
1750 of fenv.
1751 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1752
844a34a2
UD
17532003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1754
1755 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1756 statements.
1757 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1758 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1759 (END): Add cfi_endproc directive.
1760 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1761 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1762 cfi_startproc and cfi_endproc directive.
1763 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1764 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1765 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1766 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1767 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1768 Likewise.
1769 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1770 Likewise.
1771 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1772 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1773 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1774 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1775 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1776 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1777 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1778 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1779 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1780 Likewise.
1781 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1782 Likewise.
1783 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1784 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1785 make backchain terminate.
1786 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1787
1788 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1789 (unwind_backtrace, unwind_getip): New variables.
1790 (init, __backchain_backtrace, backtrace_helper): New functions.
1791 (__backtrace): Use unwind info for backtrace instead of backchain
1792 walking if the unwind functions can be found.
1793 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1794
1795 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1796
1797 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1798 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1799 (elf_prstatus32, elf_prpsinfo32): New structures.
1800 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1801
1802 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1803 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1804
dd17514c
UD
18052003-11-30 Petter Reinholdtsen <pere@hungry.com>
1806
1807 * stdlib/strfmon.c: Correct formatting of international currency
1808 values. The international currency formatting should prefer the
1809 int_* values if they are set for a locale, and use the domestic
1810 values if the int_* values are unset.
1811
6c805a2b
UD
18122003-12-03 Jakub Jelinek <jakub@redhat.com>
1813
1814 * posix/Makefile (distribute): Add BOOST.tests.
1815 (tests): Add tst-boost, depend on tst-boost-mem.
1816 (generated): Add tst-boost-mem and tst-boost.mtrace.
1817 (tst-boost-ARGS, tst-boost-ENV): Set.
1818 ($(objpfx)tst-boost-mem): New.
1819 * posix/tst-boost.c: New test.
1820 * posix/BOOST.tests: New file.
1821
1822 * posix/Makefile (distribute): Add PCRE.tests.
1823 (tests): Add tst-pcre, depend on tst-pcre-mem.
1824 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1825 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1826 ($(objpfx)tst-pcre-mem): New.
1827 * posix/tst-pcre.c: New test.
1828 * posix/PCRE.tests: New file.
1829
18302003-12-02 Jakub Jelinek <jakub@redhat.com>
1831
1832 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1833
1834 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1835 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1836
ea08adbf
UD
18372003-12-03 Ulrich Drepper <drepper@redhat.com>
1838
1839 * locale/programs/locarchive.c (enlarge_archive): Print size info
1840 only in verbose mode.
1841
1842 * locale/iso-3166.def: Three letter code of Romania changed.
1843
66f165c8
RM
18442003-12-02 Roland McGrath <roland@redhat.com>
1845
1846 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1847 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1848
8ca203e6
AJ
18492003-11-30 Andreas Jaeger <aj@suse.de>
1850
1851 * config.make.in (fno-unit-at-a-time): Define.
1852
1853 * configure.in: Add test for -fno-unit-at-a-time.
1854 Fix text for -fpie.
1855
1856 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1857 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1858
3fe446ce
UD
18592003-12-01 Automatic
1860
1861 * version.h (VERSION): Bump to 2.3.3.
1862
7587ef7c
AJ
18632003-11-30 Andreas Jaeger <aj@suse.de>
1864
1865 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1866 decrease stack usage.
1867
52551d83
AS
18682003-11-30 Andreas Schwab <schwab@suse.de>
1869
1870 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1871 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1872
21800751
UD
18732003-11-29 Ulrich Drepper <drepper@redhat.com>
1874
1875 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1876 recognize \134 as well.
1877
06522d7e
UD
18782003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1879
1880 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1881
18822003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1883
1884 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1885 <asm/fpu.h>.
1886 (struct ia64_fpreg): New definition.
1887
1888 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1889 <asm/elf.h>.
21800751 1890 (ELF_NGREG): New #define.
06522d7e 1891 (ELF_NFPREG): Likewise.
21800751 1892 (elf_greg_t): New type.
06522d7e
UD
1893 (elf_gregset_t): Likewise.
1894 (elf_fpreg_t): Likewise.
1895 (elf_fpregset_t): Likewise.
1896
18972003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1898
1899 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1900 <sys/ucontext.h>.
1901 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
21800751 1902 (pt_all_user_regs): New type.
06522d7e 1903
c5af724c
UD
19042003-10-10 Simon Josefsson <jas@extundo.com>
1905
1906 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1907 strchrnul.h, strndup.h (from gnulib).
1908 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1909 Autoconf manual.
1910 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1911 Autoconf manual version.
1912 * argp/argp.h: Map __restrict to restrict or empty string when
1913 necessary, copied verbatim from posix/regex.h.
1914
0a76d15e
UD
19152003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1916
1917 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1918 addition to c++-types-$(base-machine)-$(config-os).data.
1919 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1920 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1921
bb3f4825
UD
19222003-11-28 Ulrich Drepper <drepper@redhat.com>
1923
37369d1c
UD
1924 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1925 of newline.
1926 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1927 Reported by Andries.Brouwer@cwi.nl.
1928
bb3f4825
UD
1929 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1930 to compensate other setup.
1931
19322003-11-27 Andreas Jaeger <aj@suse.de>
1933
1934 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1935
1936 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1937 Reported by "Willus" <etc231etc231@willus.com>.
1938
19392003-11-27 Michael Matz <matz@suse.de>
1940
1941 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1942 with wrong types.
1943
19442003-11-28 Jakub Jelinek <jakub@redhat.com>
1945
1946 * posix/regexec.c (acquire_init_state_context): Make inline.
1947 Add always_inline attribute.
1948 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1949 into if (dfa->nbackref).
1950 (sift_states_backward): Fix comment.
1951 (transit_state): Add BE macro. Move if (next_state->has_backref)
1952 into if (dfa->nbackref && next_state). Don't check for next_state
1953 != NULL twice.
1954 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1955 for ANCHOR.
1956 (parse_expression): Only call init_word_char if word context will be
1957 needed.
1958
1959 * posix/bug-regex11.c (tests): Add new tests.
1960
1961 * posix/tst-regex.c: Include getopt.h.
1962 (timing): New variable.
1963 (main): Set timing to 1 if --timing argument is present.
1964 Add 2 new tests.
1965 (run_test, run_test_backwards): Handle timing.
1966
19672003-11-27 Jakub Jelinek <jakub@redhat.com>
1968
1969 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1970 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1971 offsets_needed fields. Change icase, is_utf8 and map_notascii
1972 type from int bitfield to unsigned char.
1973 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1974 (build_wcs_upper_buffer): Change prototype to return int.
1975 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1976 defines, add prototypes.
1977 * posix/regex_internal.c (re_string_allocate): Don't initialize
1978 stop here. Don't initialize mbs_case. Set valid_raw_len.
1979 Use mbs_allocated instead of MBS_* macros.
1980 (re_string_construct): Don't initialize stop and valid_len here.
1981 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1982 macros. Reallocate buffers if build_wcs_upper_buffer converted
1983 too few bytes. Set valid_len to bufs_len only for single byte
1984 no translation and set in that case valid_raw_len as well.
1985 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1986 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1987 mbs_case.
1988 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1989 stop and raw_stop.
1990 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1991 after it. Set valid_raw_len. Don't set mbs_case.
1992 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1993 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1994 before mbrtowc instead of after it. If upper case character
1995 uses different number of bytes than lower case, goto to the
1996 slow path. Don't call towupper unnecessarily twice. Set
1997 valid_raw_len as well. Handle in the slow path the case if
1998 lower and upper case use different number of characters.
1999 Don't set mbs_case.
2000 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
2001 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
2002 valid_raw_len.
2003 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
2004 valid_raw_len.
2005 (re_string_reconstruct): Use raw_len/raw_stop to initialize
2006 len/stop. Clear valid_raw_len and offsets_needed when clearing
2007 valid_len. Use mbs_allocated instead of MBS_* macros.
2008 Check original offset against valid_raw_len instead of valid_len.
2009 Remove mbs_case handling. Adjust valid_raw_len together with
2010 valid_len. If is_utf8 and looking for tip context, apply
2011 pstr->trans first. If buffers start with partial multi-byte
2012 character, initialize mbs array as well if mbs_allocated.
2013 Check return value of build_wcs_upper_buffer.
2014 (re_string_peek_byte_case): New function.
2015 (re_string_fetch_byte_case): New function.
2016 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
2017 Don't free mbs_case. Free offsets.
2018 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
2019 if mb_cur_max == 6.
2020 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
2021 as well. Use valid_raw_len instead of valid_len when looking
2022 through fastmap. Adjust registers through input.offsets.
2023 (extend_buffers): Allow build_wcs_upper_buffer to fail.
2024 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
2025 tests.
2026
46bf9de7
UD
20272003-11-26 Jakub Jelinek <jakub@redhat.com>
2028
2029 * posix/regexec.c (check_subexp_limits): Only check close
2030 subexpression limitation if one is found. Formatting.
2031 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
2032 Formatting.
2033 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
2034 Add new test.
2035
5cb48b84
UD
20362003-11-26 Ulrich Drepper <drepper@redhat.com>
2037
2038 * sysdeps/unix/sysv/linux/kernel-features.h
2039 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
2040 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
2041 if __ASSUME_PROT_GROWSUPDOWN is defined.
2042
20432003-11-26 Andreas Jaeger <aj@suse.de>
2044
2045 * sysdeps/unix/sysv/linux/dl-execstack.c
2046 (_dl_make_stack_executable): Set dl_stack_flags always for
2047 success.
2048
ab18a27d
UD
20492003-06-22 Petter Reinholdtsen <pere@hungry.com>
2050
2051 * locale/program/ld-monetary.c: Only check the first three
2052 characters in int_curr_symbol against ISO-4217, to make the
2053 separator character used by a locale independent of the content
2054 in iso-4217.def.
2055 * locale/iso-4217.def: Remove the space character from all
2056 currency values to get the new test code in ld-monetary.c working.
2057
6def43e6
UD
20582003-11-21 David Mosberger <davidm@hpl.hp.com>
2059
2060 * elf/soinit.c (_fini): Put _fini() in .init_array section if
2061 HAVE_INITFINI_ARRAY is defined.
2062
0135bde4
UD
20632003-11-25 Ulrich Drepper <drepper@redhat.com>
2064
2065 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
2066 Define it appropriately after last change. Use it where __sqrtl
2067 was used.
2068
6d316b07
UD
20692003-11-25 H.J. Lu <hongjiu.lu@intel.com>
2070
2071 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
2072 sqrt for gcc 3.3 and above.
2073
97fd3a30
UD
20742003-11-25 Ulrich Drepper <drepper@redhat.com>
2075
2076 * posix/runptests.c (main): Make errors fatal.
2077 * posix/PTESTS: One test in GA135 and GA136 check functionality
2078 which seems not guaranteed.
2079
20802003-11-25 Jakub Jelinek <jakub@redhat.com>
2081
2082 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
2083 returned REG_NOMATCH, set match_last to -1. Don't initialize
2084 pmatch[0] needlessly. Fix comment.
2085 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
2086 (set_regs): Fix comment.
2087 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
2088 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
2089 (build_charclass_op): Set has_plural_match if adding both
2090 SIMPLE_BRACKET and COMPLEX_BRACKET.
2091 * posix/bug-regex11.c (tests): Fix register values for one commented
2092 out test. Add new tests.
2093
2094 * posix/regex_internal.c (re_string_allocate): Make sure init_len
2095 is at least dfa->mb_cur_max.
2096 (re_string_reconstruct): If is_utf8, don't fall back into
2097 re_string_skip_chars just because idx points into a middle of
2098 valid UTF-8 character. Instead, set the wcs bytes which correspond
2099 to the partial character bytes to WEOF.
2100 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
2101 instead of dfa->nodes_len + 1 state_log entries initially.
2102 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
2103 tests.
2104
65e6becf
UD
21052003-11-24 Jakub Jelinek <jakub@redhat.com>
2106
2107 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
2108 comment.
2109 (re_dfa_t): Add sb_char field.
2110 (bitset_mask): New function.
2111 * posix/regcomp.c (free_dfa_content): Free sb_char.
2112 (init_dfa): Don't initialize word_char unnecessarily.
2113 Initialize sb_char.
2114 (duplicate_node): Don't duplicate !word_char CHARACTERs with
2115 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
2116 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
2117 (duplicate_node_closure): Handle clone_dest == -1 from
2118 duplicate_node.
2119 (peek_token): Initialize word_char bit.
2120 (parse_expression, parse_dup_op): Add comments.
2121 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
2122 starting bytes here at the beginning. Mask off the bits right
2123 before creating SIMPLE_BRACKET.
2124 (build_charclass_op): Likewise.
2125 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
2126 set accept bits for single-byte characters.
2127 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
2128 being single byte encoded and the rest multi-byte.
2129 * posix/bug-regex19.c (tests): Add new tests.
2130 (do_mb_tests): Initialize t to *test.
2131 (main): Fail even on do_mb_tests errors.
2132
fe9434bb
UD
21332003-11-23 Ulrich Drepper <drepper@redhat.com>
2134
951d6408
UD
2135 * posix/regexec.c: Correct several memory allocation problems.
2136 Add more BE.
2137 * posix/regex_internal.c: Likewise.
2138 * posix/regcomp.c: Likewise.
2139
fe9434bb
UD
2140 * posix/regexec.c: Add const in a number of places.
2141 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
2142 debugging. Its value isn't important.
2143
18e3dc56
UD
21442003-11-22 Ulrich Drepper <drepper@redhat.com>
2145
2146 * posix/PTESTS: Fix first test of GA143.
2147
cb2eab1f
UD
21482003-11-21 Ulrich Drepper <drepper@redhat.com>
2149
18e3dc56
UD
2150 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
2151 isn't likely.
2152
cb2eab1f
UD
2153 * locale/programs/charmap.c (charmap_read): If encoding is found
2154 not ASCII compatible, set enc_not_ascii_compatible.
2155 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
2156 * locale/programs/ld-ctype.c (ctype_startup): If
2157 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
2158
21592003-11-22 Jakub Jelinek <jakub@redhat.com>
2160
2161 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
2162 if !__libc_enable_secure.
2163
2164 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
2165 field.
2166 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
2167 (dl_main): Set GL(dl_use_load_bias) default.
2168 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
2169 Add EXTRA_LD_ENVVARS_13.
2170 * elf/dl-support.c (_dl_use_load_bias): New variable.
2171 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
2172 with GL(dl_use_load_bias).
2173 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
2174 LD_USE_LOAD_BIAS.
2175 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
2176 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
2177 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
2178 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
2179 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
2180
f0d77aa8
UD
21812003-11-21 Ulrich Drepper <drepper@redhat.com>
2182
c5c9c929
UD
2183 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
2184
2185 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
2186 pointer. Adjust callers.
2187
f0d77aa8 2188 * posix/regcomp.c (fetch_token): Change interface to match
092eb73c 2189 peek_token. This avoids some copying and reduces code size.
f0d77aa8 2190
bf68b236
UD
21912003-11-21 Jakub Jelinek <jakub@redhat.com>
2192
73163a09
UD
2193 * posix/bug-regex19.c (tests): Add more tests.
2194
3ccd8d27
UD
2195 * posix/bug-regex11.c: And one more commented out test.
2196
bf68b236
UD
2197 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
2198 tests multiple times unnecessarily.
2199
bf68b236
UD
2200 * posix/bug-regex19.c (BRE, ERE): Define.
2201 (tests): Add many new tests, remove UTF-8 ones.
2202 (do_one_test, do_mb_tests): New functions.
2203 (main): Rewritten using do_one_test and do_mb_tests.
2204
c13c99fa
UD
22052003-11-20 Ulrich Drepper <drepper@redhat.com>
2206
2207 * posix/PTESTS: Fix first test in GA143.
2208
22092003-11-20 Jakub Jelinek <jakub@redhat.com>
2210
2211 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
2212 Add word_trtable.
2213 * posix/regex_internal.c (create_newstate_common, free_state):
2214 Don't free trtable_search.
2215 * posix/regexec.c (check_matching): Remove fl_search argument.
2216 (transit_state_sb): Likewise. #ifdef out as unused.
2217 (build_trtable): Remove fl_search argument. Set state->word_trtable
2218 and state->trtable. Build separate word and non-word tables if
2219 multi-byte and they differ for some character.
2220 (transit_state): Remove fl_search argument. Don't update
2221 state->trtable here. Handle state->word_trtable.
2222 #ifdef out unused call to transit_state_sb.
2223 (re_search_internal): Update check_matching caller.
2224 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
2225 bitmask for multi-byte locales.
2226 * posix/bug-regex19.c (tests): Enable some commented out tests, add
2227 2 new tests.
2228 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
2229 multi-byte. Don't run identical multi-byte tests multiple times
2230 unnecessarily.
2231 (main): Check setlocale return value.
2232 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
2233 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
2234 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
2235 here, without --utf8 argument but with MALLOC_TRACE.
2236
ee70274a
UD
22372003-11-19 Jakub Jelinek <jakub@redhat.com>
2238
2239 * posix/regexec.c (extend_buffers): Don't allocate
2240 twice as big state_log as needed. Don't modify pstr->valid_len
2241 for mb_cur_max == 1 !icase !trans.
2242
2243 * posix/regcomp.c (free_bin_tree): Removed.
2244 (create_tree): Add dfa argument. Don't call re_malloc for
2245 each tree, instead allocate from str_tree_storage.
2246 (re_dfa_add_tree_node): New function.
2247 (free_dfa_content): Handle freeing if dfa->nodes == NULL
2248 or dfa->state_table == NULL.
2249 (re_compile_internal): Call free_dfa_content if init_dfa
2250 fails. Call free_workarea_compile, re_string_destruct
2251 and free_dfa_content for most of the other failure paths.
2252 (init_dfa): Initialize str_tree_storage_idx.
2253 Don't clear any fields on allocation failure.
2254 (free_workarea_compile): Free str_tree_storage chunks
2255 instead of free_bin_tree (dfa->str_tree).
2256 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
2257 followed by create_tree. Add dfa argument to remaining
2258 create_tree calls. Remove new_idx variable. Remove calls
2259 to free_bin_tree.
2260 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
2261 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
2262 (duplicate_tree): Remove calls to free_bin_tree, add dfa
2263 argument to create_tree.
2264 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
2265 (bin_tree_storage_t): New type.
2266 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
2267 fields.
2268 * posix/Makefile (tests): Add bug-regex21.
2269 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
2270 tst-rxspencer-mem and tst-rxspencer.mtrace.
2271 (tests): Depend on $(objpfx)bug-regex21-mem
2272 and $(objpfx)tst-rxspencer-mem.
2273 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
2274 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
2275 * posix/tst-rxspencer.c (main): Add call to mtrace.
2276 Free line at the end.
2277 * posix/bug-regex21.c: New test.
2278
ebcf449f
UD
22792003-11-19 Ulrich Drepper <drepper@redhat.com>
2280
89635190
UD
2281 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
2282
02b50340
UD
2283 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
2284 fails, just use the byte, do no fancy conversions.
2285
ebcf449f
UD
2286 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
2287 not ->len.
2288 (re_string_is_single_byte_char): Likewise.
2289
3ee363e2
UD
22902003-11-18 Ulrich Drepper <drepper@redhat.com>
2291
ee70274a 2292 * posix/regexec.c (get_subexp): After calling get_subexp_sub
3ee363e2
UD
2293 reload buf and bkref_str. Little optimization by avoiding memcmp.
2294
22952003-11-14 David Mosberger <davidm@hpl.hp.com>
c9002c1b
UD
2296
2297 * sysdeps/unix/sysv/linux/ia64/sysdep.h
2298 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
2299 that all existing GAS versions have a problem with .align inside
2300 a function.
2301 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
2302 * sysdeps/ia64/memcpy.S: Likewise.
2303 * sysdeps/ia64/memset.S: Likewise.
2304 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
2305 out of .text into .rodata, where it belongs.
2306
2307 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
2308 save/restore input-arguments, because they're necessarily
2309 preserved by the kernel to support syscall-restart.
2310
ad7f28c2
UD
23112003-11-18 Jakub Jelinek <jakub@redhat.com>
2312
2313 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
2314 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
2315 and EPSILON_BIT.
2316 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
2317 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
2318 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
2319 Handle OP_UTF8_PERIOD.
2320 (re_string_reconstruct): Set valid_len for single byte char searching
2321 with no translation and case sensitivity.
2322 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
2323 OP_UTF8_PERIOD.
2324 (re_compile_internal): Don't call optimize_utf8 if preg->translate
2325 != NULL.
2326 (optimize_utf8): Remove BACK_SLASH case.
2327 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
2328 optimized.
2329 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
2330 any bits set and COMPLEX_BRACKET is used.
2331 * posix/regexec.c (transit_state_mb): Fix comment typo.
2332 (group_nodes_into_DFAstates, check_node_accept): Handle
2333 OP_UTF8_PERIOD.
2334 (check_node_accept_bytes): Likewise. Reorder slightly so that
2335 re_string_char_size_at and re_string_elem_size_at are called
2336 only when needed.
2337 * posix/bug-regex20.c (BRE, ERE): Define.
2338 (tests): Use them to make lines shorter. Expect . to be
2339 optimized. Add lots of new tests.
2340 (main): Run (ATM just case sensitive) test with backwards searching
2341 as well.
2342
5146ec9a
UD
23432003-11-18 Jakub Jelinek <jakub@redhat.com>
2344
2345 * io/bug-ftw4.c: Include string.h.
2346 * posix/fnmatch.c (mbsinit): Remove define.
2347
5f93cd52
UD
23482003-11-17 Jakub Jelinek <jakub@redhat.com>
2349
2350 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
2351 well.
2352 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
2353 followed by dup operator is expected to be optimized.
2354
2355 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
2356 variables to the block where they are only used, initialize
2357 nrules only immediately before using it.
2358
23592003-11-15 Andreas Jaeger <aj@suse.de>
2360
2361 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
2362 * sysdeps/x86_64/fpu/s_truncl.S: New file.
2363 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
2364 * sysdeps/x86_64/fpu/s_floorl.S: New file.
2365 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
2366 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
2367
2368