gcc/libmudflap/testsuite
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
..
config Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00
lib Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00
libmudflap.c ANSI C conversion, libmudflap specialization, recursion limiting. 2004-07-08 19:11:44 +00:00
libmudflap.c++ Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00
libmudflap.cth Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00
Makefile.am Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00
Makefile.in Adopt splay trees for object database. 2004-06-24 21:12:18 +00:00
mfconfig.exp.in Portability improvements, e.g., libmudflap/15293. 2004-06-04 20:12:01 +00:00