From 46215df510806254468c26b4fc0ae411246bb1b6 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 18 Oct 2016 20:06:10 -0400 Subject: [PATCH 04/20] FIXME: hack in usage of print_rtx_function for RTL dumps --- gcc/passes.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/passes.c b/gcc/passes.c index e78f9ed..345910d 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -59,6 +59,7 @@ along with GCC; see the file COPYING3. If not see #include "cfgrtl.h" #include "tree-ssa-live.h" /* For remove_unused_locals. */ #include "tree-cfgcleanup.h" +#include "print-rtl.h" using namespace gcc; @@ -1751,7 +1752,11 @@ execute_function_dump (function *fn, void *data) if (fn->curr_properties & PROP_trees) dump_function_to_file (fn->decl, dump_file, dump_flags); else +#if 0 print_rtl_with_bb (dump_file, get_insns (), dump_flags); +#else + print_rtx_function (dump_file, cfun, true); +#endif /* Flush the file. If verification fails, we won't be able to close the file before aborting. */ -- 1.8.5.3