summaryrefslogtreecommitdiffstats
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authormycroft <mycroft@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-07 01:43:34 +0000
committermycroft <mycroft@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-07 01:43:34 +0000
commitb86836bdce7831ab19d0581e5e7f49d34656c683 (patch)
tree3560a1d92bd8e10dff12359b87afe43f567517fd /gcc/toplev.c
parentf014762ff98699f180d705644bb80c1da9f351ab (diff)
downloadppe42-gcc-b86836bdce7831ab19d0581e5e7f49d34656c683.tar.gz
ppe42-gcc-b86836bdce7831ab19d0581e5e7f49d34656c683.zip
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1489 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c6
1 files changed, 1 insertions, 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
OpenPOWER on IntegriCloud