-
Notifications
You must be signed in to change notification settings - Fork 18k
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: value v132 still has 1 uses when GOARCH=arm #48916
Comments
Mh, I can't reproduce this:
cc @randall77 |
I can reproduce this on
|
I can reproduce on $ go version
go version go1.17.2 linux/amd64
$ GOARCH=arm go build main.go
# command-line-arguments
./main.go:12:2: internal compiler error: 'foo': value v132 still has 1 uses |
Seems this happens on platform with reg abi supports. I bisected it to CL 293396. |
Has something to do with softfloat, also fails for
but not
|
One good-looking fix is to run dead code after prove; dead stuff was fed to expand_calls, and that's not a good idea in general. |
Yeah, we probably could do that. I think there was another issue about dead values left over from prove. On the other hand, expand_calls could probably be more resilient also. This particular problem seems that we invalided v138 in one iteration and then a later iteration generates a use |
Here's a recent issue for which a deadcode pass after prove would help: |
Change https://golang.org/cl/355409 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
main.go
is the following:What did you expect to see?
Program compiled successfully.
What did you see instead?
The text was updated successfully, but these errors were encountered: