projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b01bc6
)
(pushdecl): Check TREE_PUBLIC in addition to
author
Jim Wilson
<wilson@gcc.gnu.org>
Thu, 31 Dec 1992 20:44:20 +0000
(12:44 -0800)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index 053241863f614a4c236d1b0183be4d7e47088efb..1ac39a8857109e2073ae58cc734767593444dc85 100644
(file)
--- 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;