* reload1.c (emit_reload_insns): Don't look for notes
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2001 05:32:09 +0000 (05:32 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2001 05:32:09 +0000 (05:32 +0000)
on a NULL store_insn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45120 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload1.c

index 827c958..f92e69b 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
+
+       * reload1.c (emit_reload_insns): Don't look for notes
+       on a NULL store_insn.
+
 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * sparc.c (uns_small_int): Don't reference a constant >32-bit.
index f9fc528..51a2ba9 100644 (file)
@@ -7288,7 +7288,7 @@ emit_reload_insns (chain)
                     necessarily checked exactly in the code that moves
                     notes, so just check both locations.  */
                  rtx note = find_regno_note (insn, REG_DEAD, src_regno);
-                 if (! note)
+                 if (! note && store_insn)
                    note = find_regno_note (store_insn, REG_DEAD, src_regno);
                  while (nr-- > 0)
                    {