* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.

From-SVN: r9097
This commit is contained in:
Per Bothner 1995-02-28 15:06:49 -08:00
parent 7ad8c4bf11
commit d72471fd1a
1 changed files with 1 additions and 1 deletions

View File

@ -1969,7 +1969,7 @@ staticp (arg)
case FUNCTION_DECL:
/* Nested functions aren't static, since taking their address
involves a trampoline. */
return decl_function_context (arg) == 0;
return ! FUNCTION_NEEDS_STATIC_CHAIN (arg);
case VAR_DECL:
return TREE_STATIC (arg) || DECL_EXTERNAL (arg);