This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Initial values vs inlined functions [was: PATCH: extra machine-dependent passes]


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]