aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1992-12-31 12:44:20 -0800
committerJim Wilson <wilson@gcc.gnu.org>1992-12-31 12:44:20 -0800
commitfeaf9c711cb08dfb41200f07fcd2e081d585c6c7 (patch)
treed8b5ce4739eba5026d33d112bbe5ae26643c1245
parent5b01bc66eed730a17baf459d06f2aa454b908350 (diff)
downloadgcc-feaf9c711cb08dfb41200f07fcd2e081d585c6c7.zip
gcc-feaf9c711cb08dfb41200f07fcd2e081d585c6c7.tar.gz
gcc-feaf9c711cb08dfb41200f07fcd2e081d585c6c7.tar.bz2
(pushdecl): Check TREE_PUBLIC in addition to
DECL_EXTERNAL decls when looking for duplicate external declarations. From-SVN: r3013
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 0532418..1ac39a8 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;