From 63cc239cc6f13c189205760de8768dd3689bfa60 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 6 Mar 1994 16:16:08 -0500 Subject: [PATCH] (stupid_mark_refs): If setting reg_where_dead, set regs_live so we don't later clobber it. From-SVN: r6705 --- gcc/stupid.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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]++; -- 2.30.2