diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2007-04-07 23:08:23 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2007-04-07 23:08:23 +0000 |
commit | 270c60bb5f93889717d18a7835069897a7ce3e16 (patch) | |
tree | 52566fdbb0b084676aa3532c776e0d3c48a44aae /gcc/c-common.c | |
parent | ee57a66148bae672e53312950c296ef81294f064 (diff) | |
download | gcc-270c60bb5f93889717d18a7835069897a7ce3e16.zip gcc-270c60bb5f93889717d18a7835069897a7ce3e16.tar.gz gcc-270c60bb5f93889717d18a7835069897a7ce3e16.tar.bz2 |
2007-04-07 Daniel Berlin <dberlin@dberlin.org>
Revert change removing staticp.
From-SVN: r123650
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index af8b8aa..8f71e691 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4294,6 +4294,15 @@ 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 |