diff options
author | J"orn Rennecke <joern.rennecke@superh.com> | 2003-06-28 22:57:58 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2003-06-28 23:57:58 +0100 |
commit | 57856e4d3ad9a9e98e13f9f6b7cb38fb521b8618 (patch) | |
tree | d8c6ed5f9932f7a40aa5fc28d793822f4c3032f6 /gcc | |
parent | 81a6489eb6ac5528b0939e18fadf406a82b33c54 (diff) | |
download | gcc-57856e4d3ad9a9e98e13f9f6b7cb38fb521b8618.zip gcc-57856e4d3ad9a9e98e13f9f6b7cb38fb521b8618.tar.gz gcc-57856e4d3ad9a9e98e13f9f6b7cb38fb521b8618.tar.bz2 |
flow.c (propagate_one_insn): Use proper test for a register being part of the return value.
* flow.c (propagate_one_insn): Use proper test for a register
being part of the return value.
From-SVN: r68653
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/flow.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f09e8a4..8328b3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. @@ -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, |