Support running the selftests under valgrind
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 11 Jul 2016 14:39:14 +0000 (14:39 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 11 Jul 2016 14:39:14 +0000 (14:39 +0000)
commit9e34db2e031f28f7cc622b6955c241b47bbc081e
tree21b739dd274b2a95675872c3a30088a41bbab009
parentf51606c71ab31d906d499108b1a2b8d8e45d9e06
Support running the selftests under valgrind

gcc/ChangeLog:
* Makefile.in (selftest-valgrind): New phony target.
* function-tests.c (selftest::build_cfg): Delete pass instances
created by the test.
(selftest::convert_to_ssa): Likewise.
(selftest::test_expansion_to_rtl): Likewise.
* tree-cfg.c (selftest::test_linear_chain): Release dominator
vectors.
(selftest::test_diamond): Likewise.

From-SVN: r238209
gcc/ChangeLog
gcc/Makefile.in
gcc/function-tests.c
gcc/tree-cfg.c