diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-30 19:11:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-30 19:11:16 +0200 |
commit | 4f33c88a51587681b7be1ae57cfbc43b627c6bc4 (patch) | |
tree | 25560404dc80007e5dc268811242c9071f6a1017 /sys/src/cmd/5a | |
parent | fcc5e75d07e5bc6cb3ddac6d9a437e7ec62d0d95 (diff) |
import updated compilers from sources
Diffstat (limited to 'sys/src/cmd/5a')
-rw-r--r-- | sys/src/cmd/5a/a.h | 4 | ||||
-rw-r--r-- | sys/src/cmd/5a/lex.c | 11 | ||||
-rw-r--r-- | sys/src/cmd/5a/mkfile | 2 |
3 files changed, 10 insertions, 7 deletions
diff --git a/sys/src/cmd/5a/a.h b/sys/src/cmd/5a/a.h index c0acda409..eb3a70ec6 100644 --- a/sys/src/cmd/5a/a.h +++ b/sys/src/cmd/5a/a.h @@ -175,9 +175,5 @@ int mywait(int*); int mycreat(char*, int); int systemtype(int); int pathchar(void); -char* mygetwd(char*, int); -int myexec(char*, char*[]); -int mydup(int, int); int myfork(void); -int mypipe(int*); void* mysbrk(ulong); diff --git a/sys/src/cmd/5a/lex.c b/sys/src/cmd/5a/lex.c index bf9d767f4..0ee8cf774 100644 --- a/sys/src/cmd/5a/lex.c +++ b/sys/src/cmd/5a/lex.c @@ -311,6 +311,11 @@ struct "MOVWD", LTYPE3, AMOVWD, "MOVWF", LTYPE3, AMOVWF, + "LDREX", LTYPE3, ALDREX, + "LDREXD", LTYPE3, ALDREXD, + "STREX", LTYPE9, ASTREX, + "STREXD", LTYPE9, ASTREXD, + /* "ABSF", LTYPEI, AABSF, "ABSD", LTYPEI, AABSD, @@ -326,6 +331,8 @@ struct "NRMD", LTYPEI, ANRMD, */ + "SQRTF", LTYPEI, ASQRTF, + "SQRTD", LTYPEI, ASQRTD, "CMPF", LTYPEL, ACMPF, "CMPD", LTYPEL, ACMPD, "ADDF", LTYPEK, AADDF, @@ -417,9 +424,9 @@ cinit(void) } pathname = allocn(pathname, 0, 100); - if(mygetwd(pathname, 99) == 0) { + if(getwd(pathname, 99) == 0) { pathname = allocn(pathname, 100, 900); - if(mygetwd(pathname, 999) == 0) + if(getwd(pathname, 999) == 0) strcpy(pathname, "/???"); } } diff --git a/sys/src/cmd/5a/mkfile b/sys/src/cmd/5a/mkfile index e26b6433c..1933aae09 100644 --- a/sys/src/cmd/5a/mkfile +++ b/sys/src/cmd/5a/mkfile @@ -16,4 +16,4 @@ BIN=/$objtype/bin < /sys/src/cmd/mkone YFLAGS=-D1 -d -lex.$O: ../cc/macbody ../cc/lexbody ../cc/compat +lex.$O: ../cc/macbody ../cc/lexbody |