GM’s stock rallies after profit beat by a wide margin and the full-year outlook was raised.