kopensolaris-gnu/glibc.git
16 years agoUpdate.
drepper [Fri, 21 Nov 2003 23:42:18 +0000 (23:42 +0000)]
Update.

16 years ago(fetch_token): Change interface to match peek_token. This avoid some
drepper [Fri, 21 Nov 2003 23:40:44 +0000 (23:40 +0000)]
(fetch_token): Change interface to match peek_token.  This avoid some
copying and reduces code size.

16 years agoUpdate.
drepper [Fri, 21 Nov 2003 22:43:47 +0000 (22:43 +0000)]
Update.

16 years ago(tests): Add more tests.
drepper [Fri, 21 Nov 2003 22:43:09 +0000 (22:43 +0000)]
(tests): Add more tests.

16 years agoUpdate.
drepper [Fri, 21 Nov 2003 22:38:10 +0000 (22:38 +0000)]
Update.

16 years agoAnd one more commented out test.
drepper [Fri, 21 Nov 2003 22:37:16 +0000 (22:37 +0000)]
And one more commented out test.

16 years ago(prepare): Add prototype. Move after test-skeleton.c include.
drepper [Fri, 21 Nov 2003 22:24:06 +0000 (22:24 +0000)]
(prepare): Add prototype.  Move after test-skeleton.c include.

16 years agoUpdate.
drepper [Fri, 21 Nov 2003 18:53:38 +0000 (18:53 +0000)]
Update.

16 years ago(distribute): Add tst-cleanup4aux.c.
drepper [Fri, 21 Nov 2003 18:53:01 +0000 (18:53 +0000)]
(distribute): Add tst-cleanup4aux.c.

16 years ago(do_test): If USE_COND_SIGNAL is defined, use pthread_cond_signal.
drepper [Fri, 21 Nov 2003 18:18:45 +0000 (18:18 +0000)]
(do_test): If USE_COND_SIGNAL is defined, use pthread_cond_signal.

16 years agoUpdate.
drepper [Fri, 21 Nov 2003 10:00:11 +0000 (10:00 +0000)]
Update.

16 years ago(__pthread_cond_wait): Don't store mutex address if the current value
drepper [Fri, 21 Nov 2003 09:59:16 +0000 (09:59 +0000)]
(__pthread_cond_wait): Don't store mutex address if the current value
is ~0l.

16 years ago(__pthread_cond_timedwait): Don't store mutex address if the current
drepper [Fri, 21 Nov 2003 09:59:04 +0000 (09:59 +0000)]
(__pthread_cond_timedwait): Don't store mutex address if the current
value is ~0l.

16 years ago(__pthread_cond_broadcast): Don't use requeue for pshared condvars.
drepper [Fri, 21 Nov 2003 09:58:50 +0000 (09:58 +0000)]
(__pthread_cond_broadcast): Don't use requeue for pshared condvars.

16 years ago(__pthread_cond_wait): Don't store mutex address if the current value
drepper [Fri, 21 Nov 2003 09:54:04 +0000 (09:54 +0000)]
(__pthread_cond_wait): Don't store mutex address if the current value
is ~0l.

16 years ago(__pthread_cond_timedwait): Don't store mutex address if the current
drepper [Fri, 21 Nov 2003 09:53:50 +0000 (09:53 +0000)]
(__pthread_cond_timedwait): Don't store mutex address if the current
value is ~0l.

16 years ago(__pthread_cond_broadcast): Don't use requeue for pshared condvars.
drepper [Fri, 21 Nov 2003 09:53:36 +0000 (09:53 +0000)]
(__pthread_cond_broadcast): Don't use requeue for pshared condvars.

16 years ago(__pthread_cond_init): Initialize __mutex element with ~0l for pshared
drepper [Fri, 21 Nov 2003 09:42:38 +0000 (09:42 +0000)]
(__pthread_cond_init): Initialize __mutex element with ~0l for pshared
condvars, with NULL otherwise.

16 years ago(__pthread_cond_wait): Don't store mutex address if the current value
drepper [Fri, 21 Nov 2003 09:41:58 +0000 (09:41 +0000)]
(__pthread_cond_wait): Don't store mutex address if the current value
is ~0l.

16 years ago(__pthread_cond_timedwait): Don't store mutex address if the current
drepper [Fri, 21 Nov 2003 09:41:38 +0000 (09:41 +0000)]
(__pthread_cond_timedwait): Don't store mutex address if the current
value is ~0l.

16 years ago(__pthread_cond_broadcast): Don't use requeue for pshared condvars.
drepper [Fri, 21 Nov 2003 09:41:05 +0000 (09:41 +0000)]
(__pthread_cond_broadcast): Don't use requeue for pshared condvars.

