summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2007-04-07 00:19:46 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2007-04-07 00:19:46 +0000
commit1df918ac8ec140974275e1d976d6d828789bfaa0 (patch)
tree7fdd6d2fc0a5b2c2914e58ae503907b961d62cdd /gcc/c-common.c
parent1bfe2e5fca9f4962aed93b1a1696784bf9cf1909 (diff)
downloadgcc-1df918ac8ec140974275e1d976d6d828789bfaa0.tar.gz
in / 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
in / 2007-04-06 Daniel Berlin <dberlin@dberlin.org> * 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 <dberlin@dberlin.org> * cp-objcp-common.c (cxx_staticp): Remove. * cp-objcp-common.h (LANG_HOOKS_STATICP): Remove. * cp-tree.h (cxx_staticp): From-SVN: r123636
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c9
1 files changed, 0 insertions, 9 deletions
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