diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1995-02-28 15:06:49 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1995-02-28 15:06:49 -0800 |
commit | d72471fd1a739031934cd0e4b6064759ccfc7b16 (patch) | |
tree | fc9bc3eff5c42fa1779643f65fa32c27c9c631d6 /gcc | |
parent | 7ad8c4bf113ee762b5f4696e8622640d3453f2c9 (diff) | |
download | gcc-d72471fd1a739031934cd0e4b6064759ccfc7b16.tar.gz |
* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.
From-SVN: r9097
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree.c | 2 |
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); |