Patch to allow machine depenendend reorgs to dump extra info
Nick Clifton
nickc@cygnus.com
Fri Aug 13 02:23:00 GMT 1999
Hi Guys,
I would like to submit the small patch below for approval. It
simply changes the RTL dumping code for the machine dependent
reorganisation pass (if there is one), so that the pass itself can
put extra information into the dump file.
Cheers
Nick
Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
* toplev.c (rest_of_compilation): Allow machine dependent
reorganisation pass to place information into the RTL dump
file if it so wishes.
*** toplev.c.sav Fri Aug 13 10:18:26 1999
--- toplev.c Fri Aug 13 10:19:01 1999
*************** rest_of_compilation (decl)
*** 4321,4331 ****
/* If a machine dependent reorganization is needed, call it. */
#ifdef MACHINE_DEPENDENT_REORG
MACHINE_DEPENDENT_REORG (insns);
if (mach_dep_reorg_dump)
{
! dump_rtl (".mach", decl, print_rtl_with_bb, insns);
if (graph_dump_format != no_graph)
print_rtl_graph_with_bb (dump_base_name, ".mach", insns);
}
--- 4321,4334 ----
/* If a machine dependent reorganization is needed, call it. */
#ifdef MACHINE_DEPENDENT_REORG
+ if (mach_dep_reorg_dump)
+ open_dump_file (".mach", decl_printable_name (decl, 2));
+
MACHINE_DEPENDENT_REORG (insns);
if (mach_dep_reorg_dump)
{
! close_dump_file (print_rtl_with_bb, insns);
if (graph_dump_format != no_graph)
print_rtl_graph_with_bb (dump_base_name, ".mach", insns);
}
More information about the Gcc-patches
mailing list