(pushdecl): Don't inherit DECL_INLINE when redeclaring the current function.
authorRichard Stallman <rms@gnu.org>
Sun, 22 Nov 1992 21:55:39 +0000 (21:55 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 22 Nov 1992 21:55:39 +0000 (21:55 +0000)
From-SVN: r2773

gcc/c-decl.c

index 23762cb3720314a38bf955a67496b95b3b293433..5f5a19181f6f0a9f97b40fa1865eadf2626ce7ac 100644 (file)
@@ -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);