Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.bin/gcc/backend Deal brute-force with parallelism. ...
details: https://anonhg.NetBSD.org/src/rev/06a32a440532
branches: trunk
changeset: 515926:06a32a440532
user: tv <tv%NetBSD.org@localhost>
date: Mon Oct 08 22:56:31 2001 +0000
description:
Deal brute-force with parallelism. In order to accomodate breaking the
build in the middle and restarting on another platform (requiring atomic
host tool builds), and keep parallelism, the ".lo" rules can't be used
at all. Instead, compile all host .c files directly into executables.
diffstat:
gnu/usr.bin/gcc/backend/Makefile | 26 +++++++-------------------
1 files changed, 7 insertions(+), 19 deletions(-)
diffs (55 lines):
diff -r 00bf60e79564 -r 06a32a440532 gnu/usr.bin/gcc/backend/Makefile
--- a/gnu/usr.bin/gcc/backend/Makefile Mon Oct 08 22:47:31 2001 +0000
+++ b/gnu/usr.bin/gcc/backend/Makefile Mon Oct 08 22:56:31 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/07/24 21:16:08 tv Exp $
+# $NetBSD: Makefile,v 1.4 2001/10/08 22:56:31 tv Exp $
LIB= backend
MKLINT= no
@@ -19,7 +19,8 @@
CLEANFILES+= gengenrtl genrtl.c genrtl.h \
gencheck tree-check.h
-genrtl.c genrtl.h: gengenrtl.c
+genrtl.c: genrtl.h
+genrtl.h: gengenrtl.c
${HOST_LINK.c} -o gengenrtl $>
./gengenrtl genrtl.h genrtl.c
@@ -27,31 +28,18 @@
${HOST_LINK.c} -o gencheck $>
./gencheck >$@
-# Programs which depend on common sources. The ${MAKE} dance
-# ensures that these programs regen their object files
-# whenever they are needed (so a build can be restarted on
-# another platform if desired).
-
-LOFILES= obstack.lo ${G_HOST_RTL:.o=.lo} ${G_HOST_PRINT:.o=.lo}
-lofiles: ${LOFILES}
-
-.if !target(.BEGIN) && !make(lofiles)
-.BEGIN:
- @rm -f ${LOFILES}
-.endif
-
.for f in attr.h attrtab.c codes.h config.h emit.c extract.c \
flags.h opinit.c peep.c output.c recog.c
CLEANFILES+= gen${f:R} insn-${f}
-insn-${f}: genrtl.h gen${f:R}.c ${G_md_file}
- @cd ${.CURDIR} && ${MAKE} lofiles
- ${HOST_LINK.c} -o gen${f:R} ${>:M*.c} ${LOFILES}
+insn-${f}: genrtl.h gen${f:R}.c obstack.c ${G_md_file} \
+ ${G_HOST_RTL:.o=.c} ${G_HOST_PRINT:.o=.c}
+ ${HOST_LINK.c} -o gen${f:R} ${>:M*.c}
./gen${f:R} ${G_md_file} >$@
.endfor
insn-attrtab.c: ${G_HOST_RTLANAL:.o=.c}
-insn-extract.c: insn-config.h
+insn-attrtab.c insn-extract.c: insn-config.h
${OBJS} .depend: insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
.PATH: ${DIST}/gcc ${DIST}/libiberty ${G_out_file:H}
Home |
Main Index |
Thread Index |
Old Index