diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2004-10-09 22:19:37 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2004-10-09 20:19:37 +0000 |
commit | 3d5c655fab0ba7e2311cf527b84821296705cef1 (patch) | |
tree | 9e4a45afb3ae070db479c030f1165657fb8f319d /gcc/tree-tailcall.c | |
parent | fc7ca5fd397370a7c606e631b399e43b22397ef9 (diff) | |
download | gcc-3d5c655fab0ba7e2311cf527b84821296705cef1.tar.gz |
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
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r-- | gcc/tree-tailcall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 34ac8ee5834..00fdea301ad 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -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 |