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]

fix error in emit-rtl.c


Hello,

I made a small mistake when I made the patch to emit-rtl.c. I fixed the
core dump but in the process introduced another bug. The try_split
will never be called recursive anymore. Sorry.

	Herman.

Tue Nov  3 20:53:13 1998 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

	* emit-rtl.c (try_split): Fixed error in Oct 10 patch.


--- emit-rtl.c.org	Tue Nov  3 19:19:14 1998
+++ emit-rtl.c	Tue Nov  3 19:19:18 1998
@@ -2275,7 +2275,7 @@ try_split (pat, trial, last)
 	     immediately before a BARRIER.  */
 	  for (tem = NEXT_INSN (before); tem != after;
 	       tem = NEXT_INSN (tem))
-	    if (! INSN_DELETED_P (tem) && ! GET_CODE (tem) == BARRIER)
+	    if (! INSN_DELETED_P (tem) && GET_CODE (tem) != BARRIER)
 	      tem = try_split (PATTERN (tem), tem, 1);
 	}
       /* Avoid infinite loop if the result matches the original pattern.  */

-- 
-------------------------------------------------------------------------
Herman ten Brugge			Email:	Haj.Ten.Brugge@net.HCC.nl


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