From 1403633ef27ccefcd8a1f94e6b64cbfcd5f3f768 Mon Sep 17 00:00:00 2001 From: amylaar Date: Wed, 15 Nov 2006 13:16:41 +0000 Subject: [PATCH] 2006-11-15 Rask Ingemann Lambertsen J"orn Rennecke * combine.c (likely_spilled_retval_1): Fix masking operation. (likely_spilled_retval_p): Use proper pattern for call to likely_spilled_retval_1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118855 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/combine.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 25b18138b7a..9ebae9c2910 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-11-15 Rask Ingemann Lambertsen + J"orn Rennecke + + * combine.c (likely_spilled_retval_1): Fix masking operation. + (likely_spilled_retval_p): Use proper pattern for call to + likely_spilled_retval_1. + 2006-11-15 Bernd Schmidt * tree-ssa-loop-ivopts.c (determine_iv_costs): Fix formatting. diff --git a/gcc/combine.c b/gcc/combine.c index e85e9d1c477..7f75f9d6c4d 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -1659,7 +1659,7 @@ likely_spilled_retval_1 (rtx x, rtx set, void *data) new_mask >>= info->regno - regno; else new_mask <<= regno - info->regno; - info->mask &= new_mask; + info->mask &= ~new_mask; } /* Return nonzero iff part of the return value is live during INSN, and @@ -1695,7 +1695,8 @@ likely_spilled_retval_p (rtx insn) info.nregs = nregs; info.mask = mask; for (p = PREV_INSN (use); info.mask && p != insn; p = PREV_INSN (p)) - note_stores (PATTERN (insn), likely_spilled_retval_1, &info); + if (INSN_P (p)) + note_stores (PATTERN (p), likely_spilled_retval_1, &info); mask = info.mask; /* Check if any of the (probably) live return value registers is -- 2.11.4.GIT