Commit feaf9c71 by Jim Wilson

(pushdecl): Check TREE_PUBLIC in addition to

DECL_EXTERNAL decls when looking for duplicate external declarations.

From-SVN: r3013
parent 5b01bc66
...@@ -1806,7 +1806,7 @@ pushdecl (x) ...@@ -1806,7 +1806,7 @@ pushdecl (x)
We get warnings about inline functions where they are defined. We get warnings about inline functions where they are defined.
Avoid duplicate warnings where they are used. */ Avoid duplicate warnings where they are used. */
if (DECL_EXTERNAL (x) && ! DECL_INLINE (x)) if ((DECL_EXTERNAL (x) || TREE_PUBLIC (x)) && ! DECL_INLINE (x))
{ {
tree decl; tree decl;
......
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