This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Initial values vs inlined functions [was: PATCH: extra machine-dependent passes]
- To: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: Re: Initial values vs inlined functions [was: PATCH: extra machine-dependent passes]
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 21 Jun 2001 18:15:57 -0400 (EDT)
Regarding testing of the patch, I found that the following modification
was necessary for the PA. I am currently testing a patch to use DJ's
initial value patch on the PA.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
* integrate.c (mark_hard_reg_initial_vals): Return if there are no
hard register initial values to mark.
--- integrate.c.orig Thu Jun 21 12:55:16 2001
+++ integrate.c Thu Jun 21 16:12:02 2001
@@ -2977,6 +2977,9 @@
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);