Microwave emission and polarization of a flaring loop