From 46dbb914d13f1f05126ae7bc1c60971eed255b1c Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 17 Jul 1993 04:48:10 +0000 Subject: [PATCH] (rest_of_compilation): If function is extern inline, even if we can't inline it, don't compile it. From-SVN: r4931 --- gcc/toplev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/toplev.c b/gcc/toplev.c index a4ba75e5806..dd89afbad1c 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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; -- 2.30.2