[m-rev.] diff: pass `--fullarch' to mmc

Simon Taylor stayl at cs.mu.OZ.AU
Mon Nov 19 18:25:45 AEDT 2001



Estimated hours taken: 0.2
Branches: main

Finish the change to allow installed Mercury libraries to be 
used directly by mmc.

bootstrap CVS tag: bootstrap_20011119_fullarch_opt

scripts/mmc.in:
	Pass the value of the `--fullarch' option determined
	at configuration time.

configure.in:
	Test for the `--fullarch' option. Remove an old test
	for `.c_date' files.

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.282
diff -u -u -r1.282 configure.in
--- configure.in	6 Nov 2001 15:44:48 -0000	1.282
+++ configure.in	19 Nov 2001 06:43:09 -0000
@@ -111,13 +111,12 @@
 			).
 EOF
 	if
-		# The installed compiler must create `.c_date' files
-		# to be compatible with scripts/Mmake.rules.
+		# Test for the `--fullarch' option.
 	 	echo $BOOTSTRAP_MC conftest >&AC_FD_CC 2>&1 &&
 	 	$BOOTSTRAP_MC \
+			--fullarch "$FULLARCH" \
 			--halt-at-warn $link_flags conftest \
 		 	</dev/null >&AC_FD_CC 2>&1 &&
-		test -f ./conftest.c_date &&
 		test "`./conftest 2>&1 | tr -d '\015'`" = "Hello, world"
 	then
 		AC_MSG_RESULT(yes)
Index: scripts/mmc.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/mmc.in,v
retrieving revision 1.17
diff -u -u -r1.17 mmc.in
--- scripts/mmc.in	2 Oct 2001 07:09:40 -0000	1.17
+++ scripts/mmc.in	19 Nov 2001 06:02:15 -0000
@@ -26,6 +26,7 @@
 CFLAGS_FOR_THREADS="@CFLAGS_FOR_THREADS@"
 CFLAG_TO_NAME_OBJECT_FILE="@OBJFILE_OPT@"
 OBJECT_FILE_EXTENSION=". at OBJ_SUFFIX@"
+FULLARCH=@FULLARCH@
 LOW_TAG_BITS=@LOW_TAG_BITS@
 BITS_PER_WORD=@BITS_PER_WORD@
 BYTES_PER_WORD=@BYTES_PER_WORD@
@@ -47,6 +48,7 @@
 		--cflags-for-gotos "$CFLAGS_FOR_GOTOS" \
 		--c-flag-to-name-object-file "$CFLAG_TO_NAME_OBJECT_FILE" \
 		--object-file-extension "$OBJECT_FILE_EXTENSION" \
+		--fullarch "$FULLARCH" \
 		--num-real-r-regs "$NUM_REAL_R_REGS" \
 		--num-real-r-temps "$NUM_REAL_R_TEMPS" \
 		--conf-low-tag-bits "$LOW_TAG_BITS" \
@@ -65,6 +67,7 @@
 		--cflags-for-gotos "$CFLAGS_FOR_GOTOS" \
 		--c-flag-to-name-object-file "$CFLAG_TO_NAME_OBJECT_FILE" \
 		--object-file-extension "$OBJECT_FILE_EXTENSION" \
+		--fullarch "$FULLARCH" \
 		--num-real-r-regs "$NUM_REAL_R_REGS" \
 		--num-real-r-temps "$NUM_REAL_R_TEMPS" \
 		--conf-low-tag-bits "$LOW_TAG_BITS" \
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list