diff options
author | Richard Henderson <rth@redhat.com> | 2004-12-16 09:31:58 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-12-16 09:31:58 -0800 |
commit | 26be549aac6f1c571da373bf52770b400ca7c210 (patch) | |
tree | 67e95850d4cb4c5af97945b9a98964954c1bc606 /gcc/gensupport.c | |
parent | f85d8f699663290de6a00907542994763f610046 (diff) | |
download | gcc-26be549aac6f1c571da373bf52770b400ca7c210.tar.gz |
Makefile.in (MD_DEPS, s-mddeps): New.
* Makefile.in (MD_DEPS, s-mddeps): New.
(s-config, s-conditions, s-flags, s-codes, s-constants, s-emit,
s-recog, s-opinit, s-extract, s-peep, s-attr, s-attrtab, s-output,
s-preds): Depend on MD_DEPS instead of md_file.
(genobjnames): Add genmddeps.o
(build/genmddeps, build/genmddeps.o): New.
(mostlyclean): Remove mddeps.mk.
* genmddeps.c: New file.
* gensupport.c (include_callback): New.
(process_include): Call it.
* gensupport.h (include_callback): Declare.
From-SVN: r92269
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 7 |
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); |