aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-03-20 22:12:17 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-03-20 22:12:17 +0000
commit05fe5c6724457b820fb0750b3de07e90fba596f8 (patch)
tree83bc4cbf0edc515ca8eb86458aa33e1b942e66d3 /gcc/fold-const.c
parent0d13be1ef57bf3a836b42da6150eddccc4cc03a7 (diff)
downloadgcc-05fe5c6724457b820fb0750b3de07e90fba596f8.zip
gcc-05fe5c6724457b820fb0750b3de07e90fba596f8.tar.gz
gcc-05fe5c6724457b820fb0750b3de07e90fba596f8.tar.bz2
* fold-const.c (fold): Replace "expr" with "t".
From-SVN: r79761
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 58ed806..64c68b8 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -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;
}