[m-rev.] for review: pass $(ALL_GRADEFLAGS) to mmc --make-interface

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Feb 13 16:16:51 AEDT 2002


For review by Simon Taylor.

Estimated hours taken: 0.25
Branches: main

scripts/mmake.in:
compiler/modules.m:
	Pass $(ALL_GRADEFLAGS) to mmc when building the interface files
	(`.int', `.int2', etc.).  Previously this was not done, because
	the interface files are supposed to be grade-independent.
	However, this causes problems if --warn-non-tail-recursion
	is put in MCFLAGS, because --warn-non-tail-recursion reports
	an error if --high-level-code is not specified.

Workspace: /home/ceres/fjh/mercury
Index: compiler/modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.215
diff -u -d -r1.215 modules.m
--- compiler/modules.m	8 Feb 2002 02:26:53 -0000	1.215
+++ compiler/modules.m	11 Feb 2002 14:09:34 -0000
@@ -2244,16 +2244,16 @@
 			io__write_strings(DepStream, [
 				"\n",
 				Date0FileName, " : ", SourceFileName, "\n",
-				"\t$(MCPI) $(ALL_MCPIFLAGS) $<\n",
+				"\t$(MCPI) $(ALL_GRADEFLAGS) $(ALL_MCPIFLAGS) $<\n",
 				DateFileName, " : ", SourceFileName, "\n",
-				"\t$(MCI) $(ALL_MCIFLAGS) $<\n",
+				"\t$(MCI) $(ALL_GRADEFLAGS) $(ALL_MCIFLAGS) $<\n",
 				Date3FileName, " : ", SourceFileName, "\n",
-				"\t$(MCSI) $(ALL_MCSIFLAGS) $<\n",
+				"\t$(MCSI) $(ALL_GRADEFLAGS) $(ALL_MCSIFLAGS) $<\n",
 				OptDateFileName, " : ", SourceFileName, "\n",
-				"\t$(MCOI) $(ALL_MCOIFLAGS) $<\n",
+				"\t$(MCOI) $(ALL_GRADEFLAGS) $(ALL_MCOIFLAGS) $<\n",
 				TransOptDateFileName, " : ", SourceFileName,
 					"\n",
-				"\t$(MCTOI) $(ALL_MCTOIFLAGS) $<\n",
+				"\t$(MCTOI) $(ALL_GRADEFLAGS) $(ALL_MCTOIFLAGS) $<\n",
 				CDateFileName, " : ", SourceFileName, "\n",
 				"\t$(MCG) $(ALL_GRADEFLAGS) $(ALL_MCGFLAGS) ",
 					"$< > ", ErrFileName, " 2>&1\n",
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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