]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: delete overflow checking, make labels function-scoped
authorRob Pike <r@golang.org>
Thu, 29 Jan 2015 20:07:50 +0000 (12:07 -0800)
committerRob Pike <r@golang.org>
Thu, 29 Jan 2015 20:26:26 +0000 (20:26 +0000)
commitb528063099adfbaea3319ca8de57eee3130c5d4c
tree1745cd5a694fdc342e6e1ab0cfb6c8ee8b9ca0cf
parent36e5f4d53f0843d11bef8a5e37671e72c36a2805
[dev.cc] cmd/asm: delete overflow checking, make labels function-scoped

The overflow checking was causing more problems than it was avoiding,
so get rid of it. But because arithmetic is done with uint64s, to simplify
dealing with large constants, complain about right shift and divide with
huge numbers to avoid ambiguity about signed shifts.

Change-Id: I5b5ea55d8e8c02846605f4a3f8fd7a176b1e962b
Reviewed-on: https://go-review.googlesource.com/3531
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/overflow.go [deleted file]
src/cmd/asm/internal/asm/parse.go