(rest_of_compilation): If function is extern inline,

even if we can't inline it, don't compile it.

From-SVN: r4931
This commit is contained in:
Richard Stallman 1993-07-17 04:48:10 +00:00
parent 82e9f5e9b2
commit 46dbb914d1
1 changed files with 5 additions and 0 deletions

View File

@ -2253,6 +2253,11 @@ rest_of_compilation (decl)
if (warn_inline && specd)
warning_with_decl (decl, lose);
DECL_INLINE (decl) = 0;
/* Don't really compile an extern inline function.
If we can't make it inline, pretend
it was only declared. */
if (DECL_EXTERNAL (decl))
goto exit_rest_of_compilation;
}
else
DECL_INLINE (decl) = 1;