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]

untested changes (was re: patch applied to reload1.c)



There is no way these changes were tested before being installed.

I've just checked in the following fix, but I fear there may be more
hidden treasure in these reload changes since even this obvious crash
did not get caught.

Thu Sep 24 22:12:16 1998  David S. Miller  <davem@pierdol.cobaltmicro.com>

	* reload1.c (reload_combine): Initialize set before using.

--- reload1.c.~2~	Thu Sep 24 14:59:10 1998
+++ reload1.c	Thu Sep 24 22:08:06 1998
@@ -9274,7 +9274,7 @@
 
 	 First, check that we have (set (REGX) (PLUS (REGX) (REGY)))
 	 and that we know all uses of REGX before it dies.  */
-      if (set
+      if ((set = single_set (insn)) != NULL_RTX
 	  && GET_CODE (SET_DEST (set)) == REG
 	  && (HARD_REGNO_NREGS (REGNO (SET_DEST (set)),
 				GET_MODE (SET_DEST (set)))


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