This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[3.0.1] Backport 'make -j' patch for Cygwin


This is a backport of my GCC 3.1 patch that was installed May 23rd.  This
is required for Cygwin (among others) to parallel build.

See threads at:
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01678.html
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01680.html

Completed a --enable-languages=c "make -j 8 bootstrap" and make check on the
GCC_3.0-branch.

Kelley Cook

2001-07-30  Kelley Cook  <kelley.cook@home.com>
	Backport of 2001-05-23  Kelley Cook  <kelley.cook@home.com>
	* Makefile.in: Move many of the *_H definitions eariler in the file,
	so that rules in t-* files that use them for dependencies will work
	in a parallel build.
	* config/i386/t-cygwin (winnt.o): Depend on $(CONFIG_H).

--- Makefile.in.orig	Mon Jul 30 10:27:19 2001
+++ Makefile.in	Mon Jul 30 10:27:50 2001
@@ -590,6 +590,35 @@
 # This tells GNU Make version 3 not to put all variables in the environment.
 .NOEXPORT:
 
+# GCONFIG_H lists the config files that the generator files depend on, while
+# CONFIG_H lists the the ones ordinary gcc files depend on, which includes
+# a file generated by gencodes.
+GCONFIG_H = config.h $(host_xm_file_list)
+HCONFIG_H = hconfig.h $(build_xm_file_list)
+CONFIG_H = $(GCONFIG_H) $(TM_H) insn-codes.h insn-flags.h
+TCONFIG_H = tconfig.h $(xm_file_list) insn-codes.h insn-flags.h
+TM_H = tm.h $(tm_file_list)
+TM_P_H = tm_p.h $(tm_p_file_list) insn-codes.h insn-flags.h
+
+MACHMODE_H = machmode.h machmode.def
+RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
+RTL_H = $(RTL_BASE_H) genrtl.h
+PARAMS_H = params.h params.def
+TREE_H = tree.h real.h tree.def $(MACHMODE_H) tree-check.h version.h builtins.def
+BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h
+DEMANGLE_H = $(srcdir)/../include/demangle.h
+RECOG_H = recog.h
+EXPR_H = expr.h
+REGS_H = regs.h varray.h $(MACHMODE_H)
+INTEGRATE_H = integrate.h varray.h
+LOOP_H = loop.h varray.h bitmap.h
+GCC_H = gcc.h version.h
+GGC_H = ggc.h varray.h
+TIMEVAR_H = timevar.h timevar.def
+INSN_ATTR_H = insn-attr.h $(srcdir)/insn-addr.h $(srcdir)/varray.h
+C_COMMON_H = c-common.h $(SPLAY_TREE_H)
+C_TREE_H = c-tree.h $(C_COMMON_H)
+
 # sed inserts variable overrides after the following line.
 ####target overrides
 @target_overrides@
@@ -825,35 +854,6 @@
     _fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \
     _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \
     _df_to_sf _thenan_df _df_to_usi _usi_to_df
-
-# GCONFIG_H lists the config files that the generator files depend on, while
-# CONFIG_H lists the the ones ordinary gcc files depend on, which includes
-# a file generated by gencodes.
-GCONFIG_H = config.h $(host_xm_file_list)
-HCONFIG_H = hconfig.h $(build_xm_file_list)
-CONFIG_H = $(GCONFIG_H) $(TM_H) insn-codes.h insn-flags.h
-TCONFIG_H = tconfig.h $(xm_file_list) insn-codes.h insn-flags.h
-TM_H = tm.h $(tm_file_list)
-TM_P_H = tm_p.h $(tm_p_file_list) insn-codes.h insn-flags.h
-
-MACHMODE_H = machmode.h machmode.def
-RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
-RTL_H = $(RTL_BASE_H) genrtl.h
-PARAMS_H = params.h params.def
-TREE_H = tree.h real.h tree.def $(MACHMODE_H) tree-check.h version.h builtins.def
-BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h
-DEMANGLE_H = $(srcdir)/../include/demangle.h
-RECOG_H = recog.h
-EXPR_H = expr.h
-REGS_H = regs.h varray.h $(MACHMODE_H)
-INTEGRATE_H = integrate.h varray.h
-LOOP_H = loop.h varray.h bitmap.h
-GCC_H = gcc.h version.h
-GGC_H = ggc.h varray.h
-TIMEVAR_H = timevar.h timevar.def
-INSN_ATTR_H = insn-attr.h $(srcdir)/insn-addr.h $(srcdir)/varray.h
-C_COMMON_H = c-common.h $(SPLAY_TREE_H)
-C_TREE_H = c-tree.h $(C_COMMON_H)
 
 #
 # Language makefile fragments.
--- config/i386/t-cygwin.orig	Mon Jul 30 12:01:49 2001
+++ config/i386/t-cygwin	Mon Jul 30 12:04:33 2001
@@ -16,5 +16,5 @@
 	-I$(srcdir)/../winsup/cygwin/include \
 	-I$(srcdir)/../winsup/w32api/include
 
-winnt.o: $(srcdir)/config/i386/winnt.c $(RTL_H) $(TREE_H)
+winnt.o: $(srcdir)/config/i386/winnt.c $(RTL_H) $(TREE_H) $(CONFIG_H)
 	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]