Investors generally put aside concerns about rising oil prices Thursday and the market gained on a rally late in the day.
The major stock indicators gained ground in the final two hours of the trading session, even after the price of oil briefly passed $66 a barrel. It closed at $65.80, up 90 cents on the New York Mercantile Exchange.
But the ups and downs in stock prices seen Thursday, after a sell-off Wednesday, reflect persistent worries by investors that, despite strong corporate earnings and upbeat economic reports, oil prices will eventually exact a toll.
The Dow Jones industrial average finished up 91.48, or 0.86 percent, at 10,685.89.
Broader stock indicators also closed higher. The Standard & Poor's 500-stock index rose 8.68, or 0.71 percent, to 1237.81, and the Nasdaq composite index rose 16.74, or 0.78 percent, to 2174.55.
The market showed Thursday that investors are still torn between concerns that more expensive oil will inevitably hurt consumer spending and corporate profits and evidence that the economy is coping well with higher oil prices.
A report released Wednesday showing a decline in U.S. gasoline inventories drove fears about supply. It heightened concerns that refinery shutdowns will make it difficult for refiners to meet peak summer demand. Those concerns were tempered by a report from the International Energy Agency forecasting slower global oil demand growth in 2005.
Intel fell 6 cents, to $26.82 after it was downgraded by Goldman Sachs.
Target rose 11 cents, to $55.65. The retailer's second-quarter profit was down sharply, but sales were better than had been expected.
Whirlpool fell 83 cents, to $80.70. Whirlpool on Wednesday raised its bid for rival Maytag to $1.79 billion.
Maytag fell 21 cents, to $18.79.
News Corp. rose 58 cents, to $17. The media company reported Wednesday that its fourth-quarter earnings rose 67 percent.
New York Stock Exchange composite index rose 62.44, to 7590.83.
American Stock Exchange index rose 3.95, to 1644.48.
Russell 2000 index of smaller-company stocks rose 6.21, to 666.37.
NYSE: 1.93 billion shares, down from 2.2 billion on Wednesday. Advancers outnumbered decliners 11 to 5.
Nasdaq: 1.56 billion shares, down from 1.84 billion. Advancers outnumbered decliners 7 to 4.
Crude oil for September delivery: $65.80, up 90 cents.
Gold for current delivery: $445.50 a troy ounce, up from $436.50 on Wednesday.