projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57916f6
)
(pushdecl): Don't inherit DECL_INLINE when redeclaring the current function.
author
Richard Stallman
<rms@gnu.org>
Sun, 22 Nov 1992 21:55:39 +0000
(21:55 +0000)
committer
Richard Stallman
<rms@gnu.org>
Sun, 22 Nov 1992 21:55:39 +0000
(21:55 +0000)
From-SVN: r2773
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index 23762cb3720314a38bf955a67496b95b3b293433..5f5a19181f6f0a9f97b40fa1865eadf2626ce7ac 100644
(file)
--- a/
gcc/c-decl.c
+++ b/
gcc/c-decl.c
@@
-1950,7
+1950,8
@@
pushdecl (x)
if (DECL_INLINE (oldglobal))
{
DECL_INLINE (x) = DECL_INLINE (oldglobal);
- DECL_INITIAL (x) = DECL_INITIAL (oldglobal);
+ DECL_INITIAL (x) = (current_function_decl == oldglobal
+ ? 0 : DECL_INITIAL (oldglobal));
DECL_SAVED_INSNS (x) = DECL_SAVED_INSNS (oldglobal);
DECL_ARGUMENTS (x) = DECL_ARGUMENTS (oldglobal);
DECL_RESULT (x) = DECL_RESULT (oldglobal);