3.2 PATCH: Fully support parallel gnat1/gnatbind builds

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Wed May 22 11:58:00 GMT 2002


Geert Bosch writes:

> Arnaud Charlet and I have reviewed the patch you submitted. It looks
> mostly OK and definately will be an improvement over the current GNAT
> Makefile.

Fine, thanks.

> Here are our comments after review on this patch:
> 
> - Need to check whether the addition of leading "ada" does not break
>    arbitrary command line length limit on some machine (e.g IRIX, Windows,
>    HP-UX, AIX which have low line length limitation)

I'm just running a (c and ada only) bootstrap on mips-sgi-irix6.2 with GNAT
3.13p as a bootstrap compiler.  This machine has a pretty low default limit
(20480 bytes).  Ok if gnat1 and gnatbind build during this bootstrap?  (I
probably won't be able to build gnatlib and tools due to PR ada/6552,
although I haven't tried building the mainline with ada included on irix 6
yet.)

Btw., the gcc/Makefile.in part of the patch (included below for reference)
will need approval by a configury or global-write-privs maintainer anyway:
I'm copying Alexandre for this.

	Rainer


	* Makefile.in (ADAC): Define.
	(SYSLIBS): Define.
	(.SUFFIXES): Move before language makefile fragments.
	(STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.874
diff -u -p -r1.874 Makefile.in
--- Makefile.in	16 May 2002 17:42:20 -0000	1.874
+++ Makefile.in	16 May 2002 21:17:07 -0000
@@ -101,6 +101,7 @@ T_CFLAGS =
  X_CPPFLAGS =
  T_CPPFLAGS =

+ADAC = @ADAC@
  AWK = @AWK@
  CC = @CC@
  BISON = @BISON@
@@ -614,6 +617,9 @@ HOST_LIBDEPS= $(BUILD_LIBIBERTY)
  # and the system's installed libraries.
  LIBS =	$(INTLLIBS) @LIBS@ $(LIBIBERTY)

+# Any system libraries needed just for GNAT.
+SYSLIBS = @GNAT_LIBEXC@
+
  # Likewise, for use in the tools that must run on this machine
  # even if we are cross-building GCC.
  HOST_LIBS = $(BUILD_LIBIBERTY)
@@ -793,6 +799,14 @@ DPBIT_FUNCS = _pack_df _unpack_df _addsu
  # unwinder info.
  LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv 
_udivmoddi4

+# The only suffixes we want for implicit rules are .c and .o, so clear
+# the list and add them.  This speeds up GNU Make, and allows -r to 
work.
+# For i18n support, we also need .gmo, .po, .pox.
+# This must come before the language makefile fragments to allow them to
+# add suffixes and rules of their own.
+.SUFFIXES:
+.SUFFIXES: .c .o .po .pox .gmo
+
  #
  # Language makefile fragments.

@@ -818,11 +832,6 @@ LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udi

  # End of language makefile fragments.
  #
-# The only suffixes we want for implicit rules are .c and .o, so clear
-# the list and add them.  This speeds up GNU Make, and allows -r to 
work.
-# For i18n support, we also need .gmo, .po, .pox.
-.SUFFIXES:
-.SUFFIXES: .c .o .po .pox .gmo

  Makefile: $(srcdir)/Makefile.in config.status $(srcdir)/version.c \
     $(xmake_file) $(tmake_file) $(LANG_MAKEFILES)
@@ -3004,6 +3021,7 @@ VOL_FILES=`echo $(BACKEND) $(OBJS) $(C_O
  # WARN_CFLAGS setting can't be to the expansion of GCC_WARN_CFLAGS in
  # the context of the stage_x rule.
  STAGE2_FLAGS_TO_PASS = \
+	ADAC="\$$(CC)" \
  	CFLAGS="$(BOOT_CFLAGS)" \
  	LDFLAGS="$(BOOT_LDFLAGS)" \
  	WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \



More information about the Gcc-patches mailing list