From feaf9c711cb08dfb41200f07fcd2e081d585c6c7 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 31 Dec 1992 12:44:20 -0800 Subject: [PATCH] (pushdecl): Check TREE_PUBLIC in addition to DECL_EXTERNAL decls when looking for duplicate external declarations. From-SVN: r3013 --- gcc/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2