* toplev.c (rest_of_compilation): Reorganize way reg_scan is called