Global stocks gain as economic toll of virus worsens