[m-dev.] diff: fix arg_order_rearrangement test case

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Oct 31 13:53:47 AEDT 2000


Estimated hours taken: 0.25

tests/warnings/Mmakefile:
	Pass `--excess-assign --common-struct' to mmc for the
	arg_order_rearrangement test case, since without it you don't
	get any accumulator introduction in this test case, and so you
	don't get the warning.  Note that `--common-struct' is not
	actually doing any common structure elimination for this test
	case, but it is needed because it has the effect of removing
	some unnecessary assignments that `--excess-assign' doesn't
	remove.

Workspace: /home/pgrad/fjh/ws/hg
Index: tests/warnings/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/warnings/Mmakefile,v
retrieving revision 1.14
diff -u -d -r1.14 Mmakefile
--- tests/warnings/Mmakefile	2000/10/31 02:36:11	1.14
+++ tests/warnings/Mmakefile	2000/10/31 02:50:47
@@ -29,6 +29,12 @@
 # some files need to be compiled with special options
 
 MCFLAGS-arg_order_rearrangment	= --introduce-accumulators
+					--excess-assign --common-struct
+					# we need to explicitly enable those
+					# optimizations because otherwise the
+					# arg_order_rearrangement warning
+					# doesn't show up at lower
+					# optimization levels
 MCFLAGS-duplicate_call		= --warn-duplicate-calls
 MCFLAGS-unused_args_test	= --warn-unused-args
 MCFLAGS-unused_import		= --warn-interface-imports

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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