mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
arm: work around reg allocator bug in 5g, in two parts.
1) hack regalloc to leave R9 (m) and R10 (g) alone. the real fix is tricker, but this gets us running 2) fix up the few places in the package sources that the shortage of registers affects, by simplifying some expressions. all of this should be reverted when the right fix is in. Fixes #1084. R=rsc CC=golang-dev https://golang.org/cl/2132046
This commit is contained in:
parent
b9988edbb6
commit
0aa2317096
7 changed files with 53 additions and 17 deletions
|
|
@ -371,8 +371,14 @@ func (p *Parser) popElement(t *EndElement) bool {
|
|||
p.err = p.syntaxError("element <" + s.name.Local + "> closed by </" + name.Local + ">")
|
||||
return false
|
||||
case s.name.Space != name.Space:
|
||||
p.err = p.syntaxError("element <" + s.name.Local + "> in space " + s.name.Space +
|
||||
"closed by </" + name.Local + "> in space " + name.Space)
|
||||
// BUG: work around bug in 5g by simplifying expression.
|
||||
// p.err = p.syntaxError("element <" + s.name.Local + "> in space " + s.name.Space +
|
||||
// "closed by </" + name.Local + "> in space " + name.Space)
|
||||
str := "element <" + s.name.Local
|
||||
str += "> in space " + s.name.Space
|
||||
str += "closed by </" + name.Local
|
||||
str += "> in space " + name.Space
|
||||
p.err = p.syntaxError(str)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue