summaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2008-07-29 19:10:55 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2008-07-29 17:10:55 +0000
commit54dfd46bffb35c49935053bd9bc2997f77e26902 (patch)
treeec580272d62cb4f74dab5323db176f00f81fd545 /gcc/langhooks.c
parentce94d3547f81cc3dd105f4a3377e72cdbd2bbd2c (diff)
downloadgcc-54dfd46bffb35c49935053bd9bc2997f77e26902.tar.gz
c-decl.c (merge_decls): Do not handle DECL_INLINE.
* c-decl.c (merge_decls): Do not handle DECL_INLINE. (grokdeclarator): Likewise. * langhooks.c (lhd_warn_unused_global_decl): Use DECL_DECLARED_INLINE_P. * print-tree.c (print_node): Remove DECL_INLINE check. From-SVN: r138258
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 2285ac17f54..30e5bfa9f61 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -133,7 +133,7 @@ lhd_warn_unused_global_decl (const_tree decl)
/* This is what used to exist in check_global_declarations. Probably
not many of these actually apply to non-C languages. */
- if (TREE_CODE (decl) == FUNCTION_DECL && DECL_INLINE (decl))
+ if (TREE_CODE (decl) == FUNCTION_DECL && DECL_DECLARED_INLINE_P (decl))
return false;
if (TREE_CODE (decl) == VAR_DECL && TREE_READONLY (decl))
return false;