US stocks advanced on Thursday as a gain of more than $1 a barrel in oil prices boosted shares of energy companies, including Exxon Mobil Corp, offsetting disappointment over a profit report from Goldman Sachs. Exxon's stock led the major advancers in both the Dow and the S&P 500 as US crude for July delivery rose 2.2 percent to $67.70 a barrel on fresh supply concerns.
Stocks also drew support from a government report that showed the core reading in the May US Producer Price Index, minus food and energy costs, was in line with expectations.
The Dow Jones industrial average was up 90.72 points, or 0.67 percent, at 13,573.07. The Standard & Poor's 500 Index was up 8.81 points, or 0.58 percent, at 1,524.48. The Nasdaq Composite Index was up 21.64 points, or 0.84 percent, at 2,603.95.
Exxon shares rose 1.7 percent to $84.80 on the New York Stock Exchange. On the Nasdaq, Apple Inc contributed the most its gain. Apple's stock rose 1.3 percent to $118.99 on optimism about the company's upcoming iPhone, which will be sold by AT&T.