(pushdecl): Check TREE_PUBLIC in addition to
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 31 Dec 1992 20:44:20 +0000 (12:44 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 31 Dec 1992 20:44:20 +0000 (12:44 -0800)
DECL_EXTERNAL decls when looking for duplicate external declarations.

From-SVN: r3013

gcc/c-decl.c

index 053241863f614a4c236d1b0183be4d7e47088efb..1ac39a8857109e2073ae58cc734767593444dc85 100644 (file)
@@ -1806,7 +1806,7 @@ pushdecl (x)
 
         We get warnings about inline functions where they are defined.
         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;