16 years agoUpdate.
drepper [Fri, 21 Nov 2003 09:25:26 +0000 (09:25 +0000)]
Update.

16 years agoTest for pshared condvar where condvar and mutex are at a different address
drepper [Fri, 21 Nov 2003 09:24:51 +0000 (09:24 +0000)]
Test for pshared condvar where condvar and mutex are at a different address
in the second process.  Notification via pthread_cond_signal.

16 years agoAdd rules to build and run tst-cond13.
drepper [Fri, 21 Nov 2003 09:23:58 +0000 (09:23 +0000)]
Add rules to build and run tst-cond13.

16 years agoUpdate.
drepper [Fri, 21 Nov 2003 09:20:45 +0000 (09:20 +0000)]
Update.

16 years agoAdd rules to build and run tst-cond12.
drepper [Fri, 21 Nov 2003 09:20:09 +0000 (09:20 +0000)]
Add rules to build and run tst-cond12.

16 years agoTest for process-shared condvar where the condvar and mutex is at a different
drepper [Fri, 21 Nov 2003 09:19:51 +0000 (09:19 +0000)]
Test for process-shared condvar where the condvar and mutex is at a different
address in the second process.

16 years agoUpdate.
drepper [Fri, 21 Nov 2003 08:42:20 +0000 (08:42 +0000)]
Update.

16 years ago(mb_tests): Don't run identical multi-byte tests multiple times unnecessarily.
drepper [Fri, 21 Nov 2003 08:41:38 +0000 (08:41 +0000)]
(mb_tests): Don't run identical multi-byte tests multiple times unnecessarily.

16 years ago(BRE, ERE): Define.
drepper [Fri, 21 Nov 2003 08:38:39 +0000 (08:38 +0000)]
(BRE, ERE): Define.
(tests): Add many new tests, remove UTF-8 ones.
(do_one_test, do_mb_tests): New functions.
(main): Rewritten using do_one_test and do_mb_tests.

16 years agoRegenerated
drepper [Thu, 20 Nov 2003 23:39:24 +0000 (23:39 +0000)]
Regenerated

16 years agoUpdate.
drepper [Thu, 20 Nov 2003 23:36:40 +0000 (23:36 +0000)]
Update.

16 years agoFix first test in GA143.
drepper [Thu, 20 Nov 2003 23:35:49 +0000 (23:35 +0000)]
Fix first test in GA143.

16 years ago(tst-rxspencer-ARGS): Add --utf8 argument.
drepper [Thu, 20 Nov 2003 23:34:07 +0000 (23:34 +0000)]
(tst-rxspencer-ARGS): Add --utf8 argument.
(tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
here, without --utf8 argument but with MALLOC_TRACE.

16 years ago (mb_tests): Don't test [[=b=]] for now as
drepper [Thu, 20 Nov 2003 23:33:52 +0000 (23:33 +0000)]
 (mb_tests): Don't test [[=b=]] for now as
multi-byte.  Don't run identical multi-byte tests multiple times unnecessarily.
(main): Check setlocale return value.

16 years ago(tests): Enable some commented out tests, add 2 new tests.
drepper [Thu, 20 Nov 2003 23:33:32 +0000 (23:33 +0000)]
(tests): Enable some commented out tests, add 2 new tests.

16 years ago(check_matching): Remove fl_search argument.
drepper [Thu, 20 Nov 2003 23:33:13 +0000 (23:33 +0000)]
(check_matching): Remove fl_search argument.
(transit_state_sb): Likewise.  #ifdef out as unused.
(build_trtable): Remove fl_search argument.  Set state->word_trtable
and state->trtable.  Build separate word and non-word tables if
multi-byte and they differ for some character.
(transit_state): Remove fl_search argument.  Don't update
state->trtable here.  Handle state->word_trtable.
#ifdef out unused call to transit_state_sb.
(re_search_internal): Update check_matching caller.
(group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
bitmask for multi-byte locales.

16 years ago(create_newstate_common, free_state): Don't free trtable_search.
drepper [Thu, 20 Nov 2003 23:32:49 +0000 (23:32 +0000)]
(create_newstate_common, free_state): Don't free trtable_search.

16 years ago(re_dfastate_t): Remove trtable_search.
drepper [Thu, 20 Nov 2003 23:32:33 +0000 (23:32 +0000)]
(re_dfastate_t): Remove trtable_search.
Add word_trtable.

16 years agoUpdate.
drepper [Thu, 20 Nov 2003 23:32:06 +0000 (23:32 +0000)]
Update.

16 years ago(LOCALES): Add cs_CZ.UTF-8.
drepper [Thu, 20 Nov 2003 23:31:38 +0000 (23:31 +0000)]
(LOCALES): Add cs_CZ.UTF-8.

16 years agoUpdate.
drepper [Thu, 20 Nov 2003 08:10:05 +0000 (08:10 +0000)]
Update.

16 years agoRegenerated
drepper [Thu, 20 Nov 2003 08:09:55 +0000 (08:09 +0000)]
Regenerated

16 years agoUndo last change.
drepper [Thu, 20 Nov 2003 08:09:12 +0000 (08:09 +0000)]
Undo last change.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 22:42:09 +0000 (22:42 +0000)]
Update.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 22:41:57 +0000 (22:41 +0000)]
Update.

