1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Move the creation of the insn-*.c files from cc_tools to cc_int.

This gets rid of a cross build problem we have because we build
everything in cc_tools during the `make build-tools' (or `make depend')
stage.
This commit is contained in:
David E. O'Brien 2002-03-02 08:53:36 +00:00
parent 64b88e383f
commit 3d3dea1bbc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91559
2 changed files with 13 additions and 7 deletions

View File

@ -13,8 +13,7 @@ SRCS= c-aux-info.c c-common.c c-convert.c c-iterate.c \
caller-save.c calls.c combine.c convert.c cse.c \
dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \
hash.c insn-attrtab.c insn-emit.c insn-extract.c insn-opinit.c \
insn-output.c insn-peep.c insn-recog.c \
hash.c \
integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \
print-rtl.c print-tree.c real.c recog.c reg-stack.c regclass.c \
reload.c reload1.c reorg.c rtl.c rtlanal.c \
@ -29,6 +28,15 @@ SRCS+= haifa-sched.c
SRCS+= sched.c
.endif
# insn-* gunk -- headers are built in cc_tools, as they are used by the
# "build-tools"
.for F in attrtab emit extract opinit output peep recog
SRCS+= insn-$F.c
CLEANFILES+= insn-$F.c
insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE}
${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c
.endfor
# shared between the drivers
SRCS+= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c

View File

@ -26,11 +26,9 @@ insn-$F.h: gen$F ${MD_FILE}
GENSRCS+= insn-$F.h
.endfor
.for F in attrtab emit extract opinit output peep recog
insn-$F.c: gen$F ${MD_FILE}
./gen$F ${MD_FILE} > insn-$F.c
GENSRCS+= insn-$F.c
.endfor
GENSRCS+= gen-time-stamp
gen-time-stamp: genattrtab genemit genextract genopinit genoutput genpeep genrecog
touch ${.TARGET}
.for F in attr codes config emit extract flags opinit output peep recog
build-tools: gen$F