From: Charles Hannum Date: Tue, 7 Jul 1992 01:43:34 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c20aabf3b16172469d9edefac055ca01a173292;p=gcc.git *** empty log message *** From-SVN: r1489 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index 1e831935b72..9dd4403a2f0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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