This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
untested changes (was re: patch applied to reload1.c)
- To: egcs-patches at cygnus dot com
- Subject: untested changes (was re: patch applied to reload1.c)
- From: "David S. Miller" <davem at dm dot cobaltmicro dot com>
- Date: Thu, 24 Sep 1998 23:19:07 -0700
- CC: egcs-bugs at cygnus dot com, amylaar at cygnus dot co dot uk
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)))