From: Richard Stallman Date: Tue, 2 Feb 1993 22:54:34 +0000 (+0000) Subject: (pushdecl): DECL_EXTERNAL implies TREE_PUBLIC, so test just the latter. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=030f365a0d021a494680a5c845c7411e21b72ce8;p=gcc.git (pushdecl): DECL_EXTERNAL implies TREE_PUBLIC, so test just the latter. From-SVN: r3412 --- 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; }