From: J"orn Rennecke Date: Sat, 28 Jun 2003 22:57:58 +0000 (+0000) Subject: flow.c (propagate_one_insn): Use proper test for a register being part of the return... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57856e4d3ad9a9e98e13f9f6b7cb38fb521b8618;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f09e8a4b854..8328b3ff8f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-27 J"orn Rennecke + + * flow.c (propagate_one_insn): Use proper test for a register + being part of the return value. + 2003-06-28 Kazu Hirata * config/avr/avr.c: Fix a comment typo. diff --git a/gcc/flow.c b/gcc/flow.c index e51d477c94f..658b279d542 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -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,