Makefile.in: Add target mddump, build/genmddump.o.

* Makefile.in: Add target mddump, build/genmddump.o.  Extend
genprogrtl with mddump.
* genmddump.c: New.

From-SVN: r194086
This commit is contained in:
Michael Zolotukhin 2012-12-03 13:54:07 +00:00 committed by Kirill Yukhin
parent 41222ddf8e
commit 4a0639a2a9
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-12-03 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* Makefile.in: Add target mddump, build/genmddump.o. Extend
genprogrtl with mddump.
* genmddump.c: New.
2012-12-03 Steven Bosscher <steven@gcc.gnu.org>
* rtl.h (print_insn_with_notes): Prototype.

View File

@ -3618,6 +3618,10 @@ insn-preds.c: s-preds; @true
tm-preds.h: s-preds-h; @true
tm-constrs.h: s-constrs-h; @true
.PHONY: mddump
mddump: $(BUILD_RTL) $(MD_DEPS) build/genmddump$(build_exeext)
$(RUN_GEN) build/genmddump$(build_exeext) $(md_file) > tmp-mddump.md
s-preds: $(MD_DEPS) build/genpreds$(build_exeext)
$(RUN_GEN) build/genpreds$(build_exeext) $(md_file) > tmp-preds.c
$(SHELL) $(srcdir)/../move-if-change tmp-preds.c insn-preds.c
@ -3935,6 +3939,8 @@ build/genrecog.o : genrecog.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
build/genhooks.o : genhooks.c $(TARGET_DEF) $(C_TARGET_DEF) \
$(COMMON_TARGET_DEF) $(BCONFIG_H) $(SYSTEM_H) errors.h
build/genmddump.o : genmddump.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
# Compile the programs that generate insn-* from the machine description.
# They are compiled with $(COMPILER_FOR_BUILD), and associated libraries,
@ -3943,7 +3949,7 @@ build/genhooks.o : genhooks.c $(TARGET_DEF) $(C_TARGET_DEF) \
# All these programs use the RTL reader ($(BUILD_RTL)).
genprogrtl = attr attr-common attrtab automata codes conditions config emit \
extract flags opinit output peep preds recog
extract flags opinit output peep preds recog mddump
$(genprogrtl:%=build/gen%$(build_exeext)): $(BUILD_RTL)
# All these programs use the MD reader ($(BUILD_MD)).