Australian clothing group Pacific Brands has swung to a full year profit, driven by sales growth in its underwear division.