OSDN Git Service

* flow.c (propagate_one_insn): Use proper test for a register
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2003 22:57:58 +0000 (22:57 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2003 22:57:58 +0000 (22:57 +0000)
being part of the return value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68653 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/flow.c

index f09e8a4..8328b3f 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 e51d477..658b279 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,