DETROIT--General Motors Co posted a better-than-expected net profit on Thursday as high-margin pickup trucks, SUVs and crossovers helped overcome slowing sales in the United States and China, and reiterated its full-year earnings forecast. GM shares gained 3.3% to over a one-year high.

  Virtually all of the No. 1 U.S. automaker's profit came from North America, where it posted a profit margin of 10.7% and profits came in $400 million ahead of analysts' expectations.
  Evercore ISI analyst Chris McNally, in a research note entitled, "Truck, truck and away...," said the rest of the year and 2020 could be the company's "time to shine."
  "The alarm clock may be softly ringing for GM to finally reawaken from its trading range slumber," he said of the stock.
  GM executives said things will get even better as the rollout of the Chevrolet Silverado and GMC Sierra trucks continues, including the introduction of diesel-powered and heavy-duty pickups this year and large SUVs early in 2020. "We delivered a solid quarter as we begin to demonstrate the earnings power of our full-size truck business," Chief Executive Mary Barra said on a call with analysts.
  GM is open to working with other automakers on the development of electric vehicles, Barra also said.
  GM's strong showing came despite slumping industry demand in China, the world's largest auto market. Other automakers, including U.S. rival Ford Motor Co and Germany's Daimler AG, offered disappointing forecasts last week.
  GM also faces an escalating price war in the lucrative U.S. pickup truck segment for its newly-revamped Chevrolet Silverado. Nevertheless, GM was able to add $1 billion in profits in the quarter in North America thanks to stronger pricing and higher sales of more lucrative vehicles.
  Fiat Chrysler Automobiles NV (FCA) has been battling for market share with its all-new Ram pickup and outsold the Silverado in the second quarter. FCA took the market by surprise on Wednesday by sticking to its full-year profit guidance after a strong performance from its Ram pickup truck in North America helped it defy the industry slowdown.
  GM's overall U.S. sales fell 1.5% in the second quarter. In the second quarter, GM's China sales slid 12%, a slight improvement over the 17.5% decline in the first quarter. GM said industry-wide sales in China should remain weak for the rest of the year, but added that its vehicle lineup in that market will be boosted by the addition of new SUVs.
  GM's equity income from its Chinese operations fell to $235 million from $592 million a year earlier. The automaker said Chinese equity income in the second half of the year should roughly match the $611 million it posted for the first half.
  The company said it still expects full-year 2019 earnings per share in a range from $6.50 to $7. Analysts are expecting $6.62 a share.