-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: please cherry pick internal compiler error fix for #23504 for 1.10.4 [1.10 backport] #26851
Comments
Thank you @cwedgwood for reporting this! I believe @randall77 has been looking at backporting to 1.10.* but also /cc @FiloSottile @andybons for auto-cherry picking/backporting. |
This is not a regression since it's been failing since Go 1.7. Normally we do not backport to fix such issues. |
I'm OK with backporting https://golang.org/cl/88955 to 1.10. I'll send a CL. |
Change https://golang.org/cl/128855 mentions this issue: |
@ianlancetaylor if this is deemed unsuitable for 1.10.x close this out as-is and it becomes a non-issue for 1.11.x in a little bit. |
Closed by merging dea961e to release-branch.go1.10. |
…eting a branch When we go from a branch block to a plain block, reset the branch prediction bit. Downstream passes asssume that if the branch prediction is set, then the block has 2 successors. Fixes #23504 Fixes #26851 Change-Id: I2898ec002228b2e34fe80ce420c6939201c0a5aa Reviewed-on: https://go-review.googlesource.com/88955 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> (cherry picked from commit 4313d77) Reviewed-on: https://go-review.googlesource.com/128855 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
@randall77 It looks perhaps like the fix for #23504 didn't make it to 1.10.x releases (it's not in 1.9.x either, but I already patch those locally and am upgrading so less concerned).
Cherry picking the fix (4313d77) and rebuilding
1.10.3
works as expected for me.What version of Go are you using (
go version
)?go version go1.10.3 linux/amd64
What did you do?
https://play.golang.org/p/OWxLKfWXnnh
go build
ofWhat did you expect to see?
... no output ...
What did you see instead?
(apologies, this is the output from the playground as i now have it fixed locally so no error and am too lazy to rebuild it 'broken' right now)
The text was updated successfully, but these errors were encountered: