cmd/gc: implement latest rules for checking make sizes

Fixes issue 4085.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7277047