Commit 3a69437a by Volker Reichelt Committed by Volker Reichelt

* fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.

From-SVN: r103176
parent 8e1c3891
2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
2005-08-16 Geoffrey Keating <geoffk@apple.com>
* doc/invoke.texi (Precompiled Headers): Document some more options
......
......@@ -10115,13 +10115,7 @@ fold_ternary (enum tree_code code, tree type, tree op0, tree op1, tree op2)
if (TREE_CODE (op0) == ADDR_EXPR
&& TREE_CODE (TREE_OPERAND (op0, 0)) == FUNCTION_DECL
&& DECL_BUILT_IN (TREE_OPERAND (op0, 0)))
{
tree fndecl = TREE_OPERAND (op0, 0);
tree arglist = op1;
tree tmp = fold_builtin (fndecl, arglist, false);
if (tmp)
return tmp;
}
return fold_builtin (TREE_OPERAND (op0, 0), op1, false);
return NULL_TREE;
case BIT_FIELD_REF:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment