[m-rev.] trivial diff: fix library in hl* grades

Julien Fischer juliensf at csse.unimelb.edu.au
Wed Jan 3 21:48:10 AEDT 2007


Estimated hours taken: 0.1
Branches: main

Fix standard library compilation in hl* grades.

compiler/handle_options.m:
 	The current implementation of lco is not compatible with
 	--highlevel-data so disable that optimization when the latter
 	is enabled.

Julien.

Index: compiler/handle_options.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.289
diff -u -r1.289 handle_options.m
--- compiler/handle_options.m	3 Jan 2007 02:53:31 -0000	1.289
+++ compiler/handle_options.m	3 Jan 2007 07:43:32 -0000
@@ -1260,6 +1260,11 @@
              ProfileDeep = yes
          ),

+        % --optimize-constructor-last-call is currently not compatible with
+        % --highlevel-data.
+        option_implies(highlevel_data, optimize_constructor_last_call,
+            bool(no), !Globals),
+
          % --no-reorder-conj implies --no-deforestation,
          % --no-constraint-propagation and --no-local-constraint-propagation.
          option_neg_implies(reorder_conj, deforestation, bool(no), !Globals),

--------------------------------------------------------------------------
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