This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Don't print bb info when CFG isn't up to date
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Don't print bb info when CFG isn't up to date
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 29 Dec 2000 18:53:46 -0500 (EST)
The enclosed patch prevents miscellaneous garbage being printed after
the jump2 pass when dumping rtl. I have also noticed that print_rtl_with_bb
may cause a SEG fault if jump2 eliminates all the instructions in a
block.
Please review and install if ok.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2000-12-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
* toplev.c (rest_of_compilation): Don't print basic block information
when CFG isn't up to date.
--- toplev.c.orig Fri Dec 29 12:23:38 2000
+++ toplev.c Fri Dec 29 14:47:04 2000
@@ -3609,7 +3609,7 @@
/* CFG no longer kept up to date. */
- close_dump_file (DFI_jump2, print_rtl_with_bb, insns);
+ close_dump_file (DFI_jump2, print_rtl, insns);
timevar_pop (TV_JUMP);
}
@@ -3619,7 +3619,7 @@
MACHINE_DEPENDENT_REORG (insns);
- close_dump_file (DFI_mach, print_rtl_with_bb, insns);
+ close_dump_file (DFI_mach, print_rtl, insns);
ggc_collect ();
#endif
@@ -3635,7 +3635,7 @@
dbr_schedule (insns, rtl_dump_file);
- close_dump_file (DFI_dbr, print_rtl_with_bb, insns);
+ close_dump_file (DFI_dbr, print_rtl, insns);
timevar_pop (TV_DBR_SCHED);
ggc_collect ();
@@ -3656,7 +3656,7 @@
reg_to_stack (insns, rtl_dump_file);
- close_dump_file (DFI_stack, print_rtl_with_bb, insns);
+ close_dump_file (DFI_stack, print_rtl, insns);
timevar_pop (TV_REG_STACK);
ggc_collect ();