General Motors outsold Toyota Motor globally in the first six months to become the world’s largest automaker after the record March earthquake disrupted production in Japan.