summaryrefslogtreecommitdiff
path: root/gcc/gensupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r--gcc/gensupport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c
index 1fb45c0835f..a0b3faa6066 100644
--- a/gcc/gensupport.c
+++ b/gcc/gensupport.c
@@ -37,6 +37,10 @@ int insn_elision = 1;
const char *in_fname;
+/* This callback will be invoked whenever an rtl include directive is
+ processed. To be used for creation of the dependency file. */
+void (*include_callback) (const char *);
+
static struct obstack obstack;
struct obstack *rtl_obstack = &obstack;
@@ -245,6 +249,9 @@ process_include (rtx desc, int lineno)
read_rtx_filename = pathname;
read_rtx_lineno = 1;
+ if (include_callback)
+ include_callback (pathname);
+
/* Read the entire file. */
while (read_rtx (input_file, &desc, &lineno))
process_rtx (desc, lineno);