Added mechanism to warn correctly about conflicts
authorceriel <none@none>
Fri, 19 Jan 1990 16:05:44 +0000 (16:05 +0000)
committerceriel <none@none>
Fri, 19 Jan 1990 16:05:44 +0000 (16:05 +0000)
19 files changed:
mach/6500/as/Makefile
mach/6800/as/Makefile
mach/6805/as/Makefile
mach/6809/as/Makefile
mach/arm/as/Makefile
mach/i386/as/Makefile
mach/i80/as/Makefile
mach/i86/as/Makefile
mach/m68020/as/.distr
mach/m68020/as/Expect [new file with mode: 0644]
mach/m68020/as/Makefile
mach/m68k2/as/Makefile
mach/ns/as/Makefile
mach/pdp/as/Makefile
mach/proto/as/Makefile
mach/s2650/as/Makefile
mach/vax4/as/Makefile
mach/z80/as/Makefile
mach/z8000/as/Makefile

index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 3a5e6b7..b07613e 100644 (file)
@@ -5,3 +5,4 @@ mach2.c
 mach3.c
 mach4.c
 mach5.c
+Expect
diff --git a/mach/m68020/as/Expect b/mach/m68020/as/Expect
new file mode 100644 (file)
index 0000000..f17a15b
--- /dev/null
@@ -0,0 +1 @@
+expect 6 shift/reduce, 2 reduce/reduce conflicts
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c
index 836fa73..88bbdd3 100644 (file)
@@ -40,7 +40,7 @@ as:   $(COBJ) as.o
 
 as.y:  $(CDIR)/comm2.y
        $(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
-       @echo "expect 1 shift/reduce conflict"
+       @if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
 
 lint:   $(CSRC) as.c
        lint $(INCL) $(CSRC) as.c