* fold-const.c (fold_binary): Use code instead of t.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 6 Mar 2005 14:18:08 +0000 (14:18 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 6 Mar 2005 14:18:08 +0000 (14:18 +0000)
From-SVN: r95970

gcc/ChangeLog
gcc/fold-const.c

index c26c00824d14a8be6af743ba2a89814dec3db49f..4e8e1e8233a690572341145d413d2f51aaca2b2b 100644 (file)
@@ -4,6 +4,8 @@
        (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
        SUBREG and MEM, respectively.
 
+       * fold-const.c (fold_binary): Use code instead of t.
+
 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
 
        * fold-const.c (fold_binary): Avoid directly using the original
index 2577da2690e07571a6a1dfc7d6ed1cfbca6bdcdf..c6105dc8fa25b98114e9df8049dcc7c84672c74f 100644 (file)
@@ -8727,7 +8727,7 @@ fold_binary (tree expr)
       /* If this is a comparison of two exprs that look like an
         ARRAY_REF of the same object, then we can fold this to a
         comparison of the two offsets.  */
-      if (COMPARISON_CLASS_P (t))
+      if (TREE_CODE_CLASS (code) == tcc_comparison)
        {
          tree base0, offset0, base1, offset1;