aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-11-22 21:55:39 +0000
committerRichard Stallman <rms@gnu.org>1992-11-22 21:55:39 +0000
commit4135e766db246d29aba3f8d21feb18bb77d6b7b9 (patch)
tree9589c0d4288a2e0e1900636c08ea9bdbcf205249 /gcc
parent57916f6118b41fd3fd3284100e1945ea98005911 (diff)
downloadgcc-4135e766db246d29aba3f8d21feb18bb77d6b7b9.zip
gcc-4135e766db246d29aba3f8d21feb18bb77d6b7b9.tar.gz
gcc-4135e766db246d29aba3f8d21feb18bb77d6b7b9.tar.bz2
(pushdecl): Don't inherit DECL_INLINE when redeclaring the current function.
From-SVN: r2773
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 23762cb..5f5a191 100644
--- 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);