aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2000-11-21 11:09:38 -0800
committerRichard Henderson <rth@gcc.gnu.org>2000-11-21 11:09:38 -0800
commit3fe30ff6f7652648c0c2882815ad2f52e51c06db (patch)
tree7b19327f6425471460eda074c9f38f18c4323d1a /gcc/tree.h
parent3adbce3d89170e4c84697de5c71d5486b029f26f (diff)
downloadgcc-3fe30ff6f7652648c0c2882815ad2f52e51c06db.zip
gcc-3fe30ff6f7652648c0c2882815ad2f52e51c06db.tar.gz
gcc-3fe30ff6f7652648c0c2882815ad2f52e51c06db.tar.bz2
c-common.c (c_unsafe_for_reeval): New function.
* c-common.c (c_unsafe_for_reeval): New function. (add_c_tree_codes): Register it. * c-common.h: Declare it. * tree.c (lang_unsafe_for_reeval): New hook. (unsafe_for_reeval): Call it. * tree.h: Declare it. From-SVN: r37623
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index ac0be89..1cf49f1 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -2255,7 +2255,11 @@ extern void (*lang_unsave_expr_now) PARAMS ((tree));
/* Return 0 if it is safe to evaluate EXPR multiple times,
return 1 if it is safe if EXPR is unsaved afterward, or
return 2 if it is completely unsafe. */
-extern int unsafe_for_reeval PARAMS ((tree));
+extern int unsafe_for_reeval PARAMS ((tree));
+
+/* If non-null, these are language-specific helper functions for
+ unsafe_for_reeval. Return negative to not handle some tree. */
+extern int (*lang_unsafe_for_reeval) PARAMS ((tree));
/* Return 1 if EXP contains a PLACEHOLDER_EXPR; i.e., if it represents a size
or offset that depends on a field within a record.