flow.c (propagate_one_insn): Use proper test for a register being part of the return...
authorJ"orn Rennecke <joern.rennecke@superh.com>
Sat, 28 Jun 2003 22:57:58 +0000 (22:57 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Sat, 28 Jun 2003 22:57:58 +0000 (23:57 +0100)
* flow.c (propagate_one_insn): Use proper test for a register
being part of the return value.

From-SVN: r68653

gcc/ChangeLog
gcc/flow.c

index f09e8a4b85484888961272e5e1af2974bec1b1c1..8328b3ff8f3c0bfb93b9eab258c869054c6bab3e 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-27  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * flow.c (propagate_one_insn): Use proper test for a register
+       being part of the return value.
+
 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/avr/avr.c: Fix a comment typo.
index e51d477c94f996ab7b93dade5bc045c87474510d..658b279d542ab8e288ab43389a3b0d1e88266d6b 100644 (file)
@@ -1808,7 +1808,9 @@ propagate_one_insn (pbi, insn)
            if (TEST_HARD_REG_BIT (regs_invalidated_by_call, i)
                && ! (sibcall_p
                      && REGNO_REG_SET_P (live_at_end, i)
-                     && !FUNCTION_VALUE_REGNO_P (i)))
+                     && ! refers_to_regno_p (i, i+1,
+                                             current_function_return_rtx,
+                                             (rtx *) 0)))
              {
                /* We do not want REG_UNUSED notes for these registers.  */
                mark_set_1 (pbi, CLOBBER, regno_reg_rtx[i], cond, insn,