Walgreens swings to a loss ahead of Sycamore acquisition