From 40af58948573d619b5dfceff3ba5463771a48d50 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 4 Nov 2016 17:05:38 +0000 Subject: Start adding target-specific selftests gcc/ChangeLog: * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h". (selftest::ix86_test_dumping_hard_regs): New function. (selftest::ix86_run_selftests): New function. (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to selftest::ix86_run_selftests. * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New. * doc/tm.texi: Regenerate * selftest-rtl.h: New file. * rtl-tests.c: Include "selftest-rtl.h". (selftest::assert_rtl_dump_eq): Make non-static. (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h. (selftest::test_dumping_regs): Update comment. * selftest-run-tests.c: Include "target.h". (selftest::run_tests): If non-NULL, call targetm.run_target_selftests. * target.def (run_target_selftests): New hook. From-SVN: r241851 --- gcc/doc/tm.texi.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/doc/tm.texi.in') diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 9e5b456..102ad71 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -8309,3 +8309,5 @@ All and all it does not take long to convert ports that the maintainer is familiar with. @end defmac + +@hook TARGET_RUN_TARGET_SELFTESTS -- cgit v1.1