* fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Tue, 16 Aug 2005 22:05:14 +0000 (22:05 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Tue, 16 Aug 2005 22:05:14 +0000 (22:05 +0000)
From-SVN: r103176

gcc/ChangeLog
gcc/fold-const.c

index c9b47e52fa66b616b8050562e5f0eca5264d6137..2b40c63ad6f7dc6f41b34ace2fbddcdb206b830f 100644 (file)
@@ -1,3 +1,7 @@
+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
index 84dad8b7fb7625135f7d144157d5d97806e9bde9..1ce20b94e56a685ba5dc6247416b9159cc80ac58 100644 (file)
@@ -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: