(rest_of_compilation): If function is extern inline,
authorRichard Stallman <rms@gnu.org>
Sat, 17 Jul 1993 04:48:10 +0000 (04:48 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 17 Jul 1993 04:48:10 +0000 (04:48 +0000)
even if we can't inline it, don't compile it.

From-SVN: r4931

gcc/toplev.c

index a4ba75e5806ae4420339892ca74ae040e9626dc8..dd89afbad1c128cd963429e6bcab7602d54c09ef 100644 (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;