From 8d5e6e2527f07e6cfda3b62f1fd826006931d551 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 27 May 2000 15:21:17 +0000 Subject: tree.h (TREE_CODE_LENGTH): New macro. * tree.h (TREE_CODE_LENGTH): New macro. * c-common.c (c_find_base_decl): Use it. * expr.c (safe_from_p): Likewise. * print-tree.c (print_node): Likewise. * tree.c (make_node, copy_node, get_identifier): Likewie. (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise. (build, build_nt, build_parse_node, simple_cst_equal): Likewise. * fold-const.c (make_range): Likewise. (fold): Likewise; also use first_rtl_op. * c-iterate.c (collect_iterators): Use first_rtl_op. * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS. Use IS_EXPR_CODE_CLASS. (preexpand_calls): Likewise. * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op and TREE_CODE_LENGTH. * stmt.c (warn_if_unused_value): If no operands, no unused value. * ch/lang.c (deep_const_expr): Use first_rtl_op. * ch/satisfy.c (satisfy): Use TREE_CODE_LENGTH. * cp/method.c (mangle_expression): Use TREE_CODE_LENGTH. * cp/tree.c (break_out_calls, build_min_nt): Use TREE_CODE_LENGTH. (built_min, cp_tree_equal): Likewise. From-SVN: r34203 --- gcc/c-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-common.c') diff --git a/gcc/c-common.c b/gcc/c-common.c index 4631417..6989d40 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -3297,7 +3297,7 @@ c_find_base_decl (t) case '1': case '2': case '3': - for (i = tree_code_length [(int) TREE_CODE (t)]; --i >= 0;) + for (i = TREE_CODE_LENGTH (TREE_CODE (t)); --i >= 0;) { tree d = c_find_base_decl (TREE_OPERAND (t, i)); if (d) -- cgit v1.1