diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-10-21 13:52:53 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-10-21 13:52:53 +0000 |
commit | e2ce9e83f737d1360167b010fe66fc50cf045307 (patch) | |
tree | 83e521f45ee2d239465d916880470d9b88ade14f /gcc/print-rtl.h | |
parent | 6652a944dcf82fe518090e8cb2629b473b70ac5c (diff) | |
download | gcc-e2ce9e83f737d1360167b010fe66fc50cf045307.zip gcc-e2ce9e83f737d1360167b010fe66fc50cf045307.tar.gz gcc-e2ce9e83f737d1360167b010fe66fc50cf045307.tar.bz2 |
Start adding selftests for print_rtx
gcc/ChangeLog:
* print-rtl-function.c (flag_compact): Move extern decl to...
* print-rtl.h (flag_compact): ...here.
* rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
(ASSERT_RTL_DUMP_EQ): New macro.
(selftest::test_dumping_regs): New function.
(selftest::test_dumping_insns): New function.
(selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
the insns.
(selftest::rtl_tests_c_tests): Call the new test functions.
From-SVN: r241405
Diffstat (limited to 'gcc/print-rtl.h')
-rw-r--r-- | gcc/print-rtl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/print-rtl.h b/gcc/print-rtl.h index 7a1dcaf..8dfba8b 100644 --- a/gcc/print-rtl.h +++ b/gcc/print-rtl.h @@ -20,6 +20,8 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_PRINT_RTL_H #define GCC_PRINT_RTL_H +extern bool flag_compact; + #ifdef BUFSIZ extern void print_rtl (FILE *, const_rtx); #endif |