gcc/libmudflap/testsuite/libmudflap.c
Frank Ch. Eigler 00dcddaaa0 ANSI C conversion, libmudflap specialization, recursion limiting.
2004-07-08  Frank Ch. Eigler  <fche@redhat.com>

	ANSI C conversion, libmudflap specialization, recursion limiting.
	* splay-tree.h (splay_tree_{de,}allocate_fn): Remove allocation_data
	argument and indirection function pointers, update callers.
	(splay_tree_s): Add statistics and recursion control fields
	num_keys, max_depth, depth, rebalance_p.
	* splay-tree.c (splay_tree_splay_helper): Track recursion depth.
	Back out of search if it exceeds limit.
	(splay_tree_splay): Manage recursion limiting with rebalancing as
	needed.
	(splay_tree_new): More initialization.
	(splay_tree_rebalance): New function.
	(splay_tree_foreach): Rewrite using nonrecursive logic.
	(splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate):
	Remove.  Point indirect calls to mf-runtime.c's routines.
	(splay_tree_compare_ints, splay_tree_compare_pointers): Remove unused
	functions.
	(splay_tree_delete, splay_tree_delete_helper): Ditto.
	* testsuite/heap-scalestress.c: New test based on one from
	Eyal Lebedinsky <eyal@eyal.emu.id.au>:

From-SVN: r84303
2004-07-08 19:11:44 +00:00
..
cfrags.exp Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00
fail1-frag.c
fail2-frag.c
fail3-frag.c
fail4-frag.c
fail5-frag.c
fail6-frag.c
fail7-frag.c
fail8-frag.c
fail9-frag.c
fail10-frag.c
fail11-frag.c
fail12-frag.c
fail13-frag.c
fail14-frag.c
fail15-frag.c
fail16-frag.c
fail17-frag.c
fail18-frag.c Adopt splay trees for object database. 2004-06-24 21:12:18 +00:00
fail19-frag.c
fail20-frag.c
fail21-frag.c
fail22-frag.c
fail23-frag.c
fail25-frag.c
fail26-frag.c
fail27-frag.c
fail28-frag.c
fail29-frag.c
fail30-frag.c
fail31-frag.c
heap-scalestress.c ANSI C conversion, libmudflap specialization, recursion limiting. 2004-07-08 19:11:44 +00:00
hook-allocstuff.c
pass1-frag.c
pass2-frag.c
pass3-frag.c
pass4-frag.c
pass5-frag.c
pass6-frag.c
pass7-frag.c
pass8-frag.c
pass9-frag.c
pass10-frag.c
pass11-frag.c
pass12-frag.c
pass13-frag.c
pass14-frag.c
pass15-frag.c
pass16-frag.c
pass17-frag.c
pass18-frag.c
pass19-frag.c
pass20-frag.c
pass21-frag.c
pass22-frag.c
pass23-frag.c
pass24-frag.c
pass25-frag.c
pass26-frag.c
pass29-frag.c
pass30-frag.c
pass32-frag.c
pass33-frag.c
pass34-frag.c
pass35-frag.c
pass36-frag.c
pass38-frag.c
pass42-frag.c
pass43-frag.c
pass44-frag.c
pass45-frag.c
pass46-frag.c Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00
pass47-frag.c ctype support. 2004-06-09 19:04:56 +00:00
pass-stratcliff.c