Commit a106c875 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

* cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].

From-SVN: r51589
parent 6e2d670b
2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
* cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2002-03-29 Richard Henderson <rth@redhat.com> 2002-03-29 Richard Henderson <rth@redhat.com>
PR target/5886 PR target/5886
......
...@@ -472,7 +472,7 @@ dump_flow_info (file) ...@@ -472,7 +472,7 @@ dump_flow_info (file)
if (REG_N_SETS (i)) if (REG_N_SETS (i))
fprintf (file, "; set %d time%s", REG_N_SETS (i), fprintf (file, "; set %d time%s", REG_N_SETS (i),
(REG_N_SETS (i) == 1) ? "" : "s"); (REG_N_SETS (i) == 1) ? "" : "s");
if (REG_USERVAR_P (regno_reg_rtx[i])) if (regno_reg_rtx[i] != NULL && REG_USERVAR_P (regno_reg_rtx[i]))
fprintf (file, "; user var"); fprintf (file, "; user var");
if (REG_N_DEATHS (i) != 1) if (REG_N_DEATHS (i) != 1)
fprintf (file, "; dies in %d places", REG_N_DEATHS (i)); fprintf (file, "; dies in %d places", REG_N_DEATHS (i));
...@@ -480,7 +480,8 @@ dump_flow_info (file) ...@@ -480,7 +480,8 @@ dump_flow_info (file)
fprintf (file, "; crosses 1 call"); fprintf (file, "; crosses 1 call");
else if (REG_N_CALLS_CROSSED (i)) else if (REG_N_CALLS_CROSSED (i))
fprintf (file, "; crosses %d calls", REG_N_CALLS_CROSSED (i)); fprintf (file, "; crosses %d calls", REG_N_CALLS_CROSSED (i));
if (PSEUDO_REGNO_BYTES (i) != UNITS_PER_WORD) if (regno_reg_rtx[i] != NULL
&& PSEUDO_REGNO_BYTES (i) != UNITS_PER_WORD)
fprintf (file, "; %d bytes", PSEUDO_REGNO_BYTES (i)); fprintf (file, "; %d bytes", PSEUDO_REGNO_BYTES (i));
class = reg_preferred_class (i); class = reg_preferred_class (i);
...@@ -497,7 +498,7 @@ dump_flow_info (file) ...@@ -497,7 +498,7 @@ dump_flow_info (file)
reg_class_names[(int) altclass]); reg_class_names[(int) altclass]);
} }
if (REG_POINTER (regno_reg_rtx[i])) if (regno_reg_rtx[i] != NULL && REG_POINTER (regno_reg_rtx[i]))
fprintf (file, "; pointer"); fprintf (file, "; pointer");
fprintf (file, ".\n"); fprintf (file, ".\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment