Commit 27937f46 by Richard Stallman

(rest_of_compilation): When an `extern inline' is not really inline...

(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
parent 1cf94605
...@@ -2339,8 +2339,11 @@ rest_of_compilation (decl) ...@@ -2339,8 +2339,11 @@ rest_of_compilation (decl)
If we can't make it inline, pretend If we can't make it inline, pretend
it was only declared. */ it was only declared. */
if (DECL_EXTERNAL (decl)) if (DECL_EXTERNAL (decl))
{
DECL_INITIAL (decl) = 0;
goto exit_rest_of_compilation; goto exit_rest_of_compilation;
} }
}
else else
DECL_INLINE (decl) = 1; DECL_INLINE (decl) = 1;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment