[m-rev.] for review: include grade options everytime mmc invoked

Ian MacLarty maclarty at cs.mu.OZ.AU
Wed Mar 23 13:07:07 AEDT 2005


Estimated hours taken: 3
Branches: main

Pass the grade options to mmc whenever it is called, even when it is just
building dependencies.  Previously compiling the compiler with tracing
enabled, where the installed compiler's default grade for applications was
hlc.gc, resulted in an error message like "debugging only allowed for low-level
C grades"; even when the GRADE=reg.gc option was set in Mmake.params.

browser/Mmakefile
compiler/Mmakefile
mdbcomp/Mmakefile
	Pass the grade flags event when just running mmc with the
	--generate-source-file-mapping option.

compiler/modules.m
	Pass the grade flags everytime mmc is invoked in the .d files.

Index: browser/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/browser/Mmakefile,v
retrieving revision 1.44
diff -u -r1.44 Mmakefile
--- browser/Mmakefile	28 Jan 2005 07:11:37 -0000	1.44
+++ browser/Mmakefile	23 Mar 2005 01:22:05 -0000
@@ -166,7 +166,7 @@
 # won't work without the Mercury.modules file.
 .PHONY: Mercury.modules
 Mercury.modules:
-	$(MC) $(ALL_MCFLAGS) -f *.m
+	$(MC) $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) -f *.m
 
 .PHONY: check
 check:	$(CHECKS)
Index: compiler/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.81
diff -u -r1.81 Mmakefile
--- compiler/Mmakefile	10 Mar 2005 05:56:30 -0000	1.81
+++ compiler/Mmakefile	23 Mar 2005 01:22:06 -0000
@@ -167,7 +167,7 @@
 # won't work without the Mercury.modules file.
 .PHONY: Mercury.modules
 Mercury.modules:
-	$(MC) $(ALL_MCFLAGS) -f *.m
+	$(MC) $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) -f *.m
 
 .PHONY: all
 all:		mercury $(TAGS_FILE_EXISTS)
Index: mdbcomp/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/mdbcomp/Mmakefile,v
retrieving revision 1.5
diff -u -r1.5 Mmakefile
--- mdbcomp/Mmakefile	24 Feb 2005 00:11:00 -0000	1.5
+++ mdbcomp/Mmakefile	23 Mar 2005 01:22:12 -0000
@@ -130,7 +130,7 @@
 # won't work without the Mercury.modules file.
 .PHONY: Mercury.modules
 Mercury.modules:
-	$(MC) $(ALL_MCFLAGS) -f *.m
+	$(MC) $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) -f *.m
 
 .PHONY: check
 check:	$(CHECKS)
Index: compiler/modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.321
diff -u -r1.321 modules.m
--- compiler/modules.m	21 Mar 2005 04:45:48 -0000	1.321
+++ compiler/modules.m	23 Mar 2005 01:22:08 -0000
@@ -3460,7 +3460,8 @@
                 "\t$(MCI) $(ALL_GRADEFLAGS) $(ALL_MCIFLAGS) ",
                     ModuleArg, "\n",
                 Date3FileName, " : ", SourceFileName, "\n",
-                "\t$(MCSI) $(ALL_MCIFLAGS) $(ALL_MCSIFLAGS) ",
+                "\t$(MCSI) $(ALL_GRADEFLAGS) $(ALL_MCIFLAGS) ",
+                    "$(ALL_MCSIFLAGS) ",
                     ModuleArg, "\n",
                 OptDateFileName, " : ", SourceFileName, "\n",
                 "\t$(MCOI) $(ALL_GRADEFLAGS) ",
--------------------------------------------------------------------------
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