[m-dev.] diff: test cases for .agc bugs.

Tyson Richard DOWD trd at cs.mu.oz.au
Wed May 14 16:45:17 AEST 1997


> > > I think you also need to set MGNUCFLAGS and MLFLAGS for those modules.
> > > In fact, it is probably best to override the GRADE variable for
> > > those modules rather than overriding MCFLAGS, MGNUCFLAGS, and MLFLAGS.
> > > Use the same technique that is used to override MCFLAGS.

How about this?

Index: tests/Mmake.common
===================================================================
RCS file: /home/staff/zs/imp/tests/Mmake.common,v
retrieving revision 1.7
diff -u -r1.7 Mmake.common
--- Mmake.common	1997/04/21 09:55:39	1.7
+++ Mmake.common	1997/05/14 06:40:35
@@ -3,6 +3,13 @@
 MCFLAGS = $(MCFLAGS-$*) $(EXTRA_MCFLAGS)
 MGNUCFLAGS=-g $(EXTRA_MGNUCFLAGS) $(EXTRA_CFLAGS)
 
+# We only get to set the grade once, so take the first of either the
+# specific grade for the test, or the normal grade for all tests.  Note
+# that we evaluate NORMAL_GRADE now (using :=), so as to avoid GRADE
+# being defined in terms of itself.
+NORMAL_GRADE := $(GRADE)
+GRADE = $(firstword $(GRADE-$*) $(NORMAL_GRADE))
+
 # override this with `mmake HAVE_NUPROLOG=yes'
 # if you want to rebuild the `.exp' files.
 HAVE_NUPROLOG=no
Index: tests/valid/Mmake
===================================================================
RCS file: /home/staff/zs/imp/tests/valid/Mmake,v
retrieving revision 1.36
diff -u -r1.36 Mmake
--- Mmake	1997/05/11 11:00:55	1.36
+++ Mmake	1997/05/14 04:56:18
@@ -8,6 +8,8 @@
 
 # please keep this list sorted
 SOURCES= \
+	agc_unbound_typevars.m \
+	agc_unused_in.m \
 	compl_unify_bug.m \
 	complicated_unify.m \
 	constructor_arg_names.m \
@@ -73,6 +75,8 @@
 
 # some regression tests only failed with particular options enabled
 # (please keep this list sorted)
+GRADE-agc_unbound_typevars	= asm_fast.agc
+GRADE-agc_unused_in		= asm_fast.agc
 MCFLAGS-compl_unify_bug		= -O3
 MCFLAGS-middle_rec_labels	= --middle-rec --no-follow-vars 
 MCFLAGS-simplify_bug		= -O-1

Test cases are still the same.

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't eveyone's cup of
     trd at cs.mu.oz.au        #  fur.
http://www.cs.mu.oz.au/~trd #



More information about the developers mailing list