1 2002-10-12 Roland McGrath <roland@redhat.com>
3 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
4 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
6 2002-10-12 Ulrich Drepper <drepper@redhat.com>
8 * po/sv.po: Update from translation team.
10 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
15 (create_initial_state): Likewise.
16 (analyze): Remove the substitutions which became useless.
17 (calc_first): Likewise.
18 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
20 (duplicate_node_closure): New function.
21 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
22 (calc_inveclosure): Likewise.
23 (calc_eclosure): Likewise.
24 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
25 direct invocation of duplicate_node.
26 (parse): Don't use comma operator in the return to avoid compiler
28 (parse_reg_exp): Likewise.
29 (parse_branch): Likewise.
30 (parse_expression): Likewise.
31 (parse_sub_exp): Likewise.
32 (parse_dup_op): Likewise.
33 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
35 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
36 (create_cd_newstate): Likewise.
37 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
38 (re_token_t): Likewise.
40 (re_node_set_remove): New macro.
41 * posix/regexec.c (check_matching): Remove the handling
43 (check_halt_node_context): Likewise.
44 (proceed_next_node): Likewise.
45 (pop_fail_stack): Fix the memory leak.
47 (free_fail_stack_return): New function.
48 (sift_states_backward): Fix the memory leak. Remove the handling
50 (update_cur_sifted_state): Append some if clause to avoid redundant
52 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
54 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
55 (check_subexp_limits): Likewise.
56 (search_subexp): Likewise.
57 (sift_states_bkref): Likewise.
58 (transit_state_mb): Likewise.
59 (transit_state_bkref_loop): Likewise.
60 (transit_state_bkref_loop): Likewise.
61 (group_nodes_into_DFAstates): Likewise.
62 (check_node_accept): Likewise.
63 (sift_ctx_init): Add initializing.
65 2002-10-12 Ulrich Drepper <drepper@redhat.com>
67 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
70 2002-10-11 Ulrich Drepper <drepper@redhat.com>
72 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
73 duplicated variable c.
75 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
78 * sysdeps/unix/sysv/linux/i386/sysdep.h
79 (INTERNAL_SYSCALL_ERROR_P): New define.
80 (INTERNAL_SYSCALL_ERRNO): Likewise.
82 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
83 Add hack to prevent the compiler from clobbering the signal context.
85 2002-10-11 Roland McGrath <roland@redhat.com>
87 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
90 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
91 * sysdeps/sh/dl-lookupcfg.h: File removed.
92 * sysdeps/i386/dl-lookupcfg.h: File removed.
94 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
95 missing labels and ; from last change.
97 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
98 number literals, so they are doubles instead of ints.
100 2002-10-09 Roland McGrath <roland@redhat.com>
102 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
103 changed from [USE_TLS && HAVE___THREAD].
105 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
106 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
107 * sysdeps/x86_64/dl-machine.h
108 (elf_machine_type_class, elf_machine_rela): Likewise.
109 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
112 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
113 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
114 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
116 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
117 instead of ___tls_get_addr.
118 (___tls_get_addr_internal): Add attribute_hidden to decl.
120 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
122 * elf/rtld.c (startup_error_tsd): New function.
123 (dl_main): Point _dl_error_catch_tsd at that.
124 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
125 use new function pointer instead.
126 * elf/dl-tsd.c: New file.
127 * elf/Makefile (routines): Add it.
129 2002-10-07 Roland McGrath <roland@redhat.com>
131 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
132 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
133 take _dl_load_lock around calling __writev.
135 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
136 (INLINE_SYSCALL): Use that.
138 * sysdeps/generic/dl-sysdep.h: New file.
139 * sysdeps/mach/hurd/dl-sysdep.h: New file.
140 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
141 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
142 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
144 * elf/dl-minimal.c (__errno_location): Removed.
145 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
146 Use GOTOFF access for errno.
147 * sysdeps/unix/sysv/linux/i386/sysdep.h
148 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
150 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
151 Use PC-relative access for errno.
152 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
153 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
155 * include/tls.h: New file.
156 (USE___THREAD): New macro.
157 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
159 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
160 changed from [USE_TLS && HAVE___THREAD].
161 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
162 * sysdeps/unix/i386/sysdep.S: Likewise.
163 * sysdeps/unix/x86_64/sysdep.S: Likewise.
164 * include/errno.h: Likewise.
165 * include/netdb.h: Likewise.
166 * include/resolv.h: Likewise.
168 * sysdeps/generic/errno.c: New file.
169 * csu/Makefile (aux): New variable, list errno.
170 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
171 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
172 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
173 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
174 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
175 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
176 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
177 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
178 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
179 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
180 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
181 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
182 * sysdeps/unix/alpha/sysdep.S: Likewise.
183 * sysdeps/generic/start.c: Likewise.
184 * sysdeps/unix/start.c: Likewise.
185 * sysdeps/unix/arm/start.c: Likewise.
186 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
187 * sysdeps/unix/sparc/start.c: Likewise.
188 * sysdeps/unix/sysv/irix4/start.c: Likewise.
189 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
191 * manual/search.texi (Tree Search Function, Hash Search Function):
192 Mention search.h clearly.
194 2002-10-05 Roland McGrath <roland@redhat.com>
196 * elf/dl-fxstat64.c: File removed.
197 * elf/dl-xstat64.c: File removed.
198 * elf/Makefile (rtld-routines): Remove them.
199 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
200 Instead, use strong_alias instead of versioned_symbol in the
202 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
203 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
205 * include/shlib-compat.h
206 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
207 [! NOT_IN_libc] (IS_IN_libc): Define it.
208 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
209 * elf/Makefile (CPPFLAGS-.os): Likewise.
211 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
212 Return the status instead of calling exit.
214 * Makeconfig (CFLAGS): Prepend -std=gnu99.
215 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
216 Remove superfluous rm command, whose @ plus make bugs hid
217 all these commands from the make output.
219 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
220 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
221 Use that file's contents instead of literal echo's for the prologue.
222 * include/features.h: Include <gnu/stubs.h> unconditionally.
223 * include/gnu/stubs.h: New file.
225 2002-09-30 Roland McGrath <roland@redhat.com>
227 * elf/rtld-Rules: New file.
228 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
229 $(objpfx)rtld-libc.a): New targets.
230 (generated): Add them.
231 (reloc-link): Remove -o $@ from the variable.
232 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
233 (distribute): Add rtld-Rules.
234 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
235 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
236 (common-mostlyclean, common-clean): Clean up rtld-* files.
237 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
239 2002-10-11 Roland McGrath <roland@redhat.com>
241 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
242 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
244 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
245 proper set of no-op insn prefixes.
247 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
249 2002-10-11 Ulrich Drepper <drepper@redhat.com>
251 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
252 __pthread_kill_other_threads_np.
254 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
256 2002-10-08 Roland McGrath <roland@redhat.com>
258 * locale/newlocale.c (__newlocale): If setting all categories to "C",
259 just return &_nl_C_locobj instead of copying it.
260 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
261 * locale/duplocale.c (__duplocale): Likewise.
263 2002-10-07 Roland McGrath <roland@frob.com>
265 * config.h.in (HAVE_I386_SET_GDT): New #undef.
266 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
267 * sysdeps/mach/configure: Regenerated.
269 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
272 Add all necessary register outputs for syscall-clobbered registers.
274 2002-10-02 David Mosberger <davidm@hpl.hp.com>
276 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
277 Itanium 2 (and Itanium).
278 Fix unwind directives and make it fit in 80 columns.
279 * sysdeps/ia64/memset.S: Likewise.
280 * sysdeps/ia64/memcpy.S: Likewise.
281 Move jump table to .rodata section.
283 2002-10-03 Roland McGrath <roland@frob.com>
285 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
288 2002-10-10 Andreas Jaeger <aj@suse.de>
290 * sysdeps/x86_64/_mcount.S: Restore correct registers.
292 2002-10-10 Ulrich Drepper <drepper@redhat.com>
294 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
296 2002-10-09 Ulrich Drepper <drepper@redhat.com>
298 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
299 _dl_allocate_tls_init. Add rtld_hidden_proto.
300 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
302 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
304 * version.h (VERSION): Bump to 2.3.1.
306 * Make-dist: Add back one of the tar invocations removed before.
308 * stdlib/Makefile (distribute): Add allocalim.h.
310 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
311 (__libc_tsd_address): Use correct variable name.
312 Patch by Stefan Jones <stefan.jones@multigig.com>.
314 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
315 Reported by edwardsg@sgi.com [PR libc/4678].
317 * Versions.def (libc): Add GLIBC_2.3.1.
318 (libpthread): Add GLIBC_2.3.1.
320 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
322 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
323 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
325 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
326 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
328 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
329 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
330 and make old name an alias.
331 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
332 and make old name an alias.
333 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
336 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
337 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
339 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
341 * sysdeps/posix/readv.c: Likewise
342 * sysdeps/unix/sysv/aix/readv.c: Likewise.
343 * sysdeps/unix/sysv/linux/readv.c: Likewise.
344 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
346 * sysdeps/posix/writev.c: Likewise
347 * sysdeps/unix/sysv/aix/writev.c: Likewise.
348 * sysdeps/unix/sysv/linux/writev.c: Likewise.
350 * include/sys/wait.h: Declare __waitid.
351 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
352 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
354 * sysdeps/posix/waitid.c: Likewise.
355 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
357 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
359 2002-10-07 Jakub Jelinek <jakub@redhat.com>
361 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
363 (__MAX_ALLOCA_CUTOFF): Define.
365 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
366 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
367 host_buffer depending on __libc_use_alloca.
368 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
369 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
370 net_buffer depending on __libc_use_alloca.
371 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
372 buf depending on __libc_use_alloca.
373 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
374 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
375 instead of hardcoded constants.
376 Pass proper size argument to alloca and compute end for wide char
378 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
379 instead of hardcoded constants.
380 * string/strcoll.c (strcoll): Likewise.
381 * string/strxfrm.c (strxfrm): Likewise.
382 * sysdeps/posix/readv.c (__readv): Likewise.
383 * sysdeps/posix/writev.c (__writev): Likewise.
384 * sysdeps/generic/allocalim.h: New file.
386 2002-10-08 Roland McGrath <roland@redhat.com>
388 * configure.in (aux_missing warning): Change "too old" to
389 "incompatible versions", since for autoconf it's "too new" right now.
390 * configure: Regenerated.
392 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
393 one found doesn't work on our configure.in.
394 * configure: Regenerated.
395 * config.make.in (AUTOCONF): New substituted variable.
396 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
397 (autoconf-it): ... here, use that instead of defining conditionally.
398 Use $(AUTOCONF) instead of literal autoconf.
399 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
401 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
403 2002-10-08 Ulrich Drepper <drepper@redhat.com>
405 * Make-dist (dist): Cleanup a bit. We are not interested in the
406 14 char filename limit anymore. Remove intermediate files and
409 2002-10-05 Ulrich Drepper <drepper@redhat.com>
411 * po/sk.po: Update from translation team.
412 * po/tr.po: Likewise.
413 * po/gl.po: Likewise.
415 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
417 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
419 2002-10-03 Ulrich Drepper <drepper@redhat.com>
421 * version.h (RELEASE): Change to stable.
423 2002-10-03 Jakub Jelinek <jakub@redhat.com>
425 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
426 __syscall_exit_group): New prototypes.
428 2002-10-03 Ulrich Drepper <drepper@redhat.com>
430 * glibc 2.3 released.
433 See ChangeLog.13 for earlier changes.