projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ad8c4b
)
* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.
author
Per Bothner
<bothner@gcc.gnu.org>
Tue, 28 Feb 1995 23:06:49 +0000
(15:06 -0800)
committer
Per Bothner
<bothner@gcc.gnu.org>
Tue, 28 Feb 1995 23:06:49 +0000
(15:06 -0800)
From-SVN: r9097
gcc/tree.c
patch
|
blob
|
history
diff --git
a/gcc/tree.c
b/gcc/tree.c
index
cdbba0c
..
ff229ac
100644
(file)
--- 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);