* fold-const.c (fold): Replace "expr" with "t".
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 20 Mar 2004 22:12:17 +0000 (22:12 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 20 Mar 2004 22:12:17 +0000 (22:12 +0000)
From-SVN: r79761

gcc/ChangeLog
gcc/fold-const.c

index c0720ce275d75cbf4703b8e3887966944585d768..f3de3ff54c56f635bfb2467f5eb52dc95bf10a9d 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * fold-const.c (fold): Replace "expr" with "t".
+
 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
 
        PR c/12373
index 58ed80613756be152584f1fa687291f002369417..64c68b8eb92e62fc99c10f87a1a8875a34617096 100644 (file)
@@ -7934,7 +7934,7 @@ fold (tree expr)
            return pedantic_non_lvalue (tem);
          return t;
        }
-      if (operand_equal_p (arg1, TREE_OPERAND (expr, 2), 0))
+      if (operand_equal_p (arg1, TREE_OPERAND (t, 2), 0))
        return pedantic_omit_one_operand (type, arg1, arg0);
 
       /* If we have A op B ? A : C, we may be able to convert this to a
@@ -8312,12 +8312,12 @@ fold (tree expr)
 
     case CALL_EXPR:
       /* Check for a built-in function.  */
-      if (TREE_CODE (TREE_OPERAND (expr, 0)) == ADDR_EXPR
-         && (TREE_CODE (TREE_OPERAND (TREE_OPERAND (expr, 0), 0))
+      if (TREE_CODE (TREE_OPERAND (t, 0)) == ADDR_EXPR
+         && (TREE_CODE (TREE_OPERAND (TREE_OPERAND (t, 0), 0))
              == FUNCTION_DECL)
-         && DECL_BUILT_IN (TREE_OPERAND (TREE_OPERAND (expr, 0), 0)))
+         && DECL_BUILT_IN (TREE_OPERAND (TREE_OPERAND (t, 0), 0)))
        {
-         tree tmp = fold_builtin (expr);
+         tree tmp = fold_builtin (t);
          if (tmp)
            return tmp;
        }