Commit 58f7fc33 authored by Russ Cox's avatar Russ Cox

make 8a, 8c build again.

add 8a 8c 8l to the build to keep us honest.

R=r
DELTA=33  (28 added, 0 deleted, 5 changed)
OCL=26694
CL=26711
parent 34a5537e
...@@ -33,11 +33,30 @@ ...@@ -33,11 +33,30 @@
#include "y.tab.h" #include "y.tab.h"
#include <ctype.h> #include <ctype.h>
enum
{
Plan9 = 1<<0,
Unix = 1<<1,
Windows = 1<<2,
};
int
systemtype(int sys)
{
return sys&Plan9;
}
int
pathchar(void)
{
return '/';
}
void void
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
char *p; char *p;
int nout, nproc, status, i, c; int nout, nproc, i, c;
thechar = '8'; thechar = '8';
thestring = "386"; thestring = "386";
...@@ -162,7 +181,7 @@ assemble(char *file) ...@@ -162,7 +181,7 @@ assemble(char *file)
pass = 1; pass = 1;
pinit(file); pinit(file);
Bprint(&obuf, "%s\n", thestring); Bprint(&obuf, "%s\n", thestring);
for(i=0; i<nDlist; i++) for(i=0; i<nDlist; i++)
...@@ -172,7 +191,7 @@ assemble(char *file) ...@@ -172,7 +191,7 @@ assemble(char *file)
cclean(); cclean();
return nerrors; return nerrors;
} }
Bprint(&obuf, "\n!\n"); Bprint(&obuf, "\n!\n");
pass = 2; pass = 2;
...@@ -308,7 +327,7 @@ struct ...@@ -308,7 +327,7 @@ struct
"CMPSW", LTYPE0, ACMPSW, "CMPSW", LTYPE0, ACMPSW,
"CMPXCHGB", LTYPE3, ACMPXCHGB, "CMPXCHGB", LTYPE3, ACMPXCHGB,
"CMPXCHGL", LTYPE3, ACMPXCHGL, "CMPXCHGL", LTYPE3, ACMPXCHGL,
"CMPXCHGW", LTYPE3, ACMPXCHGW, "CMPXCHGW", LTYPE3, ACMPXCHGW,
"DAA", LTYPE0, ADAA, "DAA", LTYPE0, ADAA,
"DAS", LTYPE0, ADAS, "DAS", LTYPE0, ADAS,
"DATA", LTYPED, ADATA, "DATA", LTYPED, ADATA,
...@@ -661,9 +680,9 @@ cinit(void) ...@@ -661,9 +680,9 @@ cinit(void)
} }
pathname = allocn(pathname, 0, 100); pathname = allocn(pathname, 0, 100);
if(mygetwd(pathname, 99) == 0) { if(getwd(pathname, 99) == 0) {
pathname = allocn(pathname, 100, 900); pathname = allocn(pathname, 100, 900);
if(mygetwd(pathname, 999) == 0) if(getwd(pathname, 999) == 0)
strcpy(pathname, "/???"); strcpy(pathname, "/???");
} }
} }
......
...@@ -30,7 +30,7 @@ LIB=\ ...@@ -30,7 +30,7 @@ LIB=\
../cc/cc.a$O ../cc/cc.a$O
$(TARG): $(OFILES) $(LIB) $(TARG): $(OFILES) $(LIB)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9 $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lm -lbio -l9
$(OFILES): $(HFILES) $(OFILES): $(HFILES)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
for i in cc 6l 6a 6c gc 6g ar db nm acid cov gobuild prof gotest for i in cc 6l 6a 6c 8l 8a 8c gc 6g ar db nm acid cov gobuild prof gotest
do do
cd $i cd $i
make clean make clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment