This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix ICE in dump_flow_info dumping rtl
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Nov 2002 13:27:48 -0500 (EST)
- Subject: PATCH: Fix ICE in dump_flow_info dumping rtl
This fixes an ICE dumping rtl in the jump pass for g++.robertl/eb21.C.
Tested with no regressions on hppa64-hp-hpux11.11 and hppa-unknown-linux-gnu.
Ok for main?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2002-11-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
* cfg.c (dump_flow_info): Use max_reg_num () to determine the largest
pseudo register number plus 1.
Index: cfg.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/cfg.c,v
retrieving revision 1.35
diff -u -3 -p -r1.35 cfg.c
--- cfg.c 10 Aug 2002 18:00:54 -0000 1.35
+++ cfg.c 22 Nov 2002 19:34:02 -0000
@@ -502,6 +502,7 @@ dump_flow_info (file)
FILE *file;
{
int i;
+ int max_regno = max_reg_num ();
basic_block bb;
static const char * const reg_class_names[] = REG_CLASS_NAMES;