diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-08-15 02:24:41 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-08-15 02:24:41 +0000 |
commit | 53fb4de37502c525b7afef2401350a0797fd2373 (patch) | |
tree | ebacdfeed0851e1d26ae03ca28fdcefe93df6304 /gcc/c-decl.c | |
parent | b9413dbc44b6afbb28f88d9ed2f9716528fce94c (diff) | |
download | gcc-53fb4de37502c525b7afef2401350a0797fd2373.zip gcc-53fb4de37502c525b7afef2401350a0797fd2373.tar.gz gcc-53fb4de37502c525b7afef2401350a0797fd2373.tar.bz2 |
c-common.c (shorten_compare, [...]): Replace calls to build with calls to buildN.
* c-common.c (shorten_compare, pointer_int_sum,
c_common_truthvalue_conversion, boolean_increment): Replace calls
to build with calls to buildN.
* c-decl.c (complete_array_type, grokdeclarator): Likewise.
* c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
gimplify_switch_stmt): Likewise.
* c-typeck.c (default_function_array_conversion,
build_component_ref, build_array_ref, build_function_call,
pointer_diff, build_unary_op, build_conditional_expr,
build_compound_expr, build_modify_expr, c_finish_goto_label,
c_finish_goto_ptr, c_finish_return, c_finish_loop,
c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
build_binary_op): Likewise.
From-SVN: r86018
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 82e42f0..696fec8 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3072,7 +3072,7 @@ finish_decl (tree decl, tree init, tree asmspec_tree) && STATEMENT_LIST_HAS_LABEL (cur_stmt_list)) { tree bind; - bind = build (BIND_EXPR, void_type_node, NULL, NULL, NULL); + bind = build3 (BIND_EXPR, void_type_node, NULL, NULL, NULL); TREE_SIDE_EFFECTS (bind) = 1; add_stmt (bind); BIND_EXPR_BODY (bind) = push_stmt_list (); @@ -3281,8 +3281,8 @@ complete_array_type (tree type, tree initial_value, int do_default) if (TREE_PURPOSE (elts)) maxindex = TREE_PURPOSE (elts); else - maxindex = fold (build (PLUS_EXPR, integer_type_node, - maxindex, integer_one_node)); + maxindex = fold (build2 (PLUS_EXPR, integer_type_node, + maxindex, integer_one_node)); } } else @@ -4103,9 +4103,9 @@ grokdeclarator (tree declarator, tree declspecs, Do the calculation in index_type, so that if it is a variable the computations will be done in the proper mode. */ - itype = fold (build (MINUS_EXPR, index_type, - convert (index_type, size), - convert (index_type, size_one_node))); + itype = fold (build2 (MINUS_EXPR, index_type, + convert (index_type, size), + convert (index_type, size_one_node))); /* If that overflowed, the array is too big. ??? While a size of INT_MAX+1 technically shouldn't |