16 years ago2ns GA 135 test is wrong, too.
drepper [Wed, 19 Nov 2003 22:24:07 +0000 (22:24 +0000)]
2ns GA 135 test is wrong, too.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 19:37:31 +0000 (19:37 +0000)]
Update.

16 years ago(extend_buffers): Don't allocate twice as big state_log as needed.
drepper [Wed, 19 Nov 2003 19:28:55 +0000 (19:28 +0000)]
(extend_buffers): Don't allocate twice as big state_log as needed.
Don't modify pstr->valid_len for mb_cur_max == 1 !icase !trans.

16 years ago(BIN_TREE_STORAGE_SIZE): Define.
drepper [Wed, 19 Nov 2003 19:19:31 +0000 (19:19 +0000)]
(BIN_TREE_STORAGE_SIZE): Define.
(bin_tree_storage_t): New type.
(re_dfa_t): Add str_tree_storage and str_tree_storage_idx fields.

16 years ago(tests): Add bug-regex21.
drepper [Wed, 19 Nov 2003 19:19:09 +0000 (19:19 +0000)]
(tests): Add bug-regex21.
(generated): Add bug-regex21-mem, bug-regex21.mtrace,
tst-rxspencer-mem and tst-rxspencer.mtrace.
(tests): Depend on $(objpfx)bug-regex21-mem
and $(objpfx)tst-rxspencer-mem.
(bug-regex21-ENV, tst-rxspencer-ENV): Set.
($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.

16 years agoTest for memory leak in regex.
drepper [Wed, 19 Nov 2003 19:18:43 +0000 (19:18 +0000)]
Test for memory leak in regex.

16 years ago(main): Add call to mtrace.
drepper [Wed, 19 Nov 2003 19:17:49 +0000 (19:17 +0000)]
(main): Add call to mtrace.
Free line at the end.

16 years ago(free_bin_tree): Removed.
drepper [Wed, 19 Nov 2003 19:17:25 +0000 (19:17 +0000)]
(free_bin_tree): Removed.
(create_tree): Add dfa argument.  Don't call re_malloc for
each tree, instead allocate from str_tree_storage.
(re_dfa_add_tree_node): New function.
(free_dfa_content): Handle freeing if dfa->nodes == NULL
or dfa->state_table == NULL.
(re_compile_internal): Call free_dfa_content if init_dfa
fails.  Call free_workarea_compile, re_string_destruct
and free_dfa_content for most of the other failure paths.
(init_dfa): Initialize str_tree_storage_idx.
Don't clear any fields on allocation failure.
(free_workarea_compile): Free str_tree_storage chunks
instead of free_bin_tree (dfa->str_tree).
(parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
followed by create_tree.  Add dfa argument to remaining
create_tree calls.  Remove new_idx variable.  Remove calls
to free_bin_tree.
(parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
(duplicate_tree): Remove calls to free_bin_tree, add dfa
argument to create_tree.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 09:24:54 +0000 (09:24 +0000)]
Update.

16 years agoCorrect invalid UTF-8 sequences.
drepper [Wed, 19 Nov 2003 09:23:55 +0000 (09:23 +0000)]
Correct invalid UTF-8 sequences.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 09:09:27 +0000 (09:09 +0000)]
Update.

16 years ago(build_wcs_upper_buffer): If mbrtowc fails, just use the byte, do no
drepper [Wed, 19 Nov 2003 09:08:40 +0000 (09:08 +0000)]
(build_wcs_upper_buffer): If mbrtowc fails, just use the byte, do no
fancy conversions.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 08:43:18 +0000 (08:43 +0000)]
Update.

