GCC's optimiser seems to screw up if this is left static...