Commit d72471fd by Per Bothner

* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.

From-SVN: r9097
parent 7ad8c4bf
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment