From: Richard Kenner Date: Sat, 24 Jul 2004 01:35:04 +0000 (+0000) Subject: tree.def (VIEW_CONVERT_EXPR): Change to class 'r'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4626c433188f72608c58c00619349b322fafb406;p=gcc.git tree.def (VIEW_CONVERT_EXPR): Change to class 'r'. * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'. * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New. From-SVN: r85111 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a83c0a4cf6..cd60d32748a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-07-23 Richard Kenner + * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'. + * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New. + * gimplify.c (gimplify_compound_lval): Check for no handled operations, rather than checking for explicit list of nodes. (is_gimple_addr_expr_arg_or_indirect): New function. diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 6f632e4447e..7e7829e52e9 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -978,6 +978,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags, voperands_t prev_vops) case TRUTH_NOT_EXPR: case BIT_FIELD_REF: + case VIEW_CONVERT_EXPR: do_unary: get_expr_operands (stmt, &TREE_OPERAND (expr, 0), flags, prev_vops); return; diff --git a/gcc/tree.def b/gcc/tree.def index 80e42e0f862..5602c704bd6 100644 --- a/gcc/tree.def +++ b/gcc/tree.def @@ -709,7 +709,7 @@ DEFTREECODE (NON_LVALUE_EXPR, "non_lvalue_expr", '1', 1) case no actual data motion may occur. TREE_ADDRESSABLE will be set in this case and GCC must abort if it could not do the operation without generating insns. */ -DEFTREECODE (VIEW_CONVERT_EXPR, "view_convert_expr", '1', 1) +DEFTREECODE (VIEW_CONVERT_EXPR, "view_convert_expr", 'r', 1) /* Represents something we computed once and will use multiple times. First operand is that expression. After it is evaluated once, it