1 2010-03-31 Joseph Myers <joseph@codesourcery.com>
3 * manual/Makefile (stamp-pkgvers): Substitute @@ for @ in
6 2010-03-28 Joseph Myers <joseph@codesourcery.com>
8 * csu/Makefile: Include option-groups.mak.
10 2010-03-22 Joseph Myers <joseph@codesourcery.com>
12 * elf/Makefile (tst-audit3-ENV, tst-audit4-ENV, tst-audit5-ENV,
13 tst-audit6-ENV, tst-audit7-ENV): Use EGLIBC_TEST_LD_AUDIT instead
15 (tst-audit3-WRAPPER, tst-audit4-WRAPPER, tst-audit5-WRAPPER,
16 tst-audit6-WRAPPER, tst-audit7-WRAPPER): Define.
18 2009-11-20 Maxim Kuvyrkov <maxim@codesourcery.com>
22 2009-11-20 Jakub Jelinek <jakub@redhat.com>
24 * math/math.h: Provide *l long double prototypes redirecting
25 to double functions even when __NO_LONG_DOUBLE_MATH and not
27 * math/complex.h: Likewise.
29 2009-11-11 Thomas Schwinge <thomas@codesourcery.com>
31 * configure.in (libc_cv_ssp): Make this a compile-time check. Avoid
32 creating temporary files.
33 * configure: Regenerate.
35 2009-11-11 Maxim Kuvyrkov <maxim@codesourcery.com>
37 Add OPTION_EGLIBC_MEMUSAGE option group and
38 OPTION_EGLIBC_MEMUSAGE_DEFAULT_BUFFER_SIZE option.
40 * option-groups.def (OPTION_EGLIBC_MEMUSAGE): Define new option group.
41 (OPTION_EGLIBC_MEMUSAGE_DEFAULT_BUFFER_SIZE): Document option.
42 * option-groups.defaults (OPTION_EGLIBC_MEMUSAGE): Add.
43 * malloc/Makefile (libmemusage): Build if option group is selected.
44 (memusage): Update CPPFLAGS.
45 (memusagestat): Don't build without OPTION_EGLIBC_MEMUSAGE.
46 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Allow overriding the default.
48 2009-11-09 Maxim Kuvyrkov <maxim@codesourcery.com>
49 Peter Seebach <peter.seebach@windriver.com>
51 * configure.in (AC_PROG_AWK): Require GNU `awk'.
52 * configure: Regenerate.
54 2009-11-09 Maxim Kuvyrkov <maxim@codesourcery.com>
56 * libio/fileops.c, libio/iosetbuffer.c,
57 * nptl/sysdeps/pthread/small-macros-fns.c, posix/fnmatch_loop.c,
58 * posix/regcomp.c, posix/regexec.c, stdio-common/tst-sprintf.c,
59 * stdio-common/tstdiomisc.c, sysdeps/ieee754/ldbl-opt/nldbl-compat.c,
60 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Explicitly include
61 <gnu/option-groups.h>.
63 2009-10-18 Michael Schroeder <mls@suse.de>
65 * resolv/res_libc.c (__res_maybe_init): Re-initialize if
66 _PATH_RESCONF has been modified since last init.
68 2009-09-03 Peter Seebach <peter.seebach@windriver.com>
70 * manual/Makefile (texis): Change to $(objpfx)texis. Use
71 $(make-target-directory).
73 2009-08-20 Maxim Kuvyrkov <maxim@codesourcery.com>
74 Carlos O'Donell <carlos@codesourcery.com>
76 Allow ports to define the version of the libgcc_s.so library.
78 * shlib-versions: Add line for libgcc_s, set version to 1.
79 * sysdeps/generic/framestate.c: Include gnu/lib-names.h,
80 use LIBGCC_S_SO instead of hardcoded string.
81 * nptl/sysdeps/pthread/unwind-resume.c: Same.
82 * nptl/sysdeps/pthread/unwind-forceunwind.c: Same.
84 2009-08-03 Joseph Myers <joseph@codesourcery.com>
86 * locale/programs/ld-ctype.c (ctype_output): Correct merge error.
88 2009-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
90 Add BIG_MACROS option group.
92 * option-groups.def (OPTION_EGLIBC_BIG_MACROS): Define new option
94 * option-groups.defaults (OPTION_EGLIBC_BIG_MACROS): Define default.
95 * nptl/sysdeps/pthread/small-macros-fns.c: New file. Define wrappers.
96 * nptl/sysdeps/pthread/Makefile (nptl/sysdep_routines): Add
98 * nptl/sysdeps/pthread/bits/libc-lock.h (gnu/option-groups.h): Include.
99 (errno.h): Include, make implicit dependency explicit.
100 (__libc_lock_lock, __libc_lock_lock_recursive),
101 (__libc_lock_trylock, __libc_lock_trylock_recursive),
102 (__libc_lock_unlock, __libc_lock_unlock_recursive):
103 If OPTION_EGLIBC_BIG_MACROS, define to macro;
104 define to function call otherwise.
106 2009-06-26 Maxim Kuvyrkov <maxim@codesourcery.com>
108 Make --disable-versioning work.
110 * scripts/versions.awk (versioning): New parameter, don't output
111 version information if it is defined to 'no'.
112 * include/shlib-compat.h (IS_IN_libc, versioned_symbol),
113 (versioned_symbol_1): Define when !DO_VERSIONING.
114 (invisible_compat_symbol): Define, instead of compat_symbol when
116 * include/libc-symbols.h (default_symbol_version): Define when
118 (versioned_weak): Define.
119 * Makerules: Generate version maps when !DO_VERSIONING to properly
121 (abi_versions_file): Define, use instead of abi-versions.h.
122 (libc_gcclibs): Define, link against libgcc_eh when !DO_VERSIONING.
123 * extra-lib.mk, elf/Makefile: Update, handle --disable-versioning.
124 * elf/do-rel.h: Handle !DO_VERSIONING.
126 * sysdeps/powerpc/powerpc32/dl-machine.c: Don't error when
128 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Define stuff when
130 * nptl/pthread_kill_other_threads.c (compat_symbol): Surround with
132 * sysdeps/wordsize-32/divdi3.c: Use invisible_compat_symbol.
133 * nptl/Makefile (tst-_res1): Disable test when !DO_VERSIONING.
135 * sysdeps/powerpc/longjmp.c (_longjmp, longjmp, siglongjmp): Update.
136 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_weak_alias): Update.
137 * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (__isinfl): Update.
138 * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (finitel): Update.
139 * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (__isnanl): Update.
140 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (wcstold_l, strtold_l):
143 2009-06-25 Kazu Hirata <kazu@codesourcery.com>
145 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Add
146 -fno-asynchronous-unwind-tables and -fno-unwind-tables.
147 (CFLAGS-pt-initfini.s): New.
149 2009-06-24 Mark Mitchell <mark@codesourcery.com>
151 * debug/Makefile (LDFLAGS-tst-backtrace2): Define.
152 (tests-$(OPTION_EGLIBC_BACKTRACE)): Add tst-backtrace2.
153 * debug/tst-backtrace2.c: New test.
155 2009-06-23 Joseph Myers <joseph@codesourcery.com>
157 * nptl/nptl-init.c (sighandler_setxid): Remove duplicate decrement
160 2009-06-01 Joseph Myers <joseph@codesourcery.com>
162 * nptl/nptl-init.c: Restore local changes lost in upstream rename.
164 2009-05-06 Aurelien Jarno <aurelien@aurel32.net>
166 * nss/nsswitch.c (lock_nsswitch, unlock_nsswitch): Remove brackets.
168 2009-05-06 Aurelien Jarno <aurelien@aurel32.net>
170 * Makerules (install-map): Don't install libhurduser.map and
173 2009-04-23 Maxim Kuvyrkov <maxim@codesourcery.com>
175 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Update stub.
177 2009-03-03 Aurelien Jarno <aurelien@aurel32.net>
179 * timezone/Makefile: Call cross-zic directly instead of using
180 the target ld.so while generating testdata.
182 2009-03-02 Aurelien Jarno <aurelien@aurel32.net>
184 * nptl/Makefile: Use exec shell command in tst-cancel7 to prevent
185 the shell forking. Fix a bashism in the call to tst-cleanup0.
187 2009-02-14 Joseph Myers <joseph@codesourcery.com>
189 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
190 Adjust rela->r_offset by l->l_addr when rewriting PLT.
192 2009-01-26 Julian Brown <julian@codesourcery.com>
194 * elf/Makefile ($(objpfx)ld.so): Add sed pattern to recognize text
195 segment defined with SEGMENT_START.
196 2009-04-20 Maxim Kuvyrkov <maxim@codesourcery.com>
198 * option-groups.def (OPTION_EGLIBC_FCVT, OPTION_EGLIBC_FMTMSG):
199 Define new option groups.
200 (OPTION_EGLIBC_FTRAVERSE): Define new option group.
201 * option-groups.defaults: Set defaults for new option groups.
202 * misc/Makefile: Handle OPTION_EGLIBC_FCVT option group.
203 * stdlib/Makefile: Handle OPTION_EGLIBC_FMTMSG option group.
204 * io/Makefile: Handle OPTION_EGLIBC_FTRAVERSE option group.
206 2009-01-23 Joseph Myers <joseph@codesourcery.com>
209 * nptl/sysdeps/unix/sysv/linux/timer_create.c (timer_create): Set
210 newp->sigev_notify = SIGEV_THREAD for SIGEV_THREAD timers.
212 2009-01-22 Maxim Kuvyrkov <maxim@codesourcery.com>
216 * posix/confstr.c (confstr): Move code for case
217 _CS_V6_WIDTH_RESTRICTED_ENVS to ...
218 * posix/confstr.inc: New file.
219 * posix/cross-getconf.c: New utility to mimic getconf for the
220 purposes of cross-compiling EGLIBC.
221 * posix/Makefile: Build cross-getconf and use it when cross-building
224 2009-01-22 Maxim Kuvyrkov <maxim@codesourcery.com>
226 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Handle
227 WIDE_CHAR_DEVICE_IO option group.
228 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl_vfwscanf)
229 (__nldbl_vswscanf, __nldbl_vfwprintf, __nldbl_vswprintf)
230 (__nldbl___vfwprintf_chk, __nldbl___vswprintf_chk): Condition
231 declarations and defitions on WIDE_CHAR_DEVICE_IO option group.
232 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_vfwscanf)
233 (__nldbl_vfwprintf, __nldbl_vswprintf, __nldbl_vswscanf)
234 (__nldbl___vfwprintf_chk, __nldbl___vswprintf_chk):
235 Condition declarations on WIDE_CHAR_DEVICE_IO option group.
237 2008-12-24 Maxim Kuvyrkov <maxim@codesourcery.com>
239 * posix/xregex.c: Handle absence of wide char support.
241 2008-12-15 Josh Boyer <jwboyer@gmail.com>
242 Maxim Kuvyrkov <maxim@codesourcery.com>
244 * intl/dcigettext.c: Condition use of libc_setlocale_lock on
245 OPTION_EGLIBC_LOCALE_CODE.
246 * debug/Makefile (tests): Condition affected tests on
247 OPTION_EGLIBC_LOCALE_CODE.
248 * iconvdata/Makefile (tests): Same.
250 2008-12-09 Maxim Kuvyrkov <maxim@codesourcery.com>
252 Support smaller regex implementation.
254 * option-groups.def (OPTION_POSIX_REGEXP_GLIBC): New option group.
255 * option-groups.defaults (OPTION_POSIX_REGEXP_GLIBC): Set default.
256 * posix/regexec.c: Move a piece of code to ...
257 * posix/regexec-compat.c: New file.
258 * posix/Makefile (tests): Same for runptests, bug-regex11,
259 bug-regex13, bug-regex16, tst-regex2, tst-rxspencer, tst-pcre,
260 tst-boost, tst-regex, bug-regex17, bug-regex18, bug-regex19,
261 bug-regex20, bug-regex22, bug-regex14-mem,
262 tst-rxspence-mem, tst-pcre-mem and tst-boost-mem.
263 * posix/xregex.c: New file ported from libiberty.
265 2008-11-19 Nathan Sidwell <nathan@codesourcery.com>
267 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
268 Add _tid slot to maintain consistency with kernel.
270 2008-09-26 Joseph Myers <joseph@codesourcery.com>
272 * aclocal.m4 (ACX_PKGVERSION, ACX_BUGURL): Define.
273 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
274 * configure: Regenerate.
275 * config.h.in (PKGVERSION, REPORT_BUGS_TO): Undefine.
276 * config.make.in (PKGVERSION, REPORT_BUGS_TO): Define.
277 * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
278 (print_version): Use PKGVERSION.
279 * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
280 * debug/Makefile ($(objpfx)catchsegv, $(objpfx)xtrace): Also
281 substitute PKGVERSION and REPORT_BUGS_TO.
282 * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
283 * debug/pcprofiledump.c (print_version,
284 argp_program_version_hook): New.
285 (more_help): Use REPORT_BUGS_TO.
286 * debug/xtrace.sh: Use PKGVERSION and REPORT_BUGS_TO.
287 * elf/Makefile (common-ldd-rewrite): Also substitute PKGVERSION
289 * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
290 * elf/ldconfig.c (doc): Use REPORT_BUGS_TO.
291 (print_version): Use PKGVERSION.
292 * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
293 * elf/sln.c (usage): New.
294 (main): Support --help and --version.
295 * elf/sprof.c (doc): Use REPORT_BUGS_TO.
296 (print_version): Use PKGVERSION.
297 * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
298 (print_version): Use PKGVERSION.
299 * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
300 (print_version): Use PKGVERSION.
301 * locale/programs/locale.c (doc): Use REPORT_BUGS_TO.
302 (print_version): Use PKGVERSION.
303 * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
304 (print_version): Use PKGVERSION.
305 * login/programs/pt_chown.c
306 * malloc/Makefile ($(objpfx)mtrace, $(objpfx)memusage): Also
307 substitute PKGVERSION and REPORT_BUGS_TO.
308 * malloc/memusage.sh: Use PKGVERSION and REPORT_BUGS_TO.
309 * malloc/memusagestat.c (print_version,
310 argp_program_version_hook): New.
311 (more_help): Use REPORT_BUGS_TO.
312 * malloc/mtrace.pl: Use PKGVERSION and REPORT_BUGS_TO.
313 * manual/Makefile (libc.dvi, libc.pdf, libc.info,
314 libc/index.html): Depend on pkgvers.texi.
315 (pkgvers.texi, stamp-pkgvers): New.
316 * manual/install.texi: Adjust bug database description. Use
318 * manual/libc.texinfo: Include pkgvers.texi. Use PKGVERSION.
319 * nscd/nscd.c (doc): Use REPORT_BUGS_TO.
320 (print_version): Use PKGVERSION.
321 * nss/getent.c (doc): Use REPORT_BUGS_TO.
322 (print_version): Use PKGVERSION.
323 * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
324 (print_version): Use PKGVERSION.
325 * posix/getconf.c (main): Send --version output to stdout. Use
326 PKGVERSION. Support --help.
327 * sunrpc/proto.h (REPORT_BUGS_TO, PKGVERSION): Define for
329 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
330 arguments. All callers changed. Use REPORT_BUGS_TO
331 (print_version): New.
332 (parseargs): Support --help and --version.
333 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
334 changed. Use REPORT_BUGS_TO.
335 (print_version): New.
336 (main): Use getopt_long. Support --help and --version.
337 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
339 * timezone/Makefile: Use -DCROSS_ZIC for cross-zic.
340 ($(objpfx)tzselect): Also substitute PKGVERSION and
342 * timezone/tzselect.ksh: Support --help and --version.
343 * timezone/zdump.c (usage): New.
344 (main): Use it. Support --help. Print program name and
345 PKGVERSION in --version output.
346 * timezone/zic.c (usage): Take STREAM and STATUS arguments. All
347 callers changed. Use REPORT_BUGS_TO.
348 (main): Support --help. Print program name and PKGVERSION in
351 2008-09-24 Joseph Myers <joseph@codesourcery.com>
353 * csu/Makefile ($(objpfx)crti.S, $(objpfx)crtn.S): Remove .file
354 lines from generated .S file.
355 * nptl/Makefile ($(objpfx)crti.S, $(objpfx)crtn.S): Remove .file
356 lines from generated .S file.
358 2008-09-08 Pete Eberlein <eberlein@us.ibm.com>
360 * elf/ldd.bash.in: Make pipefail check more robust when using
363 2008-09-08 Aurelien Jarno <aurelien@aurel32.net>
365 * nscd/Makefile (CFLAGS-nis_hash.c): Set to $(nscd-cflags).
367 2008-06-17 Joseph Myers <joseph@codesourcery.com>
369 * stdlib/tst-setcontext.c: Set back_in_main before exit if
370 getcontext returns ENOSYS.
372 2008-05-15 Joseph Myers <joseph@codesourcery.com>
374 * posix/globtest.sh: Set HOME with env on test target system.
376 2008-05-14 Joseph Myers <joseph@codesourcery.com>
378 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
379 * localedata/Makefile (LOCALES): Add en_US.UTF-8.
381 2008-05-14 Maxim Kuvyrkov <maxim@codesourcery.com>
383 Generate zoneinfo when cross-building EGLIBC.
385 * timezone/Makefile: When cross-compiling, build cross-zic, then
386 use it to generate zoneinfo files.
388 2008-04-25 Vladimir Prus <vladimir@codesourcery.com>
390 * sysdeps/sparc/sparc64/elf/configure.in: Hard-code result of TLS
392 * sysdeps/sparc/sparc64/elf/configure: Regenerate.
394 2008-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
398 * sunrpc/Makefile: Make librpcsvc.a built when cross-building.
399 Build cross-rpcgen for $build when cross-building.
400 * sunrpc/proto.h: Define stuff for cross-building.
402 2008-04-15 Joseph Myers <joseph@codesourcery.com>
404 * sysdeps/unix/sysv/linux/configure: Regenerate.
406 2008-04-12 Joseph Myers <joseph@codesourcery.com>
408 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Also test
411 2008-04-01 Maxim Kuvyrkov <maxim@codesourcery.com>
413 * Makerules (install-lib): Don't install libpthread_pic.a.
414 (install-map): Don't install libpthread_pic.map.
416 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
420 * allocatestack.c (setxid_mark_thread, setxid_unmark_thread): New.
421 (setxid_signal_thread): Return a successful signal indicator. Just
422 skip threads without SETXID_BITMASK.
423 (__nptl_setxid): Use separate marking and unmarking loops. Repeat
424 signalling if necessary.
425 * init.c (sighandler_setxid): Use atomic operations for
426 cancelhandling. Wake __nptl_setxid last.
428 2008-02-17 Joseph Myers <joseph@codesourcery.com>
431 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
432 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
434 2008-02-11 Joseph Myers <joseph@codesourcery.com>
437 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
438 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
440 2008-02-07 Joseph Myers <joseph@codesourcery.com>
442 * Makerules (install-extras, install-map): New variables.
443 (installed-libcs): Add libc_pic.a.
444 (install-lib): Include _pic.a files for versioned shared
446 (install-map-nosubdir, install-extras-nosubdir): Add rules for
447 installing extra files.
448 (install-no-libc.a-nosubdir): Depend on install-map-nosubdir and
449 install-extras-nosubdir.
451 2008-01-09 Daniel Jacobowitz <dan@codesourcery.com>
453 * scripts/cross-test-ssh.sh (env_blacklist): Add TERM, TERMCAP, PWD.
454 (remove_newlines): New.
455 (blacklist_exports): Unset blacklisted variables and use export.
456 (Top level): Use remove_newlines.
458 2007-12-13 Sandra Loosemore <sandra@codesourcery.com>
460 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Make strfmon
461 and strfmon_l conditional on OPTION_EGLIBC_LOCALE_CODE.
462 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vstrfmon,
463 __nldbl___vstrfmon_l, __nldbl___strfmon, __nldbl___strfmon_l):
464 Make conditional on __OPTION_EGLIBC_LOCALE_CODE.
466 2007-12-13 Jim Blandy <jimb@codesourcery.com>
467 Sandra Loosemore <sandra@codesourcery.com>
469 Implement the OPTION_POSIX_C_LANG_WIDE_CHAR option group.
470 * option-groups.def (OPTION_POSIX_C_LANG_WIDE_CHAR): New entry.
471 (OPTION_EGLIBC_LOCALE_CODE, OPTION_POSIX_WIDE_CHAR_DEVICE_IO):
472 Note dependence on OPTION_POSIX_C_LANG_WIDE_CHAR.
473 (OPTION_POSIX_WIDE_CHAR_DEVICE_IO): Doc fix; note effect on
474 support for 'ccs=CHARSET' strings in fopen and friends.
475 * option-groups.mak (option-disabled): New function.
476 * scripts/option-groups.awk: Generate preprocessor conditionals to
477 protect gnu/option-groups.h from multiple #inclusion.
479 * stdlib/Makefile (routines): Put in group: mblen mbstowcs mbtowc
480 wcstombs wctomb wcstoimax wcstoumax.
481 (tests): Put in group: testmb.
482 * debug/Makefile (routines): Put in group: wctomb_chk wcscpy_chk
483 wmemcpy_chk wmemmove_chk wmempcpy_chk wcpcpy_chk wcsncpy_chk
484 wcscat_chk wcsncat_chk wmemset_chk wcpncpy_chk swprintf_chk
485 vswprintf_chk wcrtomb_chk mbsnrtowcs_chk wcsnrtombs_chk
486 mbsrtowcs_chk wcsrtombs_chk mbstowcs_chk wcstombs_chk.
487 * debug/tst-chk1.c (do_test): Make wide character parts conditional
488 on __OPTION_POSIX_WIDE_CHAR_DEVICE_IO.
489 * wcsmbs/Makefile (routines): Put in group: wcscat wcschr wcscmp
490 wcscpy wcscspn wcsdup wcslen wcsncat wcsncmp wcsncpy wcspbrk
491 wcsrchr wcsspn wcstok wcsstr wmemchr wmemcmp wmemmove wcpcpy
492 wcpncpy wmempcpy btowc wctob mbsinit mbrlen mbrtowc wcrtomb
493 mbsrtowcs wcsrtombs mbsnrtowcs wcsnrtombs wcsnlen wcschrnul wcstol
494 wcstoul wcstoll wcstoull wcstod wcstold wcstof wcstol_l wcstoul_l
495 wcstoll_l wcstoull_l wcstod_l wcstold_l wcstof_l wcscoll wcsxfrm
496 wcwidth wcswidth wcscoll_l wcsxfrm_l wcscasecmp wcsncase
497 wcscasecmp_l wcsncase_l wcsmbsload mbsrtowcs_l isoc99_swscanf
499 (tests): Put in group: tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-wcpncpy
500 tst-mbsrtowcs wcsatcliff.
501 * time/Makefile (routines): Put in group: wcsftime wcsftime_l
502 * libio/Makefile (routines): When group is disabled, add
503 wdummyfileops. Put in group: wfiledoalloc iowpadn swprintf
504 vswprintf iovswscanf swscanf wgenops wstrops wfileops wmemstream.
505 (tests): Put in group: tst_swprintf tst_swscanf tst-sscanf
506 tst-wmemstream1 tst-wmemstream2.
507 * libio/wdummyfileops.c: New file. Provide a dummy definition for
508 the _IO_FILE functions that prints an error message and dies.
509 * libio/libioP.h: #include <gnu/option-groups.h>.
510 (_IO_is_wide): New macro. Used as necessary to excise references
511 to wide character code.
512 * libio/iosetbuffer.c (_IO_setbuffer): Don't call _IO_WSETBUF if
513 wide characters are not supported.
514 * libio/ioseekoff.c (_IO_seekoff_unlocked): Use _IO_is_wide.
515 * libio/iofwide.c: #include <gnu/option-groups.h>.
516 (_IO_fwide): When the group is disabled, provide a simplified
517 definition that aborts if the caller attempts to make a stream
519 * libio/fileops.c (_IO_new_file_close_it): Use _IO_is_wide.
520 (_IO_new_file_fopen): Conditionalize for
521 __OPTION_POSIX_WIDE_CHAR_DEVICE_IO.
522 * libio/ioseekpos.c (_IO_seekpos_unlocked): Use _IO_is_wide.
523 * libio/__fpurge.c (__fpurge): Likewise.
524 * wctype/Makefile (routines): Put in group: wcfuncs wctype
525 iswctype wcfuncs_l wctype_l iswctype_l wctrans_l.
526 (tests): Put in group: test_wctype test_wcfuncs.
527 * posix/fnmatch_loop.c (FCT) (either internal_fnmatch or
528 internal_fnwmatch): Handle character categories accessed via
529 'wctype' only if the group is enabled.
530 * stdio-common/Makefile (routines): Put in group: vfwprintf
531 vfwscanf printf-parsewc.
532 (tests): Put in group: bug18a tst-swscanf tst-wc-printf.
533 * stdio-common/printf_fp.c (__printf_fp): When the group is
534 disabled, fix 'wide' at zero.
535 * stdio-common/printf_fphex.c (__printf_fphex): Same.
536 * stdio-common/printf_size.c (__printf_size): Same.
537 * stdio-common/vfprintf.c (MULTIBYTE_SUPPORT): New macro.
538 (process_string_arg): If the format contains wide characters or
539 strings, assert that we have multibyte support.
540 * stdio-common/vfscanf.c (MULTIBYTE_SUPPORT): New macro.
541 (_IO_vfscanf_internal): If we see wide string or character format
542 directives, assert that we have multibyte support.
543 * stdio-common/scanf14.c (main): Make conditional on
544 __OPTION_EGLIBC_LOCALE_CODE.
545 * stdio-common/tst-sprintf.c (main): Make wide character test
546 conditional on __OPTION_POSIX_C_LANG_WIDE_CHAR.
547 * stdio-common/tstdiomisc.c (F): Likewise.
549 2007-12-11 Jim Blandy <jimb@codesourcery.com>
551 Clean up test results with OPTION_EGLIBC_LOCALE_CODE disabled.
552 * debug/tst-chk1.c: Omit locale tests when group is disabled.
553 * intl/Makefile (tests): Put tst-translit, tst-gettext2,
554 tst-codeset, and tst-gettext3 in the group.
555 * libio/Makefile (tests): Put tst-fgetws, tst-fopenloc,
556 tst-setvbuf1, tst-ungetwc1, tst-ungetwc2, bug-ftell, bug-ungetwc2,
557 tst-widetext, and tst-fopenloc in the group; some were formerly in
558 OPTION_POSIX_WIDE_CHAR_DEVICE_IO.
559 * nptl/Makefile (tests): Put tst-locale1 in the group.
560 * posix/Makefile (tests): Put bug-regex17, bug-regex18,
561 bug-regex20, bug-regex23, and bug-regex26 in the group.
562 (tst-rxspencer): Pass --utf8 only when the group is enabled.
563 * posix/bug-regex6.c: Omit non-C locale tests when group is disabled.
564 * stdio-common/Makefile (tests): Put bug14 and scanf13 in the group.
565 * stdlib/Makefile (tests): Put tst-strtod4, tst-strtod5, and
566 testmb2 in the group.
567 * stdlib/tst-strtod.c: Omit locale tests when group is disabled.
568 * string/tst-strxfrm.c, string/tst-strxfrm2.c: Same.
569 * time/Makefile (tests): Put tst-ftime_l in the group.
571 Fix code broken by OPTION_EGLIBC_LOCALE_CODE.
572 * posix/regex_internal.h: #include <gnu/option-groups.h>.
573 (string_mb_cur_max, dfa_mb_cur_max): New macros for accessing the
574 'mb_cur_max' fields of re_string_t and re_dfa_t, whose values can
575 be constant when the group is disabled. Use them throughout.
576 * posix/regex_internal.c: Use string_mb_cur_max and dfa_mb_cur_max
578 * posix/regcomp.c: Same.
579 (re_compile_fastmap_iter): Process COMPLEX_BRACKET nodes only when
580 the group is enabled.
581 (init_dfa): When the group is disabled, clear map_notascii.
582 (parse_bracket_exp): Process MB_CHAR elements only when the group
583 is enabled. Otherwise, fix 'nrules' at zero, for the compiler's
584 benefit, and assume the collation sequence is the identity.
585 (parse_bracket_element): Create MB_CHAR elements only when the
587 (build_equiv_class): When the group is disabled, we know there
588 will be no collation rules.
589 (build_charclass): When the group is disabled, do not try to
590 process references to wide character categories accessed via
592 * posix/regexec.c: Use string_mb_cur_max and dfa_mb_cur_max
594 (find_collation_sequence_value): Define function only when the
596 (check_node_accept_bytes): Check character against 'wctype' style
597 classes only if group is enabled. When the group is disabled,
598 Skip collation-rule-based matching.
599 * posix/fnmatch.c: #include <gnu/option-groups.h>.
600 Define HANDLE_MULTIBYTE only if when OPTION_EGLIBC_LOCALE_CODE is
602 * posix/fnmatch_loop.c (FCT (internal_fnmatch or internal_fnwmatch)):
603 If the group is disabled, assume that the collation sequence is
605 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Provide only
606 a trivial definition when the group is disabled.
607 * stdio-common/vfprintf.c: #include <gnu/option-groups.h>.
608 (LOCALE_SUPPORT): Define.
609 (vfprintf): Consult it as appropriate.
610 * stdio-common/vfscanf.c: #include <gnu/option-groups.h>.
611 (_IO_vfwscanf): If the group is disabled, don't try to consult the
612 locale for decimal point and thousands separator characters, or
614 * stdlib/strtod_l.c (__STRTOF_INTERNAL): Don't try to consult the
615 locale's numeric settings.
616 * string/strxfrm_l.c, string/strcoll_l.c: Don't try to consult the
617 locale's collation settings.
619 Fix testing with OPTION_EGLIBC_CATGETS disabled.
620 * catgets/Makefile (tests): Put de/libc.cat, test1.cat,
621 test2.cat, and test-gencat.out in the option group.
623 2007-11-29 Sandra Loosemore <sandra@codesourcery.com>
625 Allow building EGLIBC with -Os.
627 * include/features.h (__USE_EXTERN_INLINES_IN_LIBC): New.
628 * io/sys/stat.h: Use it instead of __USE_EXTERN_INLINES.
630 2007-11-09 Sandra Loosemore <sandra@codesourcery.com>
632 * nss/gen-fixed-nsswitch.c (internal_function): Provide a fallback
635 2007-10-29 Jim Blandy <jimb@codesourcery.com>
637 * Makeconfig ($(common-objpfx)gnu/option-groups.h): New generated
639 * scripts/option-groups.awk: New script, to generate it.
640 * debug/Makefile (CFLAGS-segfault.c): Don't define option group
642 * wcsmbs/Makefile (CFLAGS-wcsmbsload.c): Same.
643 * time/Makefile (CFLAGS-strftime_l.c, CFLAGS-strptime_l.c): Same.
644 * intl/Makefile (CFLAGS-dcigettext.c): Same.
645 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c)
646 (CFLAGS-libc_fatal.c): Same.
647 * misc/Makefile (CFLAGS-error.c, CFLAGS-err.c): Same.
648 * nss/Makefile (CFLAGS-nsswitch.c, CFLAGS-getnssent_r.c)
649 (CFLAGS-getent.c): Same.
650 * string/Makefile (CFLAGS-strerror_l.c): Same.
651 * iconv/Makefile (CFLAGS-gconv_db.c, CFLAGS-gconv_trans.c)
652 (CFLAGS-iconv_prog.c): Same.
653 * locale/Makefile (CFLAGS-C-ctype.c, CFLAGS-xlocale.c)
654 (CFLAGS-ld-messages.c): Same.
655 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-fmtstream.c): Same.
656 * nptl/Makefile (CFLAGS-pthread_create.c): Same.
657 * posix/Makefile (CFLAGS-glob.c, CFLAGS-bug-regex1.c): Same.
658 * stdio-common/Makefile (CFLAGS-printf_fp.c)
659 (CFLAGS-printf_fphex.c, CFLAGS-fxprintf.c, CFLAGS-tst-popen.c): Same.
660 * libidn/Makefile (CFLAGS-toutf8.c): Same.
661 * debug/segfault.c, wcsmbs/wcsmbsload.c, time/strftime_l.c:
662 * time/strptime_l.c, intl/dcigettext.c:
663 * sysdeps/unix/sysv/linux/libc_fatal.c:
664 * sysdeps/unix/sysv/linux/gethostid.c, misc/err.c, misc/error.c:
665 * nss/getnssent_r.c, nss/nsswitch.c, nss/getent.c:
666 * string/strerror_l.c, iconv/gconv_db.c, iconv/iconv_prog.c:
667 * iconv/gconv_trans.c, locale/xlocale.c, locale/C-ctype.c:
668 * locale/programs/ld-messages.c, argp/argp-help.c:
669 * argp/argp-fmtstream.c, nptl/pthread_create.c, posix/glob.c:
670 * posix/bug-regex1.c, stdio-common/printf_fp.c:
671 * stdio-common/printf_fphex.c, stdio-common/tst-popen.c:
672 * stdio-common/fxprintf.c, libidn/toutf8.c: #include
673 <gnu/option-groups.h>, and test for the symbols that #defines,
676 * nss/gen-fixed-nsswitch.c: Don't #include "nsswitch.h". Instead,
677 make our own copies of the datatype and enum definitions. Do
679 (lookup_actions, service_library, known_function, service_user)
680 (name_database_entry, name_database): Copy definitions from
682 * grp/Makefile (LDLIBS-testgrp): Link against the libraries listed
683 in nss/fixed-nsswitch-libs when OPTION_EGLIBC_NSSWITCH is
685 * posix/Makefile (LDLIBS-globtest): Same.
686 * option-groups.def (OPTION_EGLIBC_NSSWITCH): Doc fix.
688 2007-10-23 Jim Blandy <jimb@codesourcery.com>
690 * bits/wchar.h (__WCHAR_MIN): Add missing underscores to name.
692 2007-10-07 Jim Blandy <jimb@codesourcery.com>
694 Implement the OPTION_EGLIBC_CXX_TESTS option group.
695 * option-groups.def (OPTION_EGLIBC_CXX_TESTS): New entry.
696 * option-groups.defaults (OPTION_EGLIBC_CXX_TESTS):
698 * debug/Makefile (tests): Put tst-chk4, tst-chk5, tst-chk6,
699 tst-lfschk4, tst-lfschk5, and tst-lfschk6 in the group.
700 * dlfcn/Makefile: Include option-groups.mak.
701 (tests): Put bug-atexit3 in the group.
702 * nptl/Makefile (tests): Put tst-cancel24 in the group.
704 Implement the OPTION_POSIX_WIDE_CHAR_DEVICE_IO option group.
705 * option-groups.def (OPTION_POSIX_WIDE_CHAR_DEVICE_IO): New entry.
706 * option-groups.defaults (OPTION_POSIX_WIDE_CHAR_DEVICE_IO):
708 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-fmtstream.c):
709 Define OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
710 * argp/argp-help.c (__argp_failure): Support the wide character
711 case only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
712 * argp/argp-fmtstream.c (__argp_fmtstream_update): Same.
713 * debug/Makefile (routines): Put wprintf_chk, fwprintf_chk,
714 vwprintf_chk, vfwprintf_chk, fgetws_chk, and fgetws_u_chk in the
716 * libio/Makefile: Include ../option-groups.mak.
717 (routines): Put in the group: fputwc, fputwc_u, getwc, getwc_u,
718 getwchar, getwchar_u, iofgetws, iofgetws_u, iofputws, iofputws_u,
719 iogetwline, ioungetwc, putwc, putwc_u, putwchar, putwchar_u,
720 fwprintf, swprintf, vwprintf, wprintf, wscanf, fwscanf, vwscanf,
722 (tests): Put in the group: bug-ftell, bug-rewind, bug-rewind2,
723 bug-ungetwc1, bug-ungetwc2, bug-wfflush, bug-wmemstream1,
724 tst-fgetws, tst-fopenloc, tst-fopenloc2, tst-setvbuf1,
725 tst-ungetwc1, tst-ungetwc2, tst-widetext, tst_getwc, tst_putwc,
726 tst_wprintf, tst_wprintf2, tst_wscanf, and test-freopen.
727 * localedata/Makefile (tests): Put tst-wctype in the group.
728 * misc/Makefile (CFLAGS-error.c, CFLAGS-err.c): Define
729 OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
730 (tests): Put tst-error1 in the group.
731 * misc/err.c (convert_and_print): Define only if
732 OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
733 (vwarnx, vwarn): Support the wide character case only if
734 OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
735 * misc/error.c (error_tail): Same.
736 * posix/Makefile (CFLAGS-bug-regex1.c): Define
737 OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
738 * posix/bug-regex1.c (main): Call fwide only if the group is enabled.
739 * stdio-common/Makefile: (routines): Put vfwprintf and vfwscanf in
741 (tests): Put tst-perror and bug19a in the group.
742 (CFLAGS-fxprintf.c, CFLAGS-tst-popen.c): Define
743 OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
744 * stdio-common/fxprintf.c (__fxprintf): Support the wide character
745 case only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
746 * stdio-common/tst-perror.c (main): Test wide character case only
748 * stdio-common/tst-popen.c (main): Check the stream's orientation
749 only if the group is enabled.
750 * time/Makefile (tests): Put tst_wcsftime in the group.
751 * wcsmbs/Makefile (routines): Put isoc99_wscanf, isoc99_vwscanf,
752 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf, and
753 isoc99_vswscanf in the group.
755 2007-09-27 Jim Blandy <jimb@codesourcery.com>
757 * bits/wchar.h (__WCHAR_MIN, __WCHAR_MAX): Use information
758 provided by GCC and the preprocessor's behavior to handle both
759 signed and unsigned wchar_t ranges.
761 2007-09-24 Jim Blandy <jimb@codesourcery.com>
763 * option-groups.def (OPTION_EGLIBC_NSSWITCH): Doc fixes.
765 2007-09-21 Jim Blandy <jimb@codesourcery.com>
767 * nss/Makefile: Treat OPTION_EGLIBC_NSSWITCH_FIXED_FUNCTIONS and
768 OPTION_EGLIBC_NSSWITCH_FIXED_CONFIG as absolute filenames.
769 * option-groups.def: Update documentation.
771 Implement the OPTION_EGLIBC_BACKTRACE option group.
772 * option-groups.def (OPTION_EGLIBC_BACKTRACE): New entry.
773 * option-groups.defaults (OPTION_EGLIBC_BACKTRACE): Initialize.
774 * debug/Makefile (routines): Put all backtrace, backtracesyms, and
775 backtracesymsfd in the group.
776 (tests): Put backtrace-tst in the group.
777 (CFLAGS-segfault.c): Define OPTION_EGLIBC_BACKTRACE as
779 * debug/segfault.c (catch_segfault): Only produce a backtrace when
780 the group is enabled.
781 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-libc_fatal.c): Define
782 OPTION_EGLIBC_BACKTRACE as appropriate.
783 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Don't
784 print a backtrace if the group is not enabled.
785 * nptl/Makefile (tests): Put tst-backtrace1 in the option group.
787 2007-09-14 Jim Blandy <jimb@codesourcery.com>
789 * locale/programs/ld-collate.c (collate_output): Remove extra call
790 to add_locale_collidx_table.
792 2007-09-13 Jim Blandy <jimb@codesourcery.com>
794 * locale/programs/ld-collate.c (collate_output): Call
795 add_locale_callidx_table as required by cross-localedef changes,
796 not collidx_table_finalize.
798 2007-09-11 Jim Blandy <jimb@codesourcery.com>
800 * nss/Makefile: Delete stray text.
802 2007-09-04 Jim Blandy <jimb@codesourcery.com>
804 Implement the OPTION_EGLIBC_STREAMS option group.
805 * option-groups.def (OPTION_EGLIBC_STREAMS): New entry.
806 * option-groups.defaults (OPTION_EGLIBC_STREAMS): Initialize.
807 * streams/Makefile (routines): Put all routines in the group.
809 2007-08-23 Jim Blandy <jimb@codesourcery.com>
811 Implement the OPTION_EGLIBC_BSD option group.
812 * option-groups.def (OPTION_EGLIBC_BSD): New entry.
813 * option-groups.defaults (OPTION_EGLIBC_BSD): Initialize.
814 * misc/Makefile (routines): Put revoke, chflags, and fchflags in
816 * posix/Makefile (routines): Put setlogin in the group.
817 * io/Makefile: include ../option-groups.mak.
818 (routines) Put lchmod in the group.
820 2007-08-22 Jim Blandy <jimb@codesourcery.com>
822 Implement the OPTION_EGLIBC_DB_ALIASES option group.
823 * option-groups.def (OPTION_EGLIBC_DB_ALIASES): New entry.
824 * option-groups.defaults (OPTION_EGLIBC_DB_ALIASES): Initialize.
825 * inet/Makefile (routines): Move getaliasent_r, getaliasent,
826 getaliasname, and getaliasname_r into the group.
827 * nss/Makefile (databases-y): Move alias into the option group.
828 (CFLAGS-getent.c): Define OPTION_EGLIBC_DB_ALIASES as appropriate.
829 * nss/getent.c (print_aliases, aliases_keys): Define these
830 functions only if OPTION_EGLIBC_DB_ALIASES is enabled.
832 (databases): Use DA to decide whether to include the aliases
833 database in the list.
834 * nis/Makefile (databases-y): Renamed from databases; uses
835 changed. Put alias in the group.
837 2007-08-21 Jim Blandy <jimb@codesourcery.com>
839 Implement the OPTION_EGLIBC_WORDEXP option group.
840 * option-groups.def (OPTION_EGLIBC_WORDEXP): New entry.
841 * option-groups.defaults (OPTION_EGLIBC_WORDEXP): Initialize.
842 * posix/Makefile (routines): Put wordexp in the group.
843 (tests): Put wordexp-test and wordexp-tst.out in the option group.
845 2007-08-20 Jim Blandy <jimb@codesourcery.com>
847 Implement the OPTION_EGLIBC_ADVANCED_INET6 option group.
848 * option-groups.def (OPTION_EGLIBC_ADVANCED_INET6): New entry.
849 * option-groups.defaults (OPTION_EGLIBC_ADVANCED_INET6): Initialize.
850 * inet/Makefile (routines): Put inet6_option, inet6_opt, and
851 inet6_rth in the group.
852 (tests): Put test-inet6_opt in the option group.
854 * option-groups.def: Add Emacs local variables section to use
855 'config' commands as page boundaries.
857 2007-08-17 Jim Blandy <jimb@codesourcery.com>
859 Implement the OPTION_EGLIBC_UTMP, OPTION_EGLIBC_UTMPX, and
860 OPTION_EGLIBC_GETLOGIN option groups.
862 * option-groups.def (OPTION_EGLIBC_UTMP, OPTION_EGLIBC_UTMPX)
863 (OPTION_EGLIBC_GETLOGIN): New entry.
864 * option-groups.defaults (OPTION_EGLIBC_UTMP, OPTION_EGLIBC_UTMPX)
865 (OPTION_EGLIBC_GETLOGIN): Initialize.
866 * Makerules (sysdep_routines): Include value of sysdep_routines-y.
867 * debug/Makefile: Include option-groups.mak.
868 (routines): Put getlogin_r_chk in the OPTION_EGLIBC_GETLOGIN group.
869 * sysdeps/gnu/Makefile (sysdep_routines): For the login
870 subdirectory, put setutxent, getutxent, endutxent, getutxid,
871 getutxline, pututxline, utmpxname, updwtmpx, getutmpx, and getutmp
872 in the OPTION_EGLIBC_UTMPX group.
873 * login/Makefile: Include option-groups.mak.
874 (routines): Put getutent, getutent_r, getutid, getutline,
875 getutid_r, getutline_r, utmp_file, utmpname, and updwtmp in the
876 OPTION_EGLIBC_UTMP option group.
877 (others): Put utmpdump in the OPTION_EGLIBC_UTMP group.
878 (extra-libs): Put libutil in the OPTION_EGLIBC_UTMP group.
879 (extra-libs-others): Initialize from $(extra-libs-y).
880 * posix/glob.c (glob): If OPTION_EGLIBC_GETLOGIN is not defined,
881 don't try to call getlogin to find the username to use for tilde
883 * posix/Makefile (routines): Put getlogin and getlogin_r in the
884 OPTION_EGLIBC_GETLOGIN group.
885 (CFLAGS-glob.c): Define OPTION_EGLIBC_GETLOGIN as appropriate.
887 Implement the OPTION_EGLIBC_SPAWN option group.
889 * option-groups.def (OPTION_EGLIBC_SPAWN): New entry.
890 * option-groups.defaults (OPTION_EGLIBC_SPAWN): Initialize.
891 * posix/Makefile (routines): Move spawn routines into group.
892 (tests): Move tst-spawn into group.
893 * iconv/Makefile (CPPFLAGS-charmap-dir.c): Pass NO_UNCOMPRESS if
894 spawn is not available.
895 * locale/Makefile (CFLAGS-charmap-dir.c): Same.
896 * nptl/Makefile (tst-exec1): Put in group.
898 2007-08-16 Jim Blandy <jimb@codesourcery.com>
900 Implement the OPTION_EGLIBC_FSTAB option group
902 * option-groups.def (OPTION_EGLIBC_FSTAB): New entry.
903 * option-groups.defaults (OPTION_EGLIBC_FSTAB): Initialize.
904 * misc/Makefile (routines): Put fstab.c in the option group.
906 Implement the OPTION_EGLIBC_RCMD option group.
908 * option-groups.def (OPTION_EGLIBC_RCMD): New entry.
909 * option-groups.defaults (OPTION_EGLIBC_RCMD): Initialize.
910 * inet/Makefile (routines): Put the rcmd, rexec, and ruserpass
913 2007-08-11 Jim Blandy <jimb@codesourcery.com>
915 Implement the OPTION_EGLIBC_ENVZ option group.
917 * option-groups.def (OPTION_EGLIBC_ENVZ): New entry.
918 * option-groups.defaults (OPTION_EGLIBC_ENVZ): Initialize.
919 * string/Makefile (routines, tests): Put the envz routines and the
920 bug-envz1 test in the group.
922 2007-08-05 Daniel Jacobowitz <dan@codesourcery.com>
925 2007-06-17 Andreas Schwab <schwab@suse.de>
926 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
928 2007-07-28 Jim Blandy <jimb@codesourcery.com>
930 Implement the OPTION_EGLIBC_SUNRPC option group.
932 * option-groups.def (OPTION_EGLIBC_SUNRPC): New entry.
933 * option-groups.defaults (OPTION_EGLIBC_SUNRPC): Initialize
934 (OPTION_EGLIBC_NIS): Note dependency on OPTION_EGLIBC_SUNRPC.
935 * sunrpc/Makefile (others-y, install-bin-y)
936 (install-sbin-y, extra-objs-y, install-others-y, tests-y)
937 (xtests-y, extra-libs-y): Use OPTION_EGLIBC_SUNRPC as the
938 condition, instead of OPTION_EGLIBC_INET.
939 (routines-y): Same. Include xcrypt, des_crypt, des_impl, and
940 des_soft unconditionally.
942 2007-07-26 Jim Blandy <jimb@codesourcery.com>
944 Implement the OPTION_EGLIBC_NIS option group.
946 * option-groups.def (OPTION_EGLIBC_NIS): New entry.
947 * option-groups.defaults (OPTION_EGLIBC_NIS): Initialize.
948 * nis/Makefile (services-y, extra-libs-y): Use OPTION_EGLIBC_NIS
950 * nscd/Makefile: If OPTION_EGLIBC_NIS is not enabled, don't try to
951 link against libnsl.so; link our own copy of nis_hash.c directly
953 * nscd/nis_hash.c: New file.
955 * nptl/tst-tls6.sh: Remove bashisms.
957 2007-07-12 Jim Blandy <jimb@codesourcery.com>
959 Implement the OPTION_EGLIBC_NSSWITCH option group.
960 * option-groups.def (OPTION_EGLIBC_NSSWITCH): New entry.
961 * option-groups.defaults (OPTION_EGLIBC_NSSWITCH): Initialize.
962 * nss/fixed-nsswitch.conf, nss/fixed-nsswitch.functions: Sample
964 * nss/nsswitch.h (service_user): Change the known function table
965 to a union, with appropriate types for tsearch and for fixed
966 nsswitch. Make the name a pointer.
967 (name_database_entry): Make the name a pointer.
968 * nss/nsswitch.c (nss_parse_file, nss_getline)
969 (nss_parse_service_list, nss_new_service, databases, ndatabases)
970 (lock, lock_nsswitch, unlock_nsswitch)
971 (__nss_shlib_revision, service_table):
972 If OPTION_EGLIBC_NSSWITCH is disabled, include statically
973 generated configuration data; remove code for parsing the
974 configuration file and reconfiguring individual databases
975 dynamically; initialize database and service name pointers;
976 simplify functions for looking up databases and query functions;
977 avoid locking and freeing, since no data changes at runtime.
978 * nss/gen-fixed-nsswitch.c: New program.
979 * nss/Makefile (before-compile, generated): Generate
981 ($(objfix)fixed-nsswitch.h, $(objpfx)gen-fixed-nsswitch)
982 (gen-fixed-nsswitch-CFLAGS): Rules for generating
984 (CFLAGS-nsswitch.c): Define OPTION_EGLIBC_NSSWITCH as appropriate.
986 * include/netdb.h (DECLARE_NSS_PROTOTYPES): Also declare
987 _nss_SERVICE_gethostbyname3_r.
989 2007-07-09 Daniel Jacobowitz <dan@codesourcery.com>
992 2007-05-16 Roland McGrath <roland@redhat.com>
993 * nptl_db/td_thr_get_info.c: Fake the results for TH->th_unique == 0.
994 * nptl_db/td_thr_validate.c: Likewise.
995 * nptl_db/td_thr_setgregs.c: Likewise.
996 * nptl_db/td_thr_setfpregs.c: Likewise.
997 * nptl_db/td_thr_getgregs.c: Likewise.
998 * nptl_db/td_thr_getfpregs.c: Likewise.
999 * nptl_db/td_thr_tlsbase.c: Likewise.
1001 * nptl_db/structs.def: Add DB_VARIABLE (__nptl_initial_report_events).
1002 * nptl_db/db_info.c: Add necessary declaration.
1003 * nptl_db/td_thr_event_enable.c: Set __nptl_initial_report_events too.
1005 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Make FAKE_EMPTY bool.
1006 Use th_unique=0 in fake descriptor before initialization.
1008 * nptl_db/td_ta_map_lwp2thr.c (__td_ta_lookup_th_unique): New function, broken
1010 (td_ta_map_lwp2thr): ... here, call it. But don't before __stack_user
1011 is initialized, then fake a handle with th_unique=0.
1012 * nptl_db/thread_dbP.h: Declare it.
1014 * nptl/init.c (__nptl_initial_report_events): New variable.
1015 (__pthread_initialize_minimal_internal): Initialize pd->report_events
1018 2007-06-22 Jim Blandy <jimb@codesourcery.com>
1020 * configure.in: Hardwire test for have-fpie to 'yes'.
1021 * configure: Regenerated.
1023 2007-06-21 Jim Blandy <jimb@codesourcery.com>
1025 * locale/C-ctype.c: If OPTION_EGLIBC_LOCALE_CODE is not enabled,
1026 provide only minimal transliteration.
1027 * locale/Makefile (CFLAGS-C-ctype.c): Define
1028 OPTION_EGLIBC_LOCALE_CODE as appropriate.
1029 * iconv/gconv_trans.c (__gconv_transliterate): Don't bother trying
1030 to look up transliteration table information.
1031 * iconv/Makefile (CFLAGS-gconv_trans.c.c): Define
1032 OPTION_EGLIBC_LOCALE_CODE as appropriate.
1034 2007-06-13 Jim Blandy <jimb@codesourcery.com>
1036 Add the OPTION_POSIX_REGEXP option group.
1038 * option-groups.def (OPTION_POSIX_REGEXP): New entry.
1039 * option-groups.defaults (OPTION_POSIX_REGEXP): Initialize.
1040 * posix/Makefile: Include ../option-groups.mak.
1041 (routines): Move 'regex' into the group.
1042 * stdlib/Makefile: Put rpmatch in both the OPTION_POSIX_REGEXP and
1043 OPTION_EGLIBC_LOCALE_CODE groups.
1044 * misc/Makefile: Put regexp in the group.
1045 * locale/Makefile (CFLAGS-ld-messages.c): Define
1046 OPTION_POSIX_REGEXP as appropriate.
1047 * locale/programs/ld-messages.c: Don't check the syntax of 'yes'
1048 and 'no' regular expressions if the group isn't enabled.
1050 * option-groups.def, option-groups.defaults: Alphabetize, since
1051 the list is getting long.
1053 * option-groups.def (OPTION_EGLIBC_CATGETS)
1054 (OPTION_EGLIBC_LOCALE_CODE): Document interdependency.
1056 2007-06-13 Joseph Myers <joseph@codesourcery.com>
1058 * intl/plural.c: Regenerate.
1060 2007-06-13 Nathan Sidwell <nathan@codesourcery.com>
1061 Mark Shinwell <shinwell@codesourcery.com>
1063 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1064 (__libc_start_main): Detect 8xx parts and clear
1065 __cache_line_size if detected.
1066 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1067 (DL_PLATFORM_AUXV): Likewise.
1069 2007-06-11 Jim Blandy <jimb@codesourcery.com>
1071 Add the OPTION_EGLIBC_CHARSETS option group.
1073 * option-groups.def (OPTION_EGLIBC_CHARSETS): New entry.
1074 * option-groups.defaults (OPTION_EGLIBC_CHARSETS): Initialize.
1075 * Makerules (modules): Add in value of modules-y.
1076 * iconvdata/Makefile: Include ../option-groups.mak.
1077 (modules): Move all these into the option group.
1078 (modules.so): Compute from modules-y.
1079 (extra-modules-left): Apply extra-module.mk only to modules-y.
1080 (install-others-y): Move gconv-modules into the option group.
1081 (iconv-rules): Generate rules based on modules-y.
1083 2007-05-26 Jim Blandy <jimb@codesourcery.com>
1085 Add the OPTION_EGLIBC_LOCALE_CODE option group.
1087 * option-groups.def (OPTION_EGLIBC_LOCALE_CODE): New entry.
1088 * option-groups.defaults (OPTION_EGLIBC_LOCALE_CODE): Initialize.
1089 * Makerules (test-srcs): Add in value of test-srcs-y.
1090 (static-only-routines): Add in value of static-only-routines-y.
1091 * stdlib/Makefile: Include ../option-groups.mak.
1092 (routines): Move rpmatch, strfmon, and strfmon_l into the group.
1093 (tests): Move tst-strtod3 into the group.
1094 * wcsmbs/Makefile: Include ../option-groups.mak.
1095 (tests): Move tst-btowc, tst-mbrtowc, tst-mbrtowc2, and
1096 tst-wcrtomb into the option group.
1097 (CFLAGS-wcsmbsload.c): Define OPTION_EGLIBC_LOCALE_CODE as
1099 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): If the group is not
1100 enabled, simply abort.
1101 * time/Makefile: Include ../option-groups.mak.
1102 (aux): Move alt_digit, era, and lc-time-cleanup into the group.
1103 (tests): Move tst-strptime into the group.
1104 (CFLAGS-strftime_l.c, CFLAGS-strptime_l.c): Define
1105 OPTION_EGLIBC_LOCALE_CODE as appropriate.
1106 * time/strftime_l.c, time/strptime_l.c: Support eras and custom
1107 digits only when the group is enabled.
1108 * libio/Makefile (tests): Move tst-swscanf into the group.
1109 * intl/Makefile (CFLAGS-dcigettext.c): Define
1110 OPTION_EGLIBC_LOCALE_CODE as appropriate.
1111 * intl/dcigettext.c (DCIGETTEXT): If the group is not enabled,
1112 assume the "C" locale.
1113 * string/Makefile: Include ../option-groups.mak.
1114 (tests): Move tst-strxfrm and bug-strcoll1 into the option group.
1115 (CFLAGS-strerror_l.c): Define OPTION_EGLIBC_LOCALE_CODE as
1117 * string/strerror_l.c (translate): Don't translate unless the
1119 * iconv/Makefile: Include ../option-groups.mak.
1120 (CFLAGS-gconv_db.c, CFLAGS-iconv_prog.c): Define
1121 OPTION_EGLIBC_LOCALE_CODE as appropriate.
1122 * iconv/gconv_db.c (libc_freeres_fn): If group is disabled, no
1123 need to free locale memory first.
1124 * iconv/iconv_prog.c (main): If the group is disabled, the default
1125 codeset is always ASCII.
1126 * locale/Makefile: Include ../option-groups.mak.
1127 (distribute): Mention new dummy-setlocale.c.
1128 (routines): Include mb_cur_max and the new catnames unconditionally;
1129 put setlocale, findlocale, loadlocale, loadarchive, localeconv,
1130 nl_langinfo, nl_langinfo_l, newlocale, duplocale, freelocale, and
1131 uselocale in the group. If the group is disabled, use
1133 (tests): Put tst-C-locale in the group.
1134 (aux): Move all C categories other than C-ctype and C-time into
1135 the group, along with all the load-locale routines, and
1137 (others, install-bin, extra-objs): Put localedef and locale in the
1139 (extra-libs, extra-libs-other): Put libBrokenLocale in the group.
1140 (CFLAGS-xlocale.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate.
1141 * locale/xlocale.c: If the group is disabled, make the references
1142 here to the omitted category data weak. Furthermore, in the
1143 NL_CURRENT_INDIRECT case, define the _nl_current_##CATEGORY
1145 * locale/setlocale.c (_nl_category_names, _nl_category_name_idxs)
1146 (_nl_category_name_sizes): Move these from here...
1147 * locale/catnames.c: ... to here. New file.
1148 * locale/dummy-setlocale.c: New file.
1149 * intl/Makefile: Include ../option-groups.mak.
1150 (tests): Move tst-translit, tst-gettext2, tst-codeset,
1151 tst-gettext3, tst-gettext4, tst-gettext5, and mtrace-tst-gettext
1152 into the OPTION_EGLIBC_LOCALES option group.
1153 * localedata/Makefile (tests): Move all tests into the
1154 OPTION_EGLIBC_LOCALES group.
1155 * posix/Makefile (tests): Move tst-fnmatch, tst-regex,
1156 tst-regexloc, bug-regex1, bug-regex5, bug-regex19, bug-regex22,
1157 and bug-regex25 into the group.
1158 * stdio-common/Makefile: Include ../option-groups.mak.
1159 (tests): Move tst-sscanf, tst-swprintf, bug15, and test-vfprintf
1160 into the option group.
1161 (CFLAGS-printf_fp.c, CFLAGS-printf_fphex.c): Define
1162 OPTION_EGLIBC_LOCALE_CODE as appropriate.
1163 * stdio-common/printf_fp.c (__printf_fp): Hard-code values from
1165 * stdio-common/printf_fphex.c (__printf_fphex): Same.
1166 * libidn/Makefile: Include ../option-groups.mak.
1167 (CFLAGS-toutf8.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate.
1168 * libidn/toutf8.c (stringprep_locale_charset): If the group is
1169 disabled, assume ASCII.
1171 * Makefile (TAGS): Avoid backslashes in single-quoted strings.
1173 2007-05-13 Jim Blandy <jimb@codesourcery.com>
1175 Add the OPTION_EGLIBC_INET option group.
1177 * option-groups.def (OPTION_EGLIBC_INET): New entry.
1178 * option-groups.defaults (OPTION_EGLIBC_INET): Initialize.
1179 * option-groups.mak: Add initializer for aux-y.
1180 * Makerules (aux): Add in contents of aux-y.
1181 * extra-lib.mk (all-$(lib)-routines): Include $($(lib)-routines-y)
1183 (cpp-srcs-left): Refer $(all-$(lib)-routines) instead of spelling
1185 * nscd/Makefile: include option-groups.mak.
1186 (routines, aux, others, install-sbin, extra-objs): Place
1187 everything here in the option group.
1188 * pwd/Makefile: include option-groups.mak.
1189 (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c): Define USE_NSCD only
1190 if OPTION_EGLIBC_INET is enabled.
1191 * misc/Makefile: include option-groups.mak.
1192 * sysdeps/unix/sysv/linux/gethostid.c [!OPTION_EGLIBC_INET]: Don't
1193 try to look up our IP address; just return a dummy value.
1194 * sysdeps/unix/sysv/linux/Makefile: #define OPTION_EGLIBC_INET
1195 appropriately when compiling gethostid.c.
1196 * inet/Makefile: include option-groups.mak.
1197 (routines, aux): Place all routines in the option group.
1198 * nss/Makefile: include option-groups.mak.
1199 (databases): Put proto, service, hosts, network, rpc, ethers,
1200 netgrp, key, and aliases database in option group. Move
1201 assignment to 'databases' above assignment to 'routines', since we
1202 generate some of the latter from the former.
1203 (routines): Put digits_dots in option group.
1204 (tests): Put test-netdb in option group.
1205 (xtests): Put bug-erange in option group.
1206 (CFLAGS-nsswitch.c, CFLAGS-getnssent_r.c, CFLAGS-getent.c): #define
1207 OPTION_EGLIBC_INET as appropriate.
1208 * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
1209 Don't try to initialize resolver state unless the option group is
1211 * nss/nssswitch.c (__nss_disable_nscd): Define this only if
1212 the option group is enabled.
1213 * nss/getent.c (print_aliases, aliases_keys, ethers_keys,
1214 print_hosts, hosts_keys, ahosts_keys_int, ahosts_keys,
1215 ahostsv4_keys, ahostsv6_keys, netgroup_keys, print_networks,
1216 networks_keys, print_protocols, protocols_keys, print_rpc,
1217 rpc_keys, print_services, services_keys): Define only #if
1220 (databases): Make entries for ahosts, ahostsv4, ahostsv6, aliases,
1221 ethers, hosts, netgroup, networks, protocols, rpc, and services
1222 present only if option group is enabled.
1223 * hesiod/Makefile (extra-libs, extra-libs-others): Place all
1224 libraries in option group.
1225 * grp/Makefile: include option-groups.mak.
1226 (CFLAGS-getgruid_r.c, CFLAGS-getgrnam_r.c, CFLAGS-initgroups.c):
1227 Define USE_NSCD only if OPTION_EGLIBC_INET is enabled.
1228 * nptl/Makefile: include option-groups.mak.
1229 (libpthread-routines): Move 'herrno' and 'res' into the option
1231 (CFLAGS-pthread_create.c): Define OPTION_EGLIBC_INET as
1233 * nptl/pthread_create.c (start_thread): Initialize and free
1234 __resp only when OPTION_EGLIBC_INET is #defined.
1235 * posix/Makefile: include option-groups.mak.
1236 (routines): Put getaddrinfo and gai_strerror in the option group.
1237 (tests, xtests): Move tst-getaddrinfo, bug-ga1, tst-getaddrinfo2,
1238 tst-rfc3484, tst-rfc3484-2, tst-getaddrinfo3, and bug-ga2 into the
1240 (CFLAGS-getaddrinfo.c): #define USE_NSCD only if the option group
1242 * resolv/Makefile: include option-groups.mak.
1243 (routines, tests, xtests, extra-libs, extra-libs-others): Move
1244 everything into the option group.
1245 (tests): Only add ga_test as a dependency if the option group is
1247 * sunrpc/Makefile: include option-groups.mak.
1248 (install-others, routines, others, install-bin, install-sbin)
1249 (extra-objs, tests, xtests, extra-libs, extra-libs-others): Move
1250 everything into the option group.
1251 * nis/Makefile: include option-groups.mak.
1252 (services, extra-libs, extra-libs-others): Move everything into
1255 * option-groups.mak (extra-libs-y, extra-libs-others-y): Add
1256 missing initializers.
1258 * nss/getnssent_r.c (__nss_getent_r): Pass h_errnop through to the
1259 getent function, not &h_errno.
1261 * EGLIBC.cross-building: doc fix.
1263 2007-05-01 Daniel Jacobowitz <dan@debian.org>
1265 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1266 Don't parse more than three parts of the version number.
1268 2007-04-30 Joseph Myers <joseph@codesourcery.com>
1270 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
1271 condition for truncating to 0. Set sticky bit for such
1274 2007-04-20 Jim Blandy <jimb@codesourcery.com>
1276 * EGLIBC.cross-building: doc fix.
1278 2007-04-19 Joseph Myers <joseph@codesourcery.com>
1280 * scripts/run-with-env.sh: Also handle
1281 EGLIBC_TEST_LD_LIBRARY_PATH.
1282 * dlfcn/Makefile (tststatic-ENV, tststatic2-ENV): Use
1283 EGLIBC_TEST_LD_LIBRARY_PATH.
1284 (tststatic-WRAPPER, tststatic2-WRAPPER): Define.
1285 * elf/Makefile (tst-tls9-static-ENV): Use
1286 EGLIBC_TEST_LD_LIBRARY_PATH.
1287 (tst-tls9-static-WRAPPER): Define.
1288 ($(objpfx)tst-pathopt.out): Pass run-with-env.sh to
1290 * elf/tst-pathopt.sh: Take run_with_env argument. Use
1291 EGLIBC_TEST_LD_LIBRARY_PATH.
1292 * io/Makefile ($(objpfx)ftwtest.out): Pass run-with-env.sh to
1294 * io/ftwtest-sh: Take run_with_env argument. Use
1295 EGLIBC_TEST_LD_LIBRARY_PATH.
1297 2007-04-18 Joseph Myers <joseph@codesourcery.com>
1299 * scripts/cross-test-ssh.sh: Use printf in place of echo.
1301 2007-04-16 Joseph Myers <joseph@codesourcery.com>
1303 * sysdeps/powerpc/fpu/bits/fenvinline.h: Test _SOFT_FLOAT together
1305 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
1307 Use __GETCONTEXT_EXTRA instead of __CONTEXT_EXTRA.
1308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1309 Use __SETCONTEXT_EXTRA instead of __CONTEXT_EXTRA.
1310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1311 Use __GETCONTEXT_EXTRA and __SETCONTEXT_EXTRA instead of
1314 2007-04-13 Jim Blandy <jimb@codesourcery.com>
1316 * EGLIBC.option-groups: Doc fixes.
1318 * scripts/run-with-env.sh: New script.
1319 * elf/Makefile: Use run-with-env.sh instead of
1320 run-with-preload.sh.
1321 * nptl/Makefile: Same.
1322 (tst-audit1.out, tst-audit2.out): Use run-with-env.sh, and set
1323 EGLIBC_TEST_LD_AUDIT instead of LD_AUDIT.
1324 * scripts/run-with-preload.sh: Delete.
1326 2007-04-11 Jim Blandy <jimb@codesourcery.com>
1328 * option-groups.mak: Use '../' if $(..) is unset.
1330 2007-03-31 Jim Blandy <jimb@codesourcery.com>
1332 Add the OPTION_EGLIBC_LIBM option group.
1333 * option-groups.def (OPTION_EGLIBC_LIBM): New entry.
1334 * option-groups.defaults (OPTION_EGLIBC_LIBM): Set default value.
1335 * math/Makefile: include ../option-groups.mak.
1336 Add libm to OPTION_EGLIBC_LIBM option group.
1337 * Makerules (extra-libs, extra-libs-others): Let option groups
1338 control these values, too.
1340 2007-03-22 Jim Blandy <jimb@codesourcery.com>
1342 Run tests that set LD_PRELOAD properly, even when
1343 cross-test-wrapper is set.
1344 * scripts/run-with-preload.sh: New script.
1345 * Makeconfig (run-program-prefix, built-program-cmd): If
1346 $*-WRAPPER is set, include it in the command.
1347 * nptl/Makefile: Pass path to run-with-preload.sh script to
1349 * nptl/tst-tls6.sh: Pass LD_PRELOAD to test programs in a
1350 cross-test-wrapper-friendly way.
1351 * elf/Makefile (preloadtest-ENV, vismain-ENV): Set
1352 EGLIBC_TEST_LD_PRELOAD, not LD_PRELOAD.
1353 (preloadtest-WRAPPER, vismain-WRAPPER): Set to
1354 run-with-preload.sh.
1356 2007-03-12 Nathan Froyd <froydnj@codesourcery.com>
1358 * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
1359 as being properly aligned.
1361 2007-03-05 Jim Blandy <jimb@codesourcery.com>
1363 * EGLIBC.cross-testing: Note inter-machine user issues.
1364 * scripts/cross-test-ssh.sh: Doc fix.
1366 * scripts/cross-test-ssh.sh: Make executable.
1368 2007-02-27 Joseph Myers <joseph@codesourcery.com>
1370 * configure.in: Also pass -isystem option for GCC's include-fixed
1372 * configure: Regenerate.
1374 2007-02-20 Jim Blandy <jimb@codesourcery.com>
1376 * Makefile (install-headers): Preserve old behavior: depend on
1377 $(inst_includedir)/gnu/stubs.h only if install-bootstrap-headers
1378 is set; otherwise, place gnu/stubs.h on the 'install-others' list.
1380 * nptl/sysdeps/pthread/configure: Regenerate.
1382 2007-02-19 Jim Blandy <jimb@codesourcery.com>
1384 * EGLIBC.cross-building, EGLIBC.cross-testing,
1385 EGLIBC.option-groups: New files.
1386 * README, INSTALL: Identify ourselves as EGLIBC, and refer to the
1389 2007-02-16 Jim Blandy <jimb@codesourcery.com>
1391 Make configuration script more friendly to cross-compilation.
1392 * configure.in: Require at least binutils 2.17 and GCC 4.1.
1393 * configure: Regenerated.
1394 * nptl/sysdeps/pthread/configure.in: Disable link tests for forced
1395 unwinding and C cleanup handling; always #define
1396 HAVE_FORCED_UNWIND and set libc_cv_c_cleanup.
1398 * Makefile: Amend make install-headers to install everything
1399 necessary for building a cross-compiler. Install gnu/stubs.h as
1400 part of 'install-headers', not 'install-others'.
1401 If install-bootstrap-headers is 'yes', install a dummy copy of
1402 gnu/stubs.h, instead of computing the real thing.
1403 * include/stubs-bootstrap.h: New file.
1404 * sysdeps/unix/sysv/linux/Makefile: Install bits/syscall.h as part
1405 of 'install-headers' not 'install-others'.
1406 * stdio-common/Makefile: Similarly for bits/stdio_lim.h.
1407 * sunrpc/Makefile: Don't install generated headers if
1408 install-bootstrap-headers is 'yes'.
1410 2007-02-15 Khem Raj <kraj@mvista.com>
1412 * sysdeps/unix/sysv/linux/i386/sysdep.h: Re-define __i686.
1413 * nptl/sysdeps/pthread/pt-initfini.c: Ditto.
1415 2007-02-05 Jim Blandy <jimb@codesourcery.com>
1417 Add support for cross-testing.
1419 Remove Make conditionals that disable running tests or generating
1420 test input files when cross-compiling.
1421 * Rules: Disable conditionals.
1422 * stdlib/Makefile: Same.
1423 * libio/Makefile: Same.
1424 * intl/Makefile: Same.
1425 * iconvdata/Makefile: Same.
1426 * localedata/Makefile: Same.
1427 * catgets/Makefile: Same.
1428 * misc/Makefile: Same.
1429 * posix/Makefile: Same.
1430 * string/Makefile: Same.
1431 * stdio-common/Makefile: Same.
1432 * resolv/Makefile: Same.
1433 * iconv/Makefile: Same.
1434 * grp/Makefile: Same.
1435 * elf/Makefile: Same.
1436 * malloc/Makefile: Same.
1437 * io/Makefile: Same.
1439 Where tests run binaries, have them use cross-test-wrapper, if
1441 * Makeconfig (run-program-prefix): Split this into two pieces:
1442 (run-via-rtld-prefix): Prefix to run something via the dynamic linker.
1443 (run-program-prefix): Prefix to run something via the
1444 cross-testing wrapper and the dynamic linker.
1445 (built-program-command): Run the rule's second dependency, using the
1446 cross-test-wrapper and dynamic linker.
1447 (local-built-program-cmd): Like built-program-command, but don't
1448 use cross-test-wrapper.
1449 * intl/Makefile: Pass cross-test-wrapper to scripts.
1450 * intl/tst-codeset.sh, intl/tst-gettext.sh, intl/tst-gettext2.sh:
1451 * intl/tst-gettext3.sh, intl/tst-translit.sh: Expect and use wrapper.
1452 * iconvdata/Makefile: Pass cross-test-wrapper to scripts.
1453 * iconvdata/run-iconv-test.sh, iconvdata/tst-table.sh:
1454 * iconvdata/tst-tables.sh: Expect and use wrapper.
1455 * posix/Makefile: Pass cross-test-wrapper to scripts. Pass
1456 local-built-program-command to tests which run subprograms.
1457 * posix/tst-getconf.sh, posix/globtest.sh:
1458 * posix/workexp-tst.sh: Expect and use wrapper.
1459 * grp/Makefile: Pass cross-test-wrapper to scripts.
1460 * grp/tst-fgetgrent.sh: Expect and use wrapper.
1461 * elf/Makefile: Pass cross-test-wrapper to scripts. Use
1462 cross-test-wrapper to run binaries. Pass
1463 local-built-program-command to tests which run subprograms.
1464 * elf/tst-pathopt.sh: Expect and use wrapper.
1465 * malloc/Makefile: Pass cross-test-wrapper to scripts.
1466 * malloc/tst-mtrace.sh: Expect and use wrapper.
1467 * io/Makefile: Pass cross-test-wrapper to scripts.
1468 * io/ftwtest-sh: Expect and use wrapper.
1469 * nptl/Makefile: Pass cross-test-wrapper to scripts. Pass
1470 local-built-program-command to tests which run subprograms.
1471 * nptl/tst-tls6.sh: Expect and use wrapper.
1472 * rt/makefile (tst-mqueue7-ARGS): Pass local-built-program-command.
1474 Make sure cross-testing wrappers don't steal input from test
1477 * iconvdata/run-iconv-test.sh: Use non-stdin file descriptor for
1479 * iconvdata/tst-tables.sh: Redirect loop body input from /dev/null.
1480 * localedata/tst-rpmatch.sh, localedata/tst-fmon.sh: Same.
1481 * localedata/tst-numeric.sh: Same.
1482 * posix/tst-getconf.sh: Same.
1484 * localedata/tst-wctype.sh: Take the command to run as an
1485 argument, as passed by the Makefile, not run_program_prefix.
1487 * io/Makefile ($(objpfx)/ftwtest.out): If cross-testing, use build
1488 tree for temporary directory.
1490 * localedata/Makefile ($(addprefix $(objpfx),$(CTYPE_FILES))): Use
1491 cross-localedef program, if specified.
1493 * scripts/cross-test-ssh.sh: New file: sample cross-test wrapper.
1495 2007-02-02 Jim Blandy <jimb@codesourcery.com>
1497 Use the host nm in NPTL tests.
1498 * aclocal.m4 (LIBC_PROG_BINUTILS): Find path to 'nm', too.
1499 * configure: Regenerated.
1500 * config.make.in: Accept 'nm' path from configure script.
1501 * nptl/Makefile (tst-cancel-wrappers.out): Pass 'nm' path to test
1503 * nptl/tst-cancel-wrappers.sh: Use the 'nm' given in arguments.
1505 2007-01-25 Jim Blandy <jimb@codesourcery.com>
1507 * Makerules: Allow option groups to control xtests as well.
1508 * option-groups.mak: Initialize xtests-y.
1510 2006-12-26 Jim Blandy <jimb@codesourcery.com>
1512 * option-groups.def, option-groups.defaults (OPTION_EGLIBC_LOCALES):
1514 * localedata/Makefile: Trim locale lists if
1515 OPTION_EGLIBC_LOCALES is not enabled.
1517 * option-groups.mak: Allow includer to override the option
1518 group config file name.
1520 2006-12-08 Jim Blandy <jimb@codesourcery.com>
1522 Add rudimentary option group support.
1523 * option-groups.mak, option-groups.def, option-groups.defaults:
1525 * Makerules: Add contents of enabled option groups to the values
1526 of the variables 'routines', 'others', 'install-bin',
1527 'install-sbin', 'extra-objs', 'tests', and 'test-srcs'.
1528 * catgets/Makefile: Add the catgets directory's routines and
1529 programs to the OPTION_EGLIBC_CATGETS option group.
1531 2006-12-07 Joseph Myers <joseph@codesourcery.com>
1533 * misc/tst-efgcvt.c (ecvt_tests): Disable subnormal test for E500
1535 * sysdeps/powerpc/bits/fenv.h: Include E500 definitions. Based on
1536 SPE add-on by Aldy Hernandez.
1537 * sysdeps/powerpc/fpu/bits/fenvinline.h: Change _SOFT_FLOAT to
1539 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1540 * sysdeps/powerpc/fpu/fpu_control.h: Include soft-float and E500
1541 definitions. Based on SPE add-on by Aldy Hernandez.
1542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
1543 If __CONTEXT_EXTRA defined, include <getcontext-extra.S>.
1544 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1545 If __CONTEXT_EXTRA defined, include <setcontext-extra.S>.
1546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1547 If __CONTEXT_EXTRA defined, include <getcontext-extra.S> and
1548 <setcontext-extra.S>.
1550 2006-11-13 Joseph S. Myers <joseph@codesourcery.com>
1552 * sysdeps/alpha/bits/mathdef.h (float_t): Always define as float.
1553 * sysdeps/powerpc/bits/mathdef.h: Likewise.
1554 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
1555 * sysdeps/sparc/bits/mathdef.h: Likewise.
1557 2006-11-09 Steven Munroe <sjmunroe@us.ibm.com>
1558 Joe Kerian <jkerian@us.us.ibm.com>
1561 * soft-fp/fenv_libc.h: New file.
1562 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
1563 and overflow for infinity.
1564 (_FP_PACK_SEMIRAW): Update comment. Do not round if NaN.
1565 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
1566 handling for high words.
1567 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c:
1568 Include <math_ldbl_opt.h>.
1569 Remove weak_alias. Use long_double_symbol macro.
1570 (__copysignl): Use signbit() for comparison.
1571 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c:
1574 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
1575 (__ceill): Remove calls to fegetround(), fesetround().
1576 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
1577 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
1578 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
1580 2006-09-07 Richard Sandiford <richard@codesourcery.com>
1582 * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
1584 2006-09-07 Richard Sandiford <richard@codesourcery.com>
1586 * locale/programs/ld-collate.c (obstack_int32_grow): Only use
1587 obstack_int_grow if the object size is int-aligned.
1588 (obstack_int32_grow_fast): Likewise obstack_int_grow_fast.
1589 (new_element): Handle <U0000> as a single character.
1590 (collate_output): Use uint32_align_mask. Use obstack_int32_grow_fast
1591 rather than obstack_int32_grow for an int32 that has already been
1593 * locale/programs/localedef.c (OPT_UINT32_ALIGN): New macro.
1594 (options): Add --uint32-align.
1595 (parse_opt): Handle it.
1596 * locale/programs/locfile.c (uint32_align_mask): New variable.
1597 * locale/programs/locfile.h (uint32_align_mask): Declare.
1599 2006-09-07 Richard Sandiford <richard@codesourcery.com>
1601 * argp/argp-help.c (__argp_short_program_name): Protect function name
1602 from macro expansion.
1603 * argp/argp-namefrob.h: Don't include mempcpy.h, strcase.h,
1604 strchrnul.h and strndup.h
1605 * locale/programs/charmap-dir.c: Don't include spawn.h if
1606 NO_COMPRESS is defined.
1607 (fopen_uncompressed): Suppress if NO_COMPRESS is defined.
1608 (charmap_open): Guard callers in the same way.
1609 * locale/programs/ld-collate.c (new_element): Call wcslen_uint32
1611 (collate_finish, collate_output): Likewise wmemcmp_uint32/wmemcmp.
1612 * locale/programs/ld-ctype.c (find_idx): Fix prototype.
1613 (ctype_startup): Fix cast.
1614 (ctype_output, read_translit_entry): Call wcslen_uint32 instead
1616 (ctype_read): Use BITw and BIT instead of _ISwdigit and _ISdigit.
1617 (allocate_arrays): Call wcslen_uint32 instead of wcslen, wcscmp_uint32
1618 instead of wcscmp, and wmemcpy_uint32 instead of wmemcpy.
1619 * locale/programs/ld-time.c (time_finish): Initialize wt_fmt_ampm
1620 and wdate_fmt with constant uint32_t arrays instead of wide character
1621 strings. Call wcschr_uint32 instead of wcschr.
1622 * locale/programs/linereader.c (get_string): Fix type of wide
1624 * locale/programs/localedef.c (main): Don't call sysconf if
1625 NO_SYSCONF is defined.
1626 * locale/programs/locarchive.c (enlarge_archive): Avoid C99
1628 * locale/programs/locfile.c (add_locale_wstring): Call wcslen_uint32
1630 * locale/programs/locfile.h (wcslen_uint32, wmemcmp_uint32)
1631 (wcscmp_uint32, wmemcpy_uint32, wcschr_uint32): New functions.
1633 2006-09-07 Richard Sandiford <richard@codesourcery.com>
1635 * locale/programs/3level.h (TABLE): Remove "result" field.
1636 (TABLE,_finalize): Replace with...
1637 (add_locale_,TABLE): ...this new function. Add data directly to a
1638 locale_file instead of building up a result block.
1639 * locale/programs/ld-address.c (address_output): Use the new
1640 locale_file interface.
1641 * locale/programs/ld-collate.c (obstack_int32_grow)
1642 (obstack_int32_grow_fast): Pass the value through maybe_swap_uint32.
1643 (collate_finish): Don't call collseq_table_finalize.
1644 (output_weightwc): Use maybe_swap_uint32_obstack to reorder the
1646 (collate_output): Likewise the wide collation string. Don't call
1647 collidx_table_finalize. Use the new locale_file interface.
1648 * locale/programs/ld-ctype.c (wcwidth_table, wctrans_table)
1649 (wctrans_table_add): Move definitions.
1650 (wctype_table): Likewise. Remove "result" field.
1651 (locale_ctype_t): Make "class_3level" an array of wctype_tables,
1652 "map_3level" an array of wctrans_tables and "width" a wcwidth_table.
1653 (ctype_output): Hoist the setting of default_missing_len and reuse it
1654 in the DEFAULT_MISSING case. Use the new locale_file interface.
1655 (wctype_finalize): Replace with...
1656 (add_locale_wctype_table): ...this new function. Alter as for
1657 add_locale_TABLE above.
1658 (allocate_arrays): Adjust for new types of locale_ctype_t fields.
1659 Don't call wctype_table_finalize, wctrans_table_finalize or
1660 wcwidth_table_finalize.
1661 * locale/programs/ld-identification.c (identification_output): Use
1662 the new locale_file interface.
1663 * locale/programs/ld-measurement.c (measurement_output): Likewise.
1664 * locale/programs/ld-messages.c (messages_output): Likewise.
1665 * locale/programs/ld-monetary.c (monetary_output): Likewise.
1666 * locale/programs/ld-name.c (name_output): Likewise.
1667 * locale/programs/ld-numeric.c (numeric_output): Likewise.
1668 * locale/programs/ld-paper.c (paper_output): Likewise.
1669 * locale/programs/ld-telephone.c (telephone_output): Likewise.
1670 * locale/programs/ld-time.c (time_output): Likewise.
1671 * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): Define.
1672 (OPT_BIG_ENDIAN): Define.
1673 (options): Add --big-endian and --little-endian.
1674 (parse_opt): Handle them.
1675 * locale/programs/locfile.c: Include assert.h, wchar.h and
1677 (obstack_chunk_alloc, obstack_chunk_free): Define.
1678 (swap_endianness_p, record_offset, init_locale_data, align_locale_data)
1679 (add_locale_empty, add_locale_raw_data, add_locale_raw_obstack)
1680 (add_locale_string, add_locale_wstring, add_locale_uint32)
1681 (add_locale_uint32_array, add_locale_char, start_locale_structure)
1682 (end_locale_structure, start_locale_prelude, end_locale_prelude): New.
1683 (write_locale_data): Replace iovec arguments with a locale_file.
1684 Build three iovecs internally, one for the header, one for the offsets
1685 array and one for the data itself.
1686 * locale/programs/locfile.h: Include obstack.h.
1687 (locale_file): Redefine as a file-building structure.
1688 (swap_endianness_p): Declare.
1689 (set_big_endian, swap_uint32, maybe_swap_uint32)
1690 (maybe_swap_uint32_array, maybe_swap_uint32_obstack): New functions.
1691 (init_locale_data, align_locale_data, add_locale_empty)
1692 (add_locale_raw_data, add_locale_raw_obstack, add_locale_string)
1693 (add_locale_wstring, add_locale_uint32, add_locale_uint32_array)
1694 (add_locale_char, start_locale_structure, end_locale_structure)
1695 (start_locale_prelude, end_locale_prelude): Declare.
1696 (write_locale_data): Adjust prototype as for locfile.c change.
1698 2006-08-31 Mark Mitchell <mark@codesourcery.com>
1699 Julian Brown <julian@codesourcery.com>
1701 * Makefile (headers): Add bits/predefs.h.
1702 * include/features.h (__STDC_IEC_559__): Do not define.
1703 (__STDC_IEC_559_COMPLEX__): Likewise.
1704 (<bits/predefs.h>): Include.
1705 * bits/predefs.h: New file.
1707 2006-08-26 Joseph Myers <joseph@codesourcery.com>
1709 * io/test-lfs.c (do_prepare): Give name_len type size_t.
1710 * io/tst-fcntl.c (do_prepare): Likewise.
1711 * posix/tst-exec.c (do_prepare): Likewise.
1712 * posix/tst-preadwrite.c (do_prepare): Likewise.
1713 * posix/tst-spawn.c (do_prepare): Likewise.
1714 * posix/tst-truncate.c (do_prepare): Likewise.
1715 * rt/tst-aio.c (do_prepare): Likewise.
1716 * rt/tst-aio64.c (do_prepare): Likewise.
1717 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1720 2006-08-23 Joseph Myers <joseph@codesourcery.com>
1722 * elf/dl-reloc.c (_dl_relocate_object): Do not try to allocate
1723 array using DT_PLTRELSZ if ELF_MACHINE_NO_PLT.
1725 2006-08-23 Joseph S. Myers <joseph@codesourcery.com>
1728 * math/libm-test.inc (lrint_test_tonearest): New.
1729 (lrint_test_towardzero): New.
1730 (lrint_test_downward): New.
1731 (lrint_test_upward): New.
1732 (main): Run these new tests.
1733 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1734 of values near to 0.
1735 (two52): Use double not long double.
1736 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1737 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1738 (two23): Use float not double.
1739 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1740 (two23): Use float not double.
1741 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1742 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1743 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1744 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1746 2006-08-23 Joseph Myers <joseph@codesourcery.com>
1748 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
1751 2006-08-23 Joseph Myers <joseph@codesourcery.com>
1753 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
1755 * math/atest-exp2.c (read_mpn_hex): Likewise.
1756 * math/atest-sincos.c (main): Likewise.
1758 2006-08-23 Joseph S. Myers <joseph@codesourcery.com>
1760 * manual/arith.texi (fesetexceptflag): Use single line for
1762 * manual/sysinfo.texi (sysctl): Likewise.
1763 * manual/errno.texi (error_print_progname): Remove space between
1764 "error_print_progname" and ")".
1768 change-log-default-name: "ChangeLog.eglibc"