tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Mon, 5 Jul 2004 16:39:15 +0000 (16:39 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 5 Jul 2004 16:39:15 +0000 (12:39 -0400)
commit48eb4e53cdecda5736763287719b422e58c1058f
tree42718a212a3b7e4859ae71b0215c10ef83e6404c
parent402a3dec96e3ca23e00e78279e6dde6c2df6ef52
tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.

* tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
* gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
(gimplify_target_expr, gimplify_expr): Likewise.
(copy_if_shared_r): No longer need special case for BIND_EXPR.
(unshare_body, unvisit_body): Only look at nested if BODY_P is
whole function.
(gimplify_compound_lval): See if we can strip any useless conversion.
(gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
from RHS, not LHS.
(gimplify_modify_expr_to_memset): Likewise.
(gimplify_expr, case CONSTRUCTOR): Handle use as statement.
* tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
(declare_inline_vars): Likewise.
(walk_type_fields): New function.
(walk_tree): Use it.
* tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.

From-SVN: r84121
gcc/ChangeLog
gcc/gimplify.c
gcc/tree-inline.c
gcc/tree-nested.c
gcc/tree.h