projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d521a02
)
(staticp): A non-nested function is always static.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 16 Nov 1994 00:28:56 +0000
(19:28 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 16 Nov 1994 00:28:56 +0000
(19:28 -0500)
From-SVN: r8451
gcc/tree.c
patch
|
blob
|
history
diff --git
a/gcc/tree.c
b/gcc/tree.c
index 1787d0c6b9dcbbb79f04d0e61acb765bd6d960e5..d63a7a5a1bdf5fd81b71951e0be9f999edffd811 100644
(file)
--- a/
gcc/tree.c
+++ b/
gcc/tree.c
@@
-1915,11
+1915,9
@@
staticp (arg)
switch (TREE_CODE (arg))
{
case FUNCTION_DECL:
- /* Nested functions aren't static
. S
ince taking their address
+ /* Nested functions aren't static
, s
ince taking their address
involves a trampoline. */
- if (decl_function_context (arg) != 0)
- return 0;
- /* ... fall through ... */
+ return decl_function_context (arg) == 0;
case VAR_DECL:
return TREE_STATIC (arg) || DECL_EXTERNAL (arg);