]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/go: run C and Go assemblers side by side and verify matching output
authorRuss Cox <rsc@golang.org>
Wed, 21 Jan 2015 17:04:35 +0000 (12:04 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 21 Jan 2015 19:43:24 +0000 (19:43 +0000)
commit5282e3ab26dd01180640a1a0e59ed5a4d070ba44
tree7e0599122db9ec04e514f0d164dd588b80d20ad7
parentf4d2d71752474aed3f35b42ac77175e970da76ab
[dev.cc] cmd/go: run C and Go assemblers side by side and verify matching output

When an assembly file must be assembled, cmd/go now runs
both (say) 6a and new6a and checks that they write identical
output files.

This serves as a build-time test that the new assemblers are accurate
conversions of the old ones. As long as they are producing identical
bytes, there's no need for run-time testing.

Once the C conversion is done, we'll throw away the C code
and this checking.

Change-Id: I0216dad56b7e79011eecd27f1aff4fe79bfe720b
Reviewed-on: https://go-review.googlesource.com/3145
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/build.go
src/cmd/go/main.go