From 987b67bc5502c1c826bcb6c6b41728d6e038c96f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 26 Jun 2005 21:21:34 +0000 Subject: builtins.c, [...]: Use fold_buildN instead of fold (buildN (...)). * builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c, convert.c, lambda-code.c, predict.c, tree-cfg.c, tree-complex.c, tree-data-ref.c, tree-if-conv.c, tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c, tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c, tree.c: Use fold_buildN instead of fold (buildN (...)). From-SVN: r101338 --- gcc/c-convert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/c-convert.c') diff --git a/gcc/c-convert.c b/gcc/c-convert.c index 718fd5a..8b78383 100644 --- a/gcc/c-convert.c +++ b/gcc/c-convert.c @@ -76,7 +76,7 @@ convert (tree type, tree expr) return expr; if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (TREE_TYPE (expr))) - return fold (build1 (NOP_EXPR, type, expr)); + return fold_build1 (NOP_EXPR, type, expr); if (TREE_CODE (TREE_TYPE (expr)) == ERROR_MARK) return error_mark_node; if (TREE_CODE (TREE_TYPE (expr)) == VOID_TYPE) @@ -103,9 +103,9 @@ convert (tree type, tree expr) /* If it returns a NOP_EXPR, we must fold it here to avoid infinite recursion between fold () and convert (). */ if (TREE_CODE (t) == NOP_EXPR) - return fold (build1 (NOP_EXPR, type, TREE_OPERAND (t, 0))); + return fold_build1 (NOP_EXPR, type, TREE_OPERAND (t, 0)); else - return fold (build1 (NOP_EXPR, type, t)); + return fold_build1 (NOP_EXPR, type, t); } if (code == POINTER_TYPE || code == REFERENCE_TYPE) return fold (convert_to_pointer (type, e)); -- cgit v1.1