1
0
mirror of https://github.com/golang/go synced 2024-10-04 09:21:21 -06:00
go/src/cmd
Russ Cox 837c204ada 6l, 8l: avoid recursion in asmandsz
The old code said

	if(x) {
		handle a
		return
	}
	aa = *a
	rewrite aa to make x true
	recursivecall(&aa)

The new code says

	params = copy out of a
	if(!x) {
		rewrite params to make x true
	}
	handle params

but it's hard to see that in the Rietveld diffs because
it gets confused by changes in indentation.

Avoiding the recursion makes other changes easier.

R=ken2
CC=golang-dev
https://golang.org/cl/2533041
2010-10-15 13:01:03 -04:00
..
5a [568]a: precise linenumbers for statements. 2010-10-07 11:13:06 +02:00
5c various: avoid %ld etc 2010-10-13 16:20:22 -04:00
5g various: avoid %ld etc 2010-10-13 16:20:22 -04:00
5l 5l, 6l, 8l: accumulate data image during import 2010-10-14 23:48:40 -04:00
6a [568]a: precise linenumbers for statements. 2010-10-07 11:13:06 +02:00
6c various: avoid %ld etc 2010-10-13 16:20:22 -04:00
6g various: avoid %ld etc 2010-10-13 16:20:22 -04:00
6l 6l, 8l: avoid recursion in asmandsz 2010-10-15 13:01:03 -04:00
8a [568]a: precise linenumbers for statements. 2010-10-07 11:13:06 +02:00
8c various: avoid %ld etc 2010-10-13 16:20:22 -04:00
8g various: avoid %ld etc 2010-10-13 16:20:22 -04:00
8l 6l, 8l: avoid recursion in asmandsz 2010-10-15 13:01:03 -04:00
cc various: avoid %ld etc 2010-10-13 16:20:22 -04:00
cgo ... changes 2010-09-24 11:55:48 -04:00
cov various: avoid %ld etc 2010-10-13 16:20:22 -04:00
ebnflint build: $GOBIN defaults to $GOROOT/bin 2010-08-24 20:00:33 -04:00
gc various: avoid %ld etc 2010-10-13 16:20:22 -04:00
godefs build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
godoc log: new interface 2010-10-12 12:59:18 -07:00
gofmt gofmt: don't substitute invalid positions with valid ones in rewrites 2010-09-24 12:58:08 -07:00
goinstall log: new interface 2010-10-12 12:59:18 -07:00
gomake build: no required environment variables 2010-08-18 10:08:49 -04:00
gopack build: $GOBIN defaults to $GOROOT/bin 2010-08-24 20:00:33 -04:00
gotest new command gotry. 2010-10-11 12:40:13 -07:00
goyacc ... changes 2010-09-24 11:55:48 -04:00
hgpatch build: no required environment variables 2010-08-18 10:08:49 -04:00
ld 5l, 6l, 8l: accumulate data image during import 2010-10-14 23:48:40 -04:00
nm various: avoid %ld etc 2010-10-13 16:20:22 -04:00
prof 6prof: more accurate usage message. 2010-09-29 20:17:18 -07:00
clean.bash build: $GOBIN defaults to $GOROOT/bin 2010-08-24 20:00:33 -04:00
make.bash build: let pkg/Makefile coordinate building of Go commands 2010-08-25 17:54:10 -04:00