]> Cypherpunks repositories - gostls13.git/commit
6g: fix out of registers bug
authorRuss Cox <rsc@golang.org>
Sat, 11 Feb 2012 03:19:34 +0000 (22:19 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 11 Feb 2012 03:19:34 +0000 (22:19 -0500)
commitca5da31f83517780893423e46665d48149e545ee
tree3cd5ec8a68b9918e46996ebb5892f57dc9fd85ec
parent76a1cb5a009d919f4f57e5cdf4ff46d9633fe118
6g: fix out of registers bug

Fix it twice: reuse registers more aggressively in cgen abop,
and also release R14 and R15, which are no longer m and g.

Fixes #2669.

R=ken2
CC=golang-dev
https://golang.org/cl/5655056
src/cmd/6g/cgen.c
src/cmd/6g/gsubr.c
test/fixedbugs/bug410.go [new file with mode: 0644]