[m-dev.] diff: fix bootstrap problem with --object-file-extension

Peter Ross petdr at cs.mu.OZ.AU
Tue Jun 20 18:02:30 AEST 2000


Hi,


===================================================================


Estimated hours taken: 0.1

mmc.in:
    We cannot just comment out the --c-flag-to-name-object-file and
    --object-file-extension flags, as that destroys the line
    continuations.  Instead remove the options from inside the execs,
    and leave them with a comment that they need to enabled when a
    compiler that understands these flags bootstraps.


Index: mmc.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/mmc.in,v
retrieving revision 1.10
diff -u -r1.10 mmc.in
--- mmc.in	2000/06/19 12:29:24	1.10
+++ mmc.in	2000/06/20 07:56:08
@@ -37,14 +37,16 @@
 # The default optimization level should be after
 # all the options that describe the machine configuration.
 
+		# Need a version of the compiler which understands these
+		# options first.
+		# --c-flag-to-name-object-file "$CFLAG_TO_NAME_OBJECT_FILE" \
+		# --object-file-extension "$OBJECT_FILE_EXTENSION" \
 case $# in
 	0) exec $MC \
 		$MERC_ALL_MC_C_INCL_DIRS \
 		--cc "$CC" --grade "$DEFAULT_GRADE" \
 		--cflags-for-regs "$CFLAGS_FOR_REGS" \
 		--cflags-for-gotos "$CFLAGS_FOR_GOTOS" \
-		# --c-flag-to-name-object-file "$CFLAG_TO_NAME_OBJECT_FILE" \
-		# --object-file-extension "$OBJECT_FILE_EXTENSION" \
 		--num-real-r-regs "$NUM_REAL_R_REGS" \
 		--num-real-r-temps "$NUM_REAL_R_TEMPS" \
 		--conf-low-tag-bits "$LOW_TAG_BITS" \
@@ -60,8 +62,6 @@
 		--cc "$CC" --grade "$DEFAULT_GRADE" \
 		--cflags-for-regs "$CFLAGS_FOR_REGS" \
 		--cflags-for-gotos "$CFLAGS_FOR_GOTOS" \
-		# --c-flag-to-name-object-file "$CFLAG_TO_NAME_OBJECT_FILE" \
-		# --object-file-extension "$OBJECT_FILE_EXTENSION" \
 		--num-real-r-regs "$NUM_REAL_R_REGS" \
 		--num-real-r-temps "$NUM_REAL_R_TEMPS" \
 		--conf-low-tag-bits "$LOW_TAG_BITS" \

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list