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
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.
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;
}