From 030f365a0d021a494680a5c845c7411e21b72ce8 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 2 Feb 1993 22:54:34 +0000 Subject: [PATCH] (pushdecl): DECL_EXTERNAL implies TREE_PUBLIC, so test just the latter. From-SVN: r3412 --- gcc/c-decl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 96c1523ef79..b7fd3c630fa 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1808,7 +1808,7 @@ pushdecl (x) We get warnings about inline functions where they are defined. Avoid duplicate warnings where they are used. */ - if ((DECL_EXTERNAL (x) || TREE_PUBLIC (x)) && ! DECL_INLINE (x)) + if (TREE_PUBLIC (x) && ! DECL_INLINE (x)) { tree decl; @@ -3277,6 +3277,7 @@ finish_decl (decl, init, asmspec_tree) if (do_default) error_with_decl (decl, "array size missing in `%s'"); else if (!pedantic && TREE_STATIC (decl)) + /* ??? Perhaps should set TREE_PUBLIC here? */ DECL_EXTERNAL (decl) = 1; } -- 2.30.2