aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCharles Hannum <mycroft@gnu.org>1992-07-07 01:43:34 +0000
committerCharles Hannum <mycroft@gnu.org>1992-07-07 01:43:34 +0000
commit0c20aabf3b16172469d9edefac055ca01a173292 (patch)
tree3560a1d92bd8e10dff12359b87afe43f567517fd /gcc
parent6489924b1237f0cc4c0df6de68467813f0f14b82 (diff)
downloadgcc-0c20aabf3b16172469d9edefac055ca01a173292.zip
gcc-0c20aabf3b16172469d9edefac055ca01a173292.tar.gz
gcc-0c20aabf3b16172469d9edefac055ca01a173292.tar.bz2
*** empty log message ***
From-SVN: r1489
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 1e83193..9dd4403 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