summaryrefslogtreecommitdiff
path: root/gcc/langhooks.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-23 17:13:18 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-23 17:13:18 +0000
commit21ac3a84d746f3b98f6254446f2dec146d95cd46 (patch)
tree8f64273fe292a54b0d5d5c23aa635d97a7aba7d7 /gcc/langhooks.h
parentf7a8518f27e9bb83821b6f695a45340402273d51 (diff)
downloadgcc-21ac3a84d746f3b98f6254446f2dec146d95cd46.tar.gz
* langhooks.h (struct lang_hooks_for_tree_inlining): Add
var_mod_type_p. * langhooks-def.h: Default for tree_inlining.var_mod_type_p is hook_tree_bool_false. * tree.c (variably_modified_type_p): Moved here from cp/tree.c. Use lang_hooks.tree_inlining.var_mod_type_p for language-specific cases. Due to this, must weaken some 'if and only if' checks to merely 'if'. * tree.h: Prototype variably_modified_type_p. * tree-inline.c (walk_tree): #undef WALK_SUBTREE_TAIL at end. cp: * cp-lang.c (cp_var_mod_type_p): New: C++ hook for variably_modified_type_p. * cp-tree.h: Remove prototype of variably_modified_type_p. * tree.c (variably_modified_type_p): Remove; now implemented in language-independent code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r--gcc/langhooks.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h
index 0518afed0ef..09e5971007a 100644
--- a/gcc/langhooks.h
+++ b/gcc/langhooks.h
@@ -50,6 +50,7 @@ struct lang_hooks_for_tree_inlining
void *, int *,
void *));
int (*anon_aggr_type_p) PARAMS ((union tree_node *));
+ bool (*var_mod_type_p) PARAMS ((union tree_node *));
int (*start_inlining) PARAMS ((union tree_node *));
void (*end_inlining) PARAMS ((union tree_node *));
union tree_node *(*convert_parm_for_inlining) PARAMS ((union tree_node *,