From: Geoffrey Keating Date: Thu, 23 Aug 2001 05:32:09 +0000 (+0000) Subject: reload1.c (emit_reload_insns): Don't look for notes on a NULL store_insn. X-Git-Tag: prereleases/libstdc++-3.0.95~2475 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1558b970d0f847158f7cb10cfb132074ba519cac;p=thirdparty%2Fgcc.git reload1.c (emit_reload_insns): Don't look for notes on a NULL store_insn. * reload1.c (emit_reload_insns): Don't look for notes on a NULL store_insn. From-SVN: r45120 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 827c958baeff..f92e69b15291 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-22 Geoffrey Keating + + * reload1.c (emit_reload_insns): Don't look for notes + on a NULL store_insn. + 2001-08-22 Kaveh R. Ghazi * sparc.c (uns_small_int): Don't reference a constant >32-bit. diff --git a/gcc/reload1.c b/gcc/reload1.c index f9fc5287a1fc..51a2ba90f9b9 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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) {