]> Cypherpunks repositories - gostls13.git/commit
cmd/5a, cmd/dist, runtime: support m/g in the assembler, drop support for R9/R10
authorShenghou Ma <minux.ma@gmail.com>
Wed, 29 May 2013 19:03:52 +0000 (03:03 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 29 May 2013 19:03:52 +0000 (03:03 +0800)
commit5d081792b6990ecb34346573d351b8a4d530270e
treea184fbcd4eacb8062de5223e5c74160acd502e7d
parenta307c5c9b700f80b396e5cc6b4b8cfb74d96c770
cmd/5a, cmd/dist, runtime: support m/g in the assembler, drop support for R9/R10
to avoid unintentionally clobber R9/R10.
Thanks Lucio for the suggestion.

PS: yes, this could be considered a big change (but not an API change), but
as it turns out even temporarily changes R9/R10 in user code is unsafe and
leads to very hard to diagnose problems later, better to disable using R9/R10
when the user first uses it.
See CL 6300043 and CL 6305100 for two problems caused by misusing R9/R10.

R=golang-dev, khr, rsc
CC=golang-dev
https://golang.org/cl/9840043
doc/go1.2.txt
src/cmd/5a/lex.c
src/cmd/dist/buildruntime.c
src/pkg/runtime/cgo/asm_arm.s
src/pkg/runtime/vlop_arm.s