[m-rev.] diff: fix no_inline_builtins test failure

Simon Taylor stayl at cs.mu.OZ.AU
Thu Feb 13 11:24:58 AEDT 2003


Estimated hours taken: 0.25
Branches: main

compiler/handle_options.m:
	`--constant-propagation' effectively inlines builtins,
	so disable it if `--no-inline-builtins' was specified.
	This fixes failures of tests/debugger/no_inline_builtins.m.

Index: handle_options.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.171
diff -u -u -r1.171 handle_options.m
--- handle_options.m	12 Feb 2003 23:47:23 -0000	1.171
+++ handle_options.m	13 Feb 2003 00:20:43 -0000
@@ -800,6 +800,9 @@
 	% don't work with -ansi.
 	option_implies(parallel, ansi_c, bool(no)),
 
+	% `--constant-propagation' effectively inlines builtins.
+	option_neg_implies(inline_builtins, constant_propagation, bool(no)),
+
 	% --no-reorder-conj implies --no-deforestation,
 	% --no-constraint-propagation and --no-local-constraint-propagation.
 	option_neg_implies(reorder_conj, deforestation, bool(no)),
--------------------------------------------------------------------------
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