* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.
From-SVN: r9097
This commit is contained in:
parent
7ad8c4bf11
commit
d72471fd1a
|
@ -1969,7 +1969,7 @@ staticp (arg)
|
||||||
case FUNCTION_DECL:
|
case FUNCTION_DECL:
|
||||||
/* Nested functions aren't static, since taking their address
|
/* Nested functions aren't static, since taking their address
|
||||||
involves a trampoline. */
|
involves a trampoline. */
|
||||||
return decl_function_context (arg) == 0;
|
return ! FUNCTION_NEEDS_STATIC_CHAIN (arg);
|
||||||
case VAR_DECL:
|
case VAR_DECL:
|
||||||
return TREE_STATIC (arg) || DECL_EXTERNAL (arg);
|
return TREE_STATIC (arg) || DECL_EXTERNAL (arg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue