*** empty log message ***
authorCharles Hannum <mycroft@gnu.org>
Tue, 7 Jul 1992 01:43:34 +0000 (01:43 +0000)
committerCharles Hannum <mycroft@gnu.org>
Tue, 7 Jul 1992 01:43:34 +0000 (01:43 +0000)
From-SVN: r1489

gcc/toplev.c

index 1e831935b72317c4675dfc846d30dbdd15da9a48..9dd4403a2f02aab71e4eb5d65775aea0e752f269 100644 (file)
@@ -1725,6 +1725,7 @@ compile_file (name)
        if (warn_unused
            && (TREE_CODE (decl) == FUNCTION_DECL
                || TREE_CODE (decl) == VAR_DECL)
+           && ! DECL_IN_SYSTEM_HEADER (decl)
            && ! TREE_EXTERNAL (decl)
            && ! TREE_PUBLIC (decl)
            && ! TREE_USED (decl)
@@ -2049,11 +2050,6 @@ rest_of_compilation (decl)
        }
     }
 
-  /* Suppress warnings for unused static functions
-     defined (not just declared) in system headers.  */
-  if (in_system_header && TREE_STATIC (decl) && !TREE_INLINE (decl))
-    TREE_USED (decl) = 1;
-
   TREE_ASM_WRITTEN (decl) = 1;
 
   /* Now that integrate will no longer see our rtl, we need not distinguish