]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: avoid passing unevaluated constant expressions to backends.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 25 Jul 2013 13:42:05 +0000 (09:42 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 25 Jul 2013 13:42:05 +0000 (09:42 -0400)
commitd7c99cdf9fa5548db179758ac9dd267f5f1c9e88
tree2e0e30275bf2d7d6a3cf3decdcf38e21560dca4d
parentc0a4ce52c604829f9b2b320a54bf0c41057c78ca
cmd/gc: avoid passing unevaluated constant expressions to backends.

Backends do not exactly expect receiving binary operators with
constant operands or use workarounds to move them to
register/stack in order to handle them.

Fixes #5841.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/11107044
src/cmd/gc/walk.c
test/fixedbugs/issue5841.go [new file with mode: 0644]