aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-11-27 10:39:00 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2004-11-27 10:39:00 +0100
commitb78b8bd83ec46cfbed0addd238d9dc6f831959b1 (patch)
tree3c855f7b17093b28bc0452f6bb3ffd09773bdd73 /gcc/combine.c
parentfcfbdb74da074a4f5cbe0729db5437b11870c32e (diff)
downloadgcc-b78b8bd83ec46cfbed0addd238d9dc6f831959b1.zip
gcc-b78b8bd83ec46cfbed0addd238d9dc6f831959b1.tar.gz
gcc-b78b8bd83ec46cfbed0addd238d9dc6f831959b1.tar.bz2
re PR rtl-optimization/17825 (ICE in reg_bitfield_target_p)
PR rtl-optimization/17825 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new) or not. * gcc.c-torture/compile/20041119-1.c: New test. From-SVN: r91369
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index ce198bb..181a33e 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -3556,10 +3556,10 @@ subst (rtx x, rtx from, rtx to, int in_dest, int unique_copy)
/* If this is a register being set, ignore it. */
new = XEXP (x, i);
if (in_dest
- && (code == SUBREG || code == STRICT_LOW_PART
- || code == ZERO_EXTRACT)
&& i == 0
- && REG_P (new))
+ && (((code == SUBREG || code == ZERO_EXTRACT)
+ && REG_P (new))
+ || code == STRICT_LOW_PART))
;
else if (COMBINE_RTX_EQUAL_P (XEXP (x, i), from))