aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/rtlanal.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0e22456..a610a8a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-21 Uros Bizjak <uros@kss-loka.si>
+
+ PR rtl-optimization/14851
+ * rtlanal.c (commutative_operand_precedence): Calculate
+ precedence of stripped constant.
+
2004-09-20 Jeff Law <law@redhat.com>
Jan Hubicka <jh@suse.cz>
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 21879d6..b529d76 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -2980,6 +2980,7 @@ commutative_operand_precedence (rtx op)
if (code == CONST_DOUBLE)
return -6;
op = avoid_constant_pool_reference (op);
+ code = GET_CODE (op);
switch (GET_RTX_CLASS (code))
{