From: Jim Wilson Date: Thu, 31 Dec 1992 20:44:20 +0000 (-0800) Subject: (pushdecl): Check TREE_PUBLIC in addition to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=feaf9c711cb08dfb41200f07fcd2e081d585c6c7;p=gcc.git (pushdecl): Check TREE_PUBLIC in addition to DECL_EXTERNAL decls when looking for duplicate external declarations. From-SVN: r3013 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 053241863f6..1ac39a88571 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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;