[m-rev.] diff: disable --loop-invariants when debugging

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Nov 2 13:59:34 AEDT 2002


Estimated hours taken: 0.25
Branches: main

compiler/handle_options.m:
	Disable the --loop-invariants optimization if tracing is enabled,
	except with --trace-optimized.

Workspace: /home/mars/fjh/ws1/mercury
Index: compiler/handle_options.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.156
diff -u -d -r1.156 handle_options.m
--- compiler/handle_options.m	31 Oct 2002 09:46:44 -0000	1.156
+++ compiler/handle_options.m	2 Nov 2002 02:55:29 -0000
@@ -677,7 +677,8 @@
 			globals__io_set_option(optimize_constructor_last_call,
 				bool(no)),
 			globals__io_set_option(optimize_saved_vars_cell,
-				bool(no))
+				bool(no)),
+			globals__io_set_option(loop_invariants, bool(no))
 		;
 			[]
 		),

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list