cmd/6c, cmd/6g, cmd/cc: fix undefined behavior warnings

Update issue 5764

Like Tribbles, the more you kill, the more spring up in their place.

R=rsc
CC=golang-dev
https://codereview.appspot.com/13324049