From: Eric Botcazou Date: Sat, 17 May 2008 13:32:23 +0000 (+0000) Subject: tree-inline.c (setup_one_parameter): Remove dead code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c7d304769bf867571977ed28df4a8f121d02371;p=gcc.git tree-inline.c (setup_one_parameter): Remove dead code. * tree-inline.c (setup_one_parameter): Remove dead code. From-SVN: r135470 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae051b34e8c..633a336c3d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-05-17 Eric Botcazou + + * tree-inline.c (setup_one_parameter): Remove dead code. + 2008-05-17 Eric Botcazou * fold-const.c (fold_unary) : Fold the cast into diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 1ba7b60f6f1..fb4f765a200 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1440,7 +1440,6 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn, { tree init_stmt; tree var; - tree var_sub; tree rhs = value; tree def = (gimple_in_ssa_p (cfun) ? gimple_default_def (id->src_cfun, p) : NULL); @@ -1496,23 +1495,10 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn, add_referenced_var (var); } - /* See if the frontend wants to pass this by invisible reference. If - so, our new VAR_DECL will have REFERENCE_TYPE, and we need to - replace uses of the PARM_DECL with dereferences. */ - if (TREE_TYPE (var) != TREE_TYPE (p) - && POINTER_TYPE_P (TREE_TYPE (var)) - && TREE_TYPE (TREE_TYPE (var)) == TREE_TYPE (p)) - { - insert_decl_map (id, var, var); - var_sub = build_fold_indirect_ref (var); - } - else - var_sub = var; - /* Register the VAR_DECL as the equivalent for the PARM_DECL; that way, when the PARM_DECL is encountered, it will be automatically replaced by the VAR_DECL. */ - insert_decl_map (id, p, var_sub); + insert_decl_map (id, p, var); /* Declare this new variable. */ TREE_CHAIN (var) = *vars; @@ -1572,7 +1558,7 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn, if (rhs == error_mark_node) { - insert_decl_map (id, p, var_sub); + insert_decl_map (id, p, var); return; }