From 024070cb34697faa48758f4096fa48def918f62e Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 21 Jun 2001 13:55:00 -0400 Subject: [PATCH] * integrate.c (mark_hard_reg_initial_vals): Check for NULL. From-SVN: r43487 --- gcc/ChangeLog | 2 ++ gcc/integrate.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f5f601be078..fe47e2f639c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2001-06-21 DJ Delorie + * integrate.c (mark_hard_reg_initial_vals): Check for NULL. + * integrate.c (ggc.h): Include. (initial_value_pair, initial_value_struct, setup_initial_hard_reg_value_integration): Add prototypes. diff --git a/gcc/integrate.c b/gcc/integrate.c index 7cc6002520c..88b8c9f1f88 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -2977,6 +2977,9 @@ mark_hard_reg_initial_vals (fun) struct initial_value_struct *ivs = fun->hard_reg_initial_vals; int i; + if (ivs == 0) + return; + for (i = 0; i < ivs->num_entries; i ++) { ggc_mark_rtx (ivs->entries[i].hard_reg); -- 2.30.2