From: Richard Stallman Date: Sun, 22 Nov 1992 21:55:39 +0000 (+0000) Subject: (pushdecl): Don't inherit DECL_INLINE when redeclaring the current function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4135e766db246d29aba3f8d21feb18bb77d6b7b9;p=gcc.git (pushdecl): Don't inherit DECL_INLINE when redeclaring the current function. From-SVN: r2773 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 23762cb3720..5f5a19181f6 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);