summaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-12-04 22:49:20 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2001-12-04 22:49:20 +0000
commitd062a680ab959bc09d0f2572ac16e444b5396aa4 (patch)
tree23a8878b902f5ac60f9c00bc63521603f68218d4 /gcc/langhooks.c
parent69927b59f2c4b5de206b5fb336821ba8dd645e59 (diff)
downloadgcc-d062a680ab959bc09d0f2572ac16e444b5396aa4.tar.gz
langhooks.h (struct lang_hooks): Add staticp.
* 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. From-SVN: r47628
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 8ae3055d268..5e0098680e3 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -77,6 +77,15 @@ lhd_safe_from_p (x, exp)
return 1;
}
+/* Called from staticp. */
+
+int
+lhd_staticp (exp)
+ tree exp;
+{
+ return 0;
+}
+
/* Called when -dy is given on the command line. */
void