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: internal compiler error: out of fixed registers #8012

Closed
dvyukov opened this issue May 16, 2014 · 8 comments
Closed

cmd/compile: internal compiler error: out of fixed registers #8012

dvyukov opened this issue May 16, 2014 · 8 comments

Comments

@dvyukov
Copy link
Member

dvyukov commented May 16, 2014

go version devel +c9bcacf2ba33 Wed May 14 19:24:00 2014 +0400 + linux/amd64

Program:
http://play.golang.org/p/s5dPvO0hf7

$ go build test.go
0 0
1 0
2 0
3 519444
4 0
5 519444
6 0
7 0
8 519444
9 519444
10 519832
11 519444
12 519444
13 519444
14 519444
15 519444
test.go:21: internal compiler error: out of fixed registers

arm and 386 compile successfully.
@ianlancetaylor
Copy link
Contributor

Comment 1:

Labels changed: added repo-main, release-go1.4.

@dvyukov
Copy link
Member Author

dvyukov commented May 16, 2014

Comment 2:

I have not tried to minimize it. The minimized case can be more realistic.

@rsc
Copy link
Contributor

rsc commented May 16, 2014

Comment 3:

Status changed to Accepted.

@dvyukov
Copy link
Member Author

dvyukov commented May 21, 2014

Comment 4:

Here is another program that leads to a similar crash.

Attachments:

  1. out_of_registers.zip (6505 bytes)

@jmhodges
Copy link
Contributor

Comment 5:

I've been able to transform that first one into a simple case:
http://play.golang.org/p/Nh8feuPSmH
Deleting any one of those "== false"  or the id6 check will allow it to compile. Cute!

@extemporalgenome
Copy link
Contributor

Comment 6:

On the playground, three of those "== false" suffices need to get deleted to compile.

@rsc
Copy link
Contributor

rsc commented Sep 15, 2014

Comment 7:

Labels changed: added release-none, removed release-go1.4.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc rsc changed the title cmd/gc: internal compiler error: out of fixed registers cmd/compile: internal compiler error: out of fixed registers Jun 8, 2015
@randall77
Copy link
Contributor

Fixed with SSA backend.

@golang golang locked and limited conversation to collaborators Oct 7, 2017
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

7 participants