From 1df918ac8ec140974275e1d976d6d828789bfaa0 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sat, 7 Apr 2007 00:19:46 +0000 Subject: in / 2007-04-06 Daniel Berlin in / 2007-04-06 Daniel Berlin * tree.c (staticp): No longer use staticp langhook. * langhooks.c (lhd_staticp): Removed. * langhooks.h (struct lang_hooks): Remove staticp. * c-common.c (c_staticp): Remove. * c-common.h (c_staticp): Ditto. * langhooks-defs.h (lhd_staticp): Ditto. (LHD_HOOKS_STATICP): Ditto * tree.h (gcc_assert_lowered): New macro. in cp/ 2007-04-06 Daniel Berlin * cp-objcp-common.c (cxx_staticp): Remove. * cp-objcp-common.h (LANG_HOOKS_STATICP): Remove. * cp-tree.h (cxx_staticp): From-SVN: r123636 --- gcc/c-common.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/c-common.c') diff --git a/gcc/c-common.c b/gcc/c-common.c index 8f71e6916ed..af8b8aa075a 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4294,15 +4294,6 @@ c_expand_body (tree fndecl) decl_fini_priority_lookup (fndecl)); } -/* Hook used by staticp to handle language-specific tree codes. */ - -tree -c_staticp (tree exp) -{ - return (TREE_CODE (exp) == COMPOUND_LITERAL_EXPR - && TREE_STATIC (COMPOUND_LITERAL_EXPR_DECL (exp)) - ? exp : NULL); -} /* Given a boolean expression ARG, return a tree representing an increment -- cgit v1.2.1