* tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.

From-SVN: r85791
This commit is contained in:
Richard Henderson 2004-08-10 20:56:58 -07:00 committed by Richard Henderson
parent b3f8d95d35
commit 7109c195f0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-08-10 Richard Henderson <rth@redhat.com>
* tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
2004-08-09 Mark Mitchell <mark@codesourcery.com>
* config.gcc (arm*-*-eabi*): New target.

View File

@ -143,7 +143,7 @@ suitable_for_tail_opt_p (void)
{
tree var = VARRAY_TREE (referenced_vars, i);
if (!TREE_STATIC (var)
if (!(TREE_STATIC (var) || DECL_EXTERNAL (var))
&& var_ann (var)->mem_tag_kind == NOT_A_TAG
&& is_call_clobbered (var))
return false;