[m-dev.] diff: fix bug when acc intro was failing with the -O1 --opt-space flags

Peter Ross peter.ross at miscrit.be
Fri Jan 12 00:26:59 AEDT 2001


Hi,


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


Estimated hours taken: 0.5

Fix a bug where some of the test cases where failing to introduce
accumulators when the compiler was called with the '-O1 --opt-space'
flags.

Mmakefile:
    Turn on --excess-assign so that the HLDS is left in a form that the
    accumulator introduction phase can introduce accumulators into.


Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/general/accumulator/Mmakefile,v
retrieving revision 1.12
diff -u -r1.12 Mmakefile
--- Mmakefile	2000/06/28 07:42:58	1.12
+++ Mmakefile	2001/01/11 13:22:37
@@ -41,7 +41,7 @@
 		--intermodule-optimization
 
 	# Optimizations to turn off/on.
-OPT_FLAGS = --trace-optimized
+OPT_FLAGS = --trace-optimized --excess-assign
 
 	# 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