mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.cc] cmd/asm: fix a few minor issues
Fix one place where semicolons were not recognized and fix the pattern match for the syntax of some pseudo ops. Also clean up a couple of unreachable code pieces. There is still an undiagnosed bit difference betwen old and new .6 files. TBD. With these fixes, asm can successfully compile and test the entire tree. (Verified by turn off verifyAsm in cmd/go make.bash cp $GOROOT/bin/asm $GOROOT/pkg/tool/darwin_amd64/6a go test -short std ) Change-Id: I91ea892098f76ef4f129fd2530e0c63ffd8745a9 Reviewed-on: https://go-review.googlesource.com/3688 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
5beec6a699
commit
68475da68d
6 changed files with 20 additions and 21 deletions
|
|
@ -93,7 +93,9 @@ func (in *Input) Next() ScanToken {
|
|||
in.text = in.peekText
|
||||
return tok
|
||||
}
|
||||
for {
|
||||
// If we cannot generate a token after 100 tries, we're in trouble.
|
||||
// The usual case is caught by Push, below, but be safe.
|
||||
for i := 0; i < 100; i++ {
|
||||
tok := in.Stack.Next()
|
||||
switch tok {
|
||||
case '#':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue