]> Cypherpunks repositories - gostls13.git/commit
cmd/6g, cmd/8g: fix two "out of fixed registers" cases.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 26 Sep 2012 19:17:11 +0000 (21:17 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 26 Sep 2012 19:17:11 +0000 (21:17 +0200)
commit6feb61325a501b3e122c081624c837eeae5bd0a9
tree6485f56c709244c20f03aa9dc640a55aa1ddad0b
parent7936ab58f7feb25f8c9b367585886d9872a17ad3
cmd/6g, cmd/8g: fix two "out of fixed registers" cases.

In two cases, registers were allocated too early resulting
in exhausting of available registers when nesting these
operations.

The case of method calls was due to missing cases in igen,
which only makes calls but doesn't allocate a register for
the result.

The case of 8-bit multiplication was due to a wrong order
in register allocation when Ullman numbers were bigger on the
RHS.

Fixes #3907.
Fixes #4156.

R=rsc
CC=golang-dev, remy
https://golang.org/cl/6560054
src/cmd/6g/cgen.c
src/cmd/6g/ggen.c
src/cmd/8g/cgen.c
src/cmd/8g/ggen.c