Commit 7c7d3047 by Eric Botcazou Committed by Eric Botcazou

tree-inline.c (setup_one_parameter): Remove dead code.

	* tree-inline.c (setup_one_parameter): Remove dead code.

From-SVN: r135470
parent 1e17e15a
2008-05-17 Eric Botcazou <ebotcazou@adacore.com> 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
* tree-inline.c (setup_one_parameter): Remove dead code.
2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
* fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
a BIT_AND_EXPR only for an INTEGER_TYPE. a BIT_AND_EXPR only for an INTEGER_TYPE.
......
...@@ -1440,7 +1440,6 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn, ...@@ -1440,7 +1440,6 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn,
{ {
tree init_stmt; tree init_stmt;
tree var; tree var;
tree var_sub;
tree rhs = value; tree rhs = value;
tree def = (gimple_in_ssa_p (cfun) tree def = (gimple_in_ssa_p (cfun)
? gimple_default_def (id->src_cfun, p) : NULL); ? 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, ...@@ -1496,23 +1495,10 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn,
add_referenced_var (var); 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; /* Register the VAR_DECL as the equivalent for the PARM_DECL;
that way, when the PARM_DECL is encountered, it will be that way, when the PARM_DECL is encountered, it will be
automatically replaced by the VAR_DECL. */ automatically replaced by the VAR_DECL. */
insert_decl_map (id, p, var_sub); insert_decl_map (id, p, var);
/* Declare this new variable. */ /* Declare this new variable. */
TREE_CHAIN (var) = *vars; TREE_CHAIN (var) = *vars;
...@@ -1572,7 +1558,7 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn, ...@@ -1572,7 +1558,7 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn,
if (rhs == error_mark_node) if (rhs == error_mark_node)
{ {
insert_decl_map (id, p, var_sub); insert_decl_map (id, p, var);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment