(pushdecl): DECL_EXTERNAL implies TREE_PUBLIC, so test just the latter.
authorRichard Stallman <rms@gnu.org>
Tue, 2 Feb 1993 22:54:34 +0000 (22:54 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 2 Feb 1993 22:54:34 +0000 (22:54 +0000)
From-SVN: r3412

gcc/c-decl.c

index 96c1523ef796bd11a6a46ed6d0928ed682862b63..b7fd3c630fa47f664cca5e2fe0bccab9cc802c26 100644 (file)
@@ -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;
        }