General Motors is raising several key financial targets for 2024 after easily beating Wall Street's earnings expectations for the second quarter while it restructures money-losing operations such as autonomous vehicles and its China business.