Commit 0d4d582c authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

cmd/5a, cmd/6a, cmd/8a, cmd/9a: check nerrors before exit

Also fix one unaligned stack size for nacl that is caught
by this change.

Fixes #9539.

Change-Id: Ib696a573d3f1f9bac7724f3a719aab65a11e04d3
Reviewed-on: https://go-review.googlesource.com/2600Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent 2feff003
...@@ -122,6 +122,8 @@ main(int argc, char *argv[]) ...@@ -122,6 +122,8 @@ main(int argc, char *argv[])
if(assemble(argv[0])) if(assemble(argv[0]))
errorexit(); errorexit();
Bflush(&bstdout); Bflush(&bstdout);
if(nerrors > 0)
errorexit();
exits(0); exits(0);
} }
......
...@@ -132,6 +132,8 @@ main(int argc, char *argv[]) ...@@ -132,6 +132,8 @@ main(int argc, char *argv[])
if(assemble(argv[0])) if(assemble(argv[0]))
errorexit(); errorexit();
Bflush(&bstdout); Bflush(&bstdout);
if(nerrors > 0)
errorexit();
exits(0); exits(0);
} }
......
...@@ -127,6 +127,8 @@ main(int argc, char *argv[]) ...@@ -127,6 +127,8 @@ main(int argc, char *argv[])
if(assemble(argv[0])) if(assemble(argv[0]))
errorexit(); errorexit();
Bflush(&bstdout); Bflush(&bstdout);
if(nerrors > 0)
errorexit();
exits(0); exits(0);
} }
......
...@@ -131,6 +131,8 @@ main(int argc, char *argv[]) ...@@ -131,6 +131,8 @@ main(int argc, char *argv[])
if(assemble(argv[0])) if(assemble(argv[0]))
errorexit(); errorexit();
Bflush(&bstdout); Bflush(&bstdout);
if(nerrors > 0)
errorexit();
exits(0); exits(0);
} }
......
...@@ -645,7 +645,7 @@ TEXT runtime·cputicks(SB),NOSPLIT,$0-0 ...@@ -645,7 +645,7 @@ TEXT runtime·cputicks(SB),NOSPLIT,$0-0
// memhash_varlen(p unsafe.Pointer, h seed) uintptr // memhash_varlen(p unsafe.Pointer, h seed) uintptr
// redirects to memhash(p, h, size) using the size // redirects to memhash(p, h, size) using the size
// stored in the closure. // stored in the closure.
TEXT runtime·memhash_varlen(SB),NOSPLIT,$20-12 TEXT runtime·memhash_varlen(SB),NOSPLIT,$24-12
GO_ARGS GO_ARGS
NO_LOCAL_POINTERS NO_LOCAL_POINTERS
MOVL p+0(FP), AX MOVL p+0(FP), AX
......
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