aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 5e00986..e2e7282 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -240,6 +240,27 @@ lhd_tree_inlining_anon_aggr_type_p (t)
return 0;
}
+/* lang_hooks.tree_inlining.start_inlining and end_inlining perform any
+ language-specific bookkeeping necessary for processing
+ FN. start_inlining returns non-zero if inlining should proceed, zero if
+ not.
+
+ For instance, the C++ version keeps track of template instantiations to
+ avoid infinite recursion. */
+
+int
+lhd_tree_inlining_start_inlining (fn)
+ tree fn ATTRIBUTE_UNUSED;
+{
+ return 1;
+}
+
+void
+lhd_tree_inlining_end_inlining (fn)
+ tree fn ATTRIBUTE_UNUSED;
+{
+}
+
/* lang_hooks.tree_dump.dump_tree: Dump language-specific parts of tree
nodes. Returns non-zero if it does not want the usual dumping of the
second argument. */