16 years ago(re_string_first_byte): Use ->valid_len not ->len.
drepper [Wed, 19 Nov 2003 08:23:08 +0000 (08:23 +0000)]
(re_string_first_byte): Use ->valid_len not ->len.
(re_string_is_single_byte_char): Likewise.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 07:18:32 +0000 (07:18 +0000)]
Update.

16 years ago(get_subexp): Adter calling get_subexp_seb reload buf and bkref_str.
drepper [Wed, 19 Nov 2003 07:17:40 +0000 (07:17 +0000)]
(get_subexp): Adter calling get_subexp_seb reload buf and bkref_str.
Little optimization by avoiding memcmp.

16 years agoAdd comment re possible optimization.
drepper [Wed, 19 Nov 2003 07:15:16 +0000 (07:15 +0000)]
Add comment re possible optimization.

16 years agoUpdate.
drepper [Wed, 19 Nov 2003 06:12:51 +0000 (06:12 +0000)]
Update.

16 years agoThere is no need to save/restore input-arguments, because they're necessarily
drepper [Wed, 19 Nov 2003 06:12:11 +0000 (06:12 +0000)]
There is no need to save/restore input-arguments, because they're necessarily
preserved by the kernel to support syscall-restart.

16 years agoWork around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
drepper [Wed, 19 Nov 2003 06:11:48 +0000 (06:11 +0000)]
Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
Also move the jump-table to out of .text into .rodata, where it belongs.

16 years agoWork around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
drepper [Wed, 19 Nov 2003 06:11:26 +0000 (06:11 +0000)]
Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.

