summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1995-02-28 15:06:49 -0800
committerPer Bothner <bothner@gcc.gnu.org>1995-02-28 15:06:49 -0800
commitd72471fd1a739031934cd0e4b6064759ccfc7b16 (patch)
treefc9bc3eff5c42fa1779643f65fa32c27c9c631d6 /gcc
parent7ad8c4bf113ee762b5f4696e8622640d3453f2c9 (diff)
downloadgcc-d72471fd1a739031934cd0e4b6064759ccfc7b16.tar.gz
* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.
From-SVN: r9097
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index cdbba0ce2a9..ff229ac9e2a 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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);