General Mills booked a steep decline in second-quarter earnings due to restructuring costs and lower sales.