16 years ago(GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
drepper [Wed, 19 Nov 2003 06:10:47 +0000 (06:10 +0000)]
(GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
that all existing GAS versions have a problem with .align inside a function.

16 years agoUpdate.
drepper [Tue, 18 Nov 2003 23:40:59 +0000 (23:40 +0000)]
Update.

16 years ago(BRE, ERE): Define.
drepper [Tue, 18 Nov 2003 23:40:21 +0000 (23:40 +0000)]
(BRE, ERE): Define.
(tests): Use them to make lines shorter.  Expect . to be
optimized.  Add lots of new tests.
(main): Run (ATM just case sensitive) test with backwards searching
as well.

16 years ago(create_ci_newstate, create_cd_newstate):
drepper [Tue, 18 Nov 2003 23:40:01 +0000 (23:40 +0000)]
(create_ci_newstate, create_cd_newstate):
Handle OP_UTF8_PERIOD.
(re_string_reconstruct): Set valid_len for single byte char searching
with no translation and case sensitivity.

16 years ago(re_token_type_t): Remove unused ALT, END_OF_RE_TOKEN_T and SUBEXP.
drepper [Tue, 18 Nov 2003 23:39:45 +0000 (23:39 +0000)]
(re_token_type_t): Remove unused ALT, END_OF_RE_TOKEN_T and SUBEXP.
Reorder values.  Add OP_UTF8_PERIOD and EPSILON_BIT.
(IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
(ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.

16 years ago(transit_state_mb): Fix comment typo.
drepper [Tue, 18 Nov 2003 23:39:15 +0000 (23:39 +0000)]
(transit_state_mb): Fix comment typo.
(group_nodes_into_DFAstates, check_node_accept): Handle OP_UTF8_PERIOD.
(check_node_accept_bytes): Likewise.  Reorder slightly so that
re_string_char_size_at and re_string_elem_size_at are called
only when needed.

16 years ago(re_compile_fastmap_iter, calc_first): Handle OP_UTF8_PERIOD.
drepper [Tue, 18 Nov 2003 23:38:44 +0000 (23:38 +0000)]
(re_compile_fastmap_iter, calc_first): Handle OP_UTF8_PERIOD.
(re_compile_internal): Don't call optimize_utf8 if preg->translate != NULL.
(optimize_utf8): Remove BACK_SLASH case.
Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be optimized.
(parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
any bits set and COMPLEX_BRACKET is used.

16 years agoUpdate.
drepper [Tue, 18 Nov 2003 19:12:03 +0000 (19:12 +0000)]
Update.

16 years ago(mbsinit): Remove define.
drepper [Tue, 18 Nov 2003 19:11:26 +0000 (19:11 +0000)]
(mbsinit): Remove define.

16 years agoInclude string.h.
drepper [Tue, 18 Nov 2003 19:11:10 +0000 (19:11 +0000)]
Include string.h.

16 years agoUpdate.
drepper [Tue, 18 Nov 2003 07:25:02 +0000 (07:25 +0000)]
Update.

16 years ago(check_node_accept_bytes): Move nrules and j
drepper [Tue, 18 Nov 2003 07:24:16 +0000 (07:24 +0000)]
(check_node_accept_bytes): Move nrules and j
variables to the block where they are only used, initialize
nrules only immediately before using it.

16 years ago(tests): Add new tests. Multi-byte char followed by dup operator is expected
drepper [Tue, 18 Nov 2003 07:23:51 +0000 (07:23 +0000)]
(tests): Add new tests.  Multi-byte char followed by dup operator is expected
to be optimized.

16 years ago(optimize_utf8): Optimize multi-byte chars as well.
drepper [Tue, 18 Nov 2003 07:23:34 +0000 (07:23 +0000)]
(optimize_utf8): Optimize multi-byte chars as well.

16 years agoremainderl implementation for x86-64.
drepper [Tue, 18 Nov 2003 07:19:41 +0000 (07:19 +0000)]
remainderl implementation for x86-64.

16 years agoilogbl implementation for x86-64.
drepper [Tue, 18 Nov 2003 07:19:29 +0000 (07:19 +0000)]
ilogbl implementation for x86-64.

16 years agofloorl implementation for x86-64.
drepper [Tue, 18 Nov 2003 07:19:13 +0000 (07:19 +0000)]
floorl implementation for x86-64.

16 years agonearbyintl implementation for x86-64.
drepper [Tue, 18 Nov 2003 07:18:56 +0000 (07:18 +0000)]
nearbyintl implementation for x86-64.

16 years agotruncl implementation for x86-64.
drepper [Tue, 18 Nov 2003 07:18:42 +0000 (07:18 +0000)]
truncl implementation for x86-64.

16 years agoscalbnl implementation for x86-64.
drepper [Tue, 18 Nov 2003 07:18:28 +0000 (07:18 +0000)]
scalbnl implementation for x86-64.

16 years agoUpdate.
drepper [Tue, 18 Nov 2003 07:04:13 +0000 (07:04 +0000)]
Update.

16 years agoAdd support for destination address selection according to RFC 3484.
drepper [Tue, 18 Nov 2003 07:03:26 +0000 (07:03 +0000)]
Add support for destination address selection according to RFC 3484.

16 years agoRegenerated: autoconf nptl/sysdeps/pthread/configure.in
drepper [Tue, 18 Nov 2003 04:41:47 +0000 (04:41 +0000)]
Regenerated: autoconf  nptl/sysdeps/pthread/configure.in

16 years agoUpdate.
drepper [Mon, 17 Nov 2003 18:29:34 +0000 (18:29 +0000)]
Update.

16 years agoMake missing forced unwind support fatal.
drepper [Mon, 17 Nov 2003 18:29:09 +0000 (18:29 +0000)]
Make missing forced unwind support fatal.

16 years agoUpdate.
drepper [Sun, 16 Nov 2003 07:14:28 +0000 (07:14 +0000)]
Update.

16 years agoAdjust call of re_string_allocate.
drepper [Sun, 16 Nov 2003 07:13:03 +0000 (07:13 +0000)]
Adjust call of re_string_allocate.

16 years agoAdjust definitions of re_string_allocate and re_string_construct.
drepper [Sun, 16 Nov 2003 07:11:09 +0000 (07:11 +0000)]
Adjust definitions of re_string_allocate and re_string_construct.
Pass DFA to re_string_construct.  Adjust definition.  Initialize
map_notascii field.
(build_wcs_upper_buffer): If map_notascii is zero use simplfied
method to map ASCII values to upper case.

16 years agoInclude localeinfo.h.
drepper [Sun, 16 Nov 2003 07:03:23 +0000 (07:03 +0000)]
Include localeinfo.h.

16 years ago(re_compile_internal): Add call of re_string_construct.
drepper [Sun, 16 Nov 2003 07:02:39 +0000 (07:02 +0000)]
(re_compile_internal): Add call of re_string_construct.
(init_dfa): Initialize mpa_notascii.

16 years agoAdd forward declaration of re_dfa_t.
drepper [Sun, 16 Nov 2003 07:01:43 +0000 (07:01 +0000)]
Add forward declaration of re_dfa_t.
Replace last two parameters of re_string_allocate and
re_string_construct with pointer to DFA.
(re_dfa_t): Add map_notascii field.

16 years agoUpdate.
drepper [Sun, 16 Nov 2003 06:57:28 +0000 (06:57 +0000)]
Update.

16 years ago(tst-leaks-ENV): Add LOCPATH.
drepper [Sun, 16 Nov 2003 06:57:12 +0000 (06:57 +0000)]
(tst-leaks-ENV): Add LOCPATH.