(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:
parent
82e9f5e9b2
commit
46dbb914d1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue