NEW YORK (AP) -- U.S. stock indexes returned to record heights Tuesday, as corporate profits continue to come in better than analysts expected. McDonald's and Caterpillar were among the big companies reporting healthier-than-forecast earnings.
Higher prices for oil, metals and other commodities helped to lift energy and raw-materials companies, while tech stocks took a rare turn lagging the rest of the market after results for Seagate Technology and others in the industry fell short of expectations.
Treasury yields rose as the Federal Reserve begins a two-day meeting on interest-rate policy.
KEEPING SCORE: The Standard & Poor's 500 index rose nearly 8 points, or 0.3 percent, to 2,478 as of 3:20 p.m. Eastern time. If the gain holds, it would be the first for the index in four days and return it to an all-time high.
The Dow Jones industrial average added 100 points, or 0.5 percent, to 21,613. The Nasdaq composite was close to flat at 6,411. The Russell 2000 index of small-cap stocks rose 12, or 0.8 percent, to 1,450, which would also mark an all-time high.
EARTH MOVING: Caterpillar jumped $6.22, or 5.7 percent, to $114.40 after reporting better results for the latest quarter than analysts expected. It also raised its forecast for revenue and profit for the full year, citing increased demand across many of its markets.
PILING HIGHER: McDonald's rose $7.82, or 5.1 percent, to $159.67 after its revenue and earnings for the latest quarter topped Wall Street's forecast. The burger chain has been drawing in customers with a new line of premium of burgers and $1 sodas.
TECH STUMBLE: Technology stocks have been the year's biggest stars so far, as investors have been hungry for anything with the potential to grow quickly in a slow-growing global economy.
But tech stocks in the S&P 500 dipped 0.2 percent after several reported results that fell short of expectations.
Seagate Technology sank $6.32, or 15.9 percent, to $33.44 after the maker of hard drives and other electronic data storage reported weaker revenue and earnings than analysts had forecast.
MORE ENERGETIC: The price of crude was on track to rise by more than 1 percent for a second straight day, and shares of oil producers and other energy companies benefited.
Energy stocks in the S&P 500 rose 1.6 percent, the most among the 11 sectors that make up the index. Devon Energy rose $1.38, or 4.3 percent, to $33.12, and Marathon Oil rose 49 cents, or 4.1 percent, to $12.37.
Benchmark U.S. crude rose $1.55, or 3.3 percent, to settle at $47.89 per barrel. Brent crude, the international standard, rose $1.60, or 3.3 percent, to $50.20 a barrel.
Natural gas rose 5 cents to $2.94 per 1,000 cubic feet, heating oil gained 5 cents to $1.57 per gallon and wholesale gasoline climbed 4 cents to $1.60 per gallon.
COMMODITIES: Metals prices also climbed, which helped to lift shares of mining companies and other raw-material producers.
Copper jumped 11 cents, or 4 percent, to $2.85 per pound, while silver rose 10 cents to $16.54 per ounce and gold slipped $2.20 to $1,252.10 an ounce.
YIELDS: The yield on the 10-year Treasury note rose to 2.33 percent from 2.26 percent late Monday. The two-year yield climbed to 1.39 percent from 1.36 percent, and the 30-year yield rose to 2.91 percent from 2.83 percent.
FINANCIAL STRENGTH: Banks and other companies in the financial industry were strong following the rise in yields. Higher interest rates can help banks make bigger profits through lending. Financial stocks in the S&P 500 rose 1.4 percent.
FED MEETING: The Federal Reserve's policymaking committee is beginning a two-day meeting, but investors expect to see few fireworks when it announces its decision on interest rates Wednesday.
The central bank has already raised rates three times since December, and most investors expect the next rate increase to come later this year or in 2018.
CALM SAILING: The stock market has been unusually calm recently, been able to shrug off a series of potential stumbling blocks to push to record after record. Much of the market's recent climb has been due to expectations that corporate earnings will keep climbing, and analysts are looking for particularly big growth from companies in the energy, financial and technology industries.
Such calmness has some investors anticipating a turn. More normal levels of volatility may be on the way because the Federal Reserve is slowly heading in the opposite direction of stimulating the economy, and earnings expectations for some companies may prove to be too high.
"There's a lot of hope built into the market at current levels," said Rob McIver, portfolio manager at the $6.3 billion Jensen Quality Growth fund. "We're cautioning investors to be cautious and conservative."
CURRENCIES: The euro rose to $1.1652 from $1.1645 late Monday. The dollar rose to 111.89 Japanese yen from 111.11 yen, and the British pound inched up to $1.3037 from $1.3036.
MARKETS ABROAD: France's CAC 40 climbed 0.7 percent, Germany's DAX gained 0.5 percent and the FTSE 100 in London rose 0.8 percent.
Japan's Nikkei 225 index slipped 0.1 percent, South Korea's Kospi index dipped 0.5 percent and the Han Seng in Hong Kong was virtually flat.