Commit 3d5c655f by Zdenek Dvorak Committed by Zdenek Dvorak

re PR middle-end/17906 (ICE in verify_ssa: PHI argument is not SSA_NAME, or invariant)

	PR tree-optimization/17906
	* tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
	copy non-gimple reg arguments.

From-SVN: r88828
parent fc7ca5fd
2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/17906
* tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
copy non-gimple reg arguments.
2004-10-09 Roger Sayle <roger@eyesopen.com>
PR rtl-optimization/17853
......
2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/17906
* gcc.c-torture/compile/pr17906.c: New.
2004-10-09 Stuart Hastings <stuart@apple.com>
Roger Sayle <roger@eyesopen.com>
......
struct usc_bigstack_t {};
void
usc_recressive_func(int cnt, int max, struct usc_bigstack_t bstack)
{
usc_recressive_func(cnt+1, max, bstack);
}
......@@ -870,7 +870,8 @@ tree_optimize_tail_calls_1 (bool opt_tailcalls)
for (param = DECL_ARGUMENTS (current_function_decl);
param;
param = TREE_CHAIN (param))
if (var_ann (param)
if (is_gimple_reg (param)
&& var_ann (param)
/* Also parameters that are only defined but never used need not
be copied. */
&& (var_ann (param)->default_def
......
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