Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: out of fixed registers on amd64 and arm #10088

Closed
dvyukov opened this issue Mar 5, 2015 · 3 comments
Closed

cmd/compile: out of fixed registers on amd64 and arm #10088

dvyukov opened this issue Mar 5, 2015 · 3 comments

Comments

@dvyukov
Copy link
Member

dvyukov commented Mar 5, 2015

go version devel +7be32d0 Wed Mar 4 18:24:53 2015 +0000 linux/amd64

The following program crashes compiler with "internal compiler error: out of fixed registers" on amd64 and arm but not on 386.

package main
func main() {
    type X struct {
        f int
    }
    var x X
    var xx []X
    var s0 []int
    var s1 []func()
    var s2 [][][]int
    var s3 [][]int
    var s4 [][]int16
    s1[xx[int(s4[0][s0[s3[s0[s2[s3[s0[s0[s0[x.f]]-1]+1][0]-1][0][0]]-1][0]]+1])].f-1]() 
}
@dvyukov dvyukov added this to the Go1.5 milestone Mar 5, 2015
@rsc rsc modified the milestones: Unplanned, Go1.5 May 19, 2015
@rsc
Copy link
Contributor

rsc commented May 19, 2015

There is basically no benefit to trying to fix this at this point in the cycle, and it might introduce real bugs. Also, since this code is basically in maintenance mode pending Keith's new SSA-based code generation, it's not clear we should spend any time fixing corner cases like this at all. Removed milestone.

@rsc rsc changed the title cmd/gc: out of fixed registers on amd64 and arm cmd/compile: out of fixed registers on amd64 and arm Jun 8, 2015
@odeke-em
Copy link
Member

Duplicate of #8355? cc @griesemer.

@griesemer
Copy link
Contributor

@odeke-em Sure. Closing as duplicate of #8355.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants