[m-rev.] diff: fix compiler abort in .profdeep.debug grades

Julien Fischer juliensf at csse.unimelb.edu.au
Sat Jun 16 01:34:25 AEST 2007


Estimated hours taken: 0.2
Branches: main

In debugging grades don't process mer_mdbcomp.init twice when building the
compiler's _init.c file.  This fixes a problem where the compiler would abort
if built in a .profdeep.debug grade.

compiler/Mmakefile:
 	Only include mer_mdbcomp.init once when generating the _init.c file
 	in this directory.

Julien.

Index: Mmakefile
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.91
diff -u -r1.91 Mmakefile
--- Mmakefile	24 Nov 2006 03:47:58 -0000	1.91
+++ Mmakefile	15 Jun 2007 15:29:24 -0000
@@ -9,6 +9,12 @@
  MERCURY_DIR=..
  LINK_STATIC=yes
  include $(MERCURY_DIR)/Mmake.common
+
+# Override the settings in ../Mmake.workspace so that in debugging grades we
+# do not include mer_mdbcomp.init twice in the list of files passed to mkinit.
+#
+C2INITFLAGS = --trace-init-file $(BROWSER_DIR)/$(BROWSER_LIB_NAME).init
+
  -include Mmake.compiler.params

  # Override the default rule in `mmake --use-mmc-make' that asks `mmc' to

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list