Only upgrade gcc when testing gcc.