From 950f6c851965c50f4460a9b5230b0425c4c77a06 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 2 Sep 2016 15:22:21 +0000 Subject: Improvements to typed_splay_tree This patch adds foreach, max and min methods to class typed_splay_tree, along with the start of a selftest suite. gcc/ChangeLog: * Makefile.in (OBJS): Add typed-splay-tree.o. * selftest-run-tests.c (selftest::run_tests): Call typed_splay_tree_c_tests. * selftest.h (typed_splay_tree_c_tests): New decl. * typed-splay-tree.c: New file. * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef. (typed_splay_tree::max): New method. (typed_splay_tree::min): New method. (typed_splay_tree::foreach): New method. (typed_splay_tree::closure): New struct. (typed_splay_tree::inner_foreach_fn): New function. From-SVN: r239958 --- gcc/Makefile.in | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/Makefile.in') diff --git a/gcc/Makefile.in b/gcc/Makefile.in index eb5ab61..b38a0c1 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1542,6 +1542,7 @@ OBJS = \ tree-vectorizer.o \ tree-vrp.o \ tree.o \ + typed-splay-tree.o \ valtrack.o \ value-prof.o \ var-tracking.o \ -- cgit v1.1