diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-04 22:49:20 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-04 22:49:20 +0000 |
commit | f1833f1bf639955df2ff48caa738ed0cffb0af8d (patch) | |
tree | 23a8878b902f5ac60f9c00bc63521603f68218d4 /gcc/tree.c | |
parent | 258d3911fa8cdf1bedf60e66226a1ad2122f440b (diff) | |
download | gcc-f1833f1bf639955df2ff48caa738ed0cffb0af8d.tar.gz |
* langhooks.h (struct lang_hooks): Add staticp.
* langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
* langhooks.c (lhd_staticp): New function.
* tree.c (staticp): Call lang_hooks.staticp for language-specific
tree codes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47628 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 5cbf59c5cba..c21f9132211 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1518,7 +1518,11 @@ staticp (arg) return staticp (TREE_OPERAND (arg, 0)); default: - return 0; + if ((unsigned int) TREE_CODE (arg) + >= (unsigned int) LAST_AND_UNUSED_TREE_CODE) + return (*lang_hooks.staticp) (arg); + else + return 0; } } |