diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-03-06 16:16:08 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-03-06 16:16:08 -0500 |
commit | 63cc239cc6f13c189205760de8768dd3689bfa60 (patch) | |
tree | abbf16548ea68df5dd6730f3ace245d3e28e7de0 | |
parent | 4d3067db2c09f1754c0faf2f155bde6212cf4608 (diff) | |
download | gcc-63cc239cc6f13c189205760de8768dd3689bfa60.zip gcc-63cc239cc6f13c189205760de8768dd3689bfa60.tar.gz gcc-63cc239cc6f13c189205760de8768dd3689bfa60.tar.bz2 |
(stupid_mark_refs): If setting reg_where_dead, set regs_live so we
don't later clobber it.
From-SVN: r6705
-rw-r--r-- | gcc/stupid.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/stupid.c b/gcc/stupid.c index f9179f5..aeee0d0 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]++; |