From 0c20aabf3b16172469d9edefac055ca01a173292 Mon Sep 17 00:00:00 2001 From: Charles Hannum Date: Tue, 7 Jul 1992 01:43:34 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1489 --- gcc/toplev.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.30.2