From: Richard Kenner Date: Sun, 6 Mar 1994 21:16:08 +0000 (-0500) Subject: (stupid_mark_refs): If setting reg_where_dead, set regs_live so we X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63cc239cc6f13c189205760de8768dd3689bfa60;p=gcc.git (stupid_mark_refs): If setting reg_where_dead, set regs_live so we don't later clobber it. From-SVN: r6705 --- diff --git a/gcc/stupid.c b/gcc/stupid.c index f9179f50098..aeee0d09204 100644 --- a/gcc/stupid.c +++ b/gcc/stupid.c @@ -1,5 +1,5 @@ /* Dummy data flow analysis for GNU compiler in nonoptimizing mode. - Copyright (C) 1987, 1991 Free Software Foundation, Inc. + Copyright (C) 1987, 1991, 1994 Free Software Foundation, Inc. This file is part of GNU CC. @@ -476,7 +476,10 @@ stupid_mark_refs (x, insn) insn so that it will conflict with any other outputs of this insn. */ if (reg_where_dead[regno] < where_born + 2) - reg_where_dead[regno] = where_born + 2; + { + reg_where_dead[regno] = where_born + 2; + regs_live[regno] = 1; + } /* Count the refs of this reg. */ reg_n_refs[regno]++;