General Motors is recalling nearly 3.4m cars for potential ignition switch problems.