[m-dev.] diff: fix accumulator test failings

Peter Ross peter.ross at miscrit.be
Thu Jan 25 01:29:08 AEDT 2001


Hi,

This fix was commited on the release branch as well.

I am currently bootchecking a version of the compiler where
--introduce-accumulators implies --excess-assign and --common-struct.
I will check this in later.

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


Estimated hours taken: 0.5

Fix bug 129898: where no accumulators where being introduced into
predicates at low optimization levels.

Mmakefile:
    Turn on the optimization --common-struct, which is disabled at -O2
    and lower, so that the predicates are in a form which accumulator
    introduction recognises.

Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/general/accumulator/Mmakefile,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -u -r1.13 -r1.14
--- Mmakefile	2001/01/11 13:25:49	1.13
+++ Mmakefile	2001/01/24 14:20:31	1.14
@@ -41,7 +41,7 @@
 		--intermodule-optimization
 
 	# Optimizations to turn off/on.
-OPT_FLAGS = --trace-optimized --excess-assign
+OPT_FLAGS = --trace-optimized --excess-assign --common-struct
 
 	# Ensure that the accumulator introduction flags are passed
 	# after EXTRA_MCFLAGS, so that we can override things set in
--------------------------------------------------------------------------
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