[m-rev.] diff: --gc accurate => --no-optimize-dups

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Nov 28 19:39:55 AEDT 2003


Estimated hours taken: 12
Branches: main

compiler/handle_options.m:
	Disable the dup_elim optimization when accurate GC is enabled,
	because it does not correctly preserve the accurate GC layout
	information.

Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: compiler/handle_options.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.191
diff -u -d -r1.191 handle_options.m
--- compiler/handle_options.m	12 Nov 2003 16:15:53 -0000	1.191
+++ compiler/handle_options.m	25 Nov 2003 07:01:36 -0000
@@ -974,6 +974,8 @@
 	% which has a different label layout structure),
 	% so we need to disable it when tracing.
 	option_implies(procid_stack_layout, optimize_dups, bool(no)),
+	% likewise for accurate GC
+	option_implies(agc_stack_layout, optimize_dups, bool(no)),
 
 	% XXX deforestation and constraint propagation do not perform
 	% folding on polymorphic predicates correctly with

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