diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 215cc83eb7a7..d9fc4b30d44f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2008-04-08 Peter Bergner + + Revert + 2008-04-07 Peter Bergner + + PR middle-end/PR28690 + * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the + same precedence as REG_POINTER and MEM_POINTER operands. + 2008-04-08 Richard Guenther PR middle-end/35834 diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index f80d0ed1754e..93833a3e9518 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2898,8 +2898,6 @@ commutative_operand_precedence (rtx op) switch (GET_RTX_CLASS (code)) { case RTX_CONST_OBJ: - if (code == SYMBOL_REF) - return -1; if (code == CONST_INT) return -6; if (code == CONST_DOUBLE)