US baker Tasty Baking Co. swung to a loss in the second quarter of the year thanks to costs linked to its new production facility but also a 7% fall in sales.