* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.
authorPer Bothner <bothner@gcc.gnu.org>
Tue, 28 Feb 1995 23:06:49 +0000 (15:06 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Tue, 28 Feb 1995 23:06:49 +0000 (15:06 -0800)
From-SVN: r9097

gcc/tree.c

index cdbba0ce2a92943317e33b5e04607f1f980daa89..ff229ac9e2a3ecf63e1cdb9228ce2b57c760aaab 100644 (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);