* tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
From-SVN: r85791
This commit is contained in:
parent
b3f8d95d35
commit
7109c195f0
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user