diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-16 17:31:58 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-16 17:31:58 +0000 |
commit | 961284173204057921744e7857ccabc9a5177422 (patch) | |
tree | 67e95850d4cb4c5af97945b9a98964954c1bc606 /gcc/gensupport.c | |
parent | b225d49a05207e3af45250dd210a25786274c8dc (diff) | |
download | gcc-961284173204057921744e7857ccabc9a5177422.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92269 138bc75d-0d04-0410-961f-82ee72b054a4
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); |