(rest_of_compilation): When an `extern inline' is not really inline...
authorRichard Stallman <rms@gnu.org>
Sat, 30 Oct 1993 08:33:12 +0000 (08:33 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 30 Oct 1993 08:33:12 +0000 (08:33 +0000)
(rest_of_compilation): When an `extern inline' is not
really inline, clear DECL_INITIAL so we don't complain about
a subsequent non-extern definition.

From-SVN: r5942

gcc/toplev.c

index 739b8d51551168a643f9477fde45da21880268ec..31297ff08d859a1ce56b7a529714dcb2ad310416 100644 (file)
@@ -2339,7 +2339,10 @@ rest_of_compilation (decl)
                          If we can't make it inline, pretend
                          it was only declared.  */
                       if (DECL_EXTERNAL (decl))
-                        goto exit_rest_of_compilation;
+                        {
+                          DECL_INITIAL (decl) = 0;
+                          goto exit_rest_of_compilation;
+                        }
                     }
                   else
                     DECL_INLINE (decl) = 1;