Commit 030f365a by Richard Stallman

(pushdecl): DECL_EXTERNAL implies TREE_PUBLIC, so test just the latter.

From-SVN: r3412
parent 089e575b
......@@ -1808,7 +1808,7 @@ pushdecl (x)
We get warnings about inline functions where they are defined.
Avoid duplicate warnings where they are used. */
if ((DECL_EXTERNAL (x) || TREE_PUBLIC (x)) && ! DECL_INLINE (x))
if (TREE_PUBLIC (x) && ! DECL_INLINE (x))
{
tree decl;
......@@ -3277,6 +3277,7 @@ finish_decl (decl, init, asmspec_tree)
if (do_default)
error_with_decl (decl, "array size missing in `%s'");
else if (!pedantic && TREE_STATIC (decl))
/* ??? Perhaps should set TREE_PUBLIC here? */
DECL_EXTERNAL (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