You have to be a bit careful about your wording here. The "relativistic mass" of a particle increases as it approaches the speed of light, but its "mass" or "invariant mass" stays constant.
So the situation is this: normal matter, with a non-zero rest mass, cannot achieve the speed of light. It's mass will remain constant with velocity, but its relativistic mass will increase as its velocity increases, approaching infinity at the speed of light.
Light, with a zero rest mass, cannot travel at any speed other than the speed of light. Light has no mass (no rest mass), but it does have a relativistic mass.
If you try to apply the mathematical formulas that apply to particles with a non-zero rest mass to light, you'd find that you multiply the inital zero rest mass of light by infinity to get light's "relativistic mass". This yields an undefined result. When you use the correct formulas, though, you find that light has a finite relativistic mass.
You might also find the sci.physics.faq "Does mass change with velocity" helpful in understanding this point.
http://math.ucr.edu/home/baez/physics/Relativity/SR/mass.html