General Motors says it will spend $890 million at five factories to upgrade its V-8 engines to make them more fuel efficient.