Commit 4e708ff7 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/43572 (FAIL: gfortran.dg/PR19872.f execution test;…

re PR tree-optimization/43572 (FAIL: gfortran.dg/PR19872.f execution test; formatted read - wrong numbers)

2010-04-23  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43572
	* tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.

From-SVN: r158671
parent 7a38245d
2010-04-23 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43572
* tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
2010-04-23 Richard Guenther <rguenther@suse.de>
PR lto/43455
* tree-inline.c (tree_can_inline_p): Also check compatibility
of return types.
......
......@@ -458,7 +458,8 @@ find_tail_calls (basic_block bb, struct tailcall **ret)
to local variables. */
FOR_EACH_REFERENCED_VAR (var, rvi)
{
if (!is_global_var (var)
if (TREE_CODE (var) != PARM_DECL
&& auto_var_in_fn_p (var, cfun->decl)
&& ref_maybe_used_by_stmt_p (call, var))
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