Commit 0c20aabf by Charles Hannum

*** empty log message ***

From-SVN: r1489
parent 6489924b
...@@ -1725,6 +1725,7 @@ compile_file (name) ...@@ -1725,6 +1725,7 @@ compile_file (name)
if (warn_unused if (warn_unused
&& (TREE_CODE (decl) == FUNCTION_DECL && (TREE_CODE (decl) == FUNCTION_DECL
|| TREE_CODE (decl) == VAR_DECL) || TREE_CODE (decl) == VAR_DECL)
&& ! DECL_IN_SYSTEM_HEADER (decl)
&& ! TREE_EXTERNAL (decl) && ! TREE_EXTERNAL (decl)
&& ! TREE_PUBLIC (decl) && ! TREE_PUBLIC (decl)
&& ! TREE_USED (decl) && ! TREE_USED (decl)
...@@ -2049,11 +2050,6 @@ rest_of_compilation (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; TREE_ASM_WRITTEN (decl) = 1;
/* Now that integrate will no longer see our rtl, we need not distinguish /* Now that integrate will no longer see our rtl, we need not distinguish
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment