GM said it set records for global revenue, North American profit and North American revenue in the second quarter, by strong sales of pickups and SUVs.