A good compiler will only do that if the register spilling is more efficient than using more stack varibles, so I don't really see the problem.