[m-dev.] diff: Mmakefile in accumulator test dir

Peter Ross petdr at cs.mu.OZ.AU
Fri Feb 11 14:38:01 AEDT 2000


Hi,


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


Estimated hours taken: 1

tests/general/accumulator/Mmakefile:
    Ensure that the accumulator introduction flags are set after the
    EXTRA_MCFLAGS.


Index: Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/tests/general/accumulator/Mmakefile,v
retrieving revision 1.6
diff -u -r1.6 Mmakefile
--- Mmakefile	2000/01/10 00:44:04	1.6
+++ Mmakefile	2000/02/11 03:36:07
@@ -33,8 +33,16 @@
 		split		\
 		swap
 
-MCFLAGS = -d accum --introduce-accumulators --optimize-constructor-last-call \
+ACC_FLAGS = -d accum --introduce-accumulators --optimize-constructor-last-call \
 		--intermodule-optimization
+
+	# Optimizations to turn off.
+OPT_FLAGS = --no-deforestation --no-inlining --no-optimize-unused-args
+
+	# Ensure that the accumulator introduction flags are passed
+	# after EXTRA_MCFLAGS, so that we can override things set in
+	# EXTRA_MCFLAGS.
+ALL_MCGFLAGS+= $(OPT_FLAGS) $(ACC_FLAGS)
 
     # programs which aren't working.
 NOT_WORKING =

----
Peter Ross
PhD Student University of Melbourne
http://www.cs.mu.oz.au/~petdr/
--------------------------------------------------------------------------
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