NEW YORK (AP) -- U.S. stock indexes returned to their winning ways Tuesday, and the Standard & Poor's 500 index headed for a record after corporate profits continued 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 step backward 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 10 points, or 0.4 percent, to 2,479 as of 12:35 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 130 points, or 0.6 percent, to 21,643. The Nasdaq composite added 4 points, or 0.1 percent, to 6,415 after it closed at a record high Monday.
EARTH MOVING: Caterpillar jumped $5.58, or 5.2 percent, to $113.76 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 $5.90, or 3.9 percent, to $157.75 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.01, or 15.1 percent, to $33.75 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.9 percent, most among the 11 sectors that make up the index. Devon Energy rose $1.60, or 5 percent, to $33.34, and Marathon Oil climbed 57 cents, or 4.8 percent, to $12.45.
Benchmark U.S. crude rose $1.52, or 3.3 percent, to $47.865 per barrel. Brent crude, the international standard, rose $1.42, or 2.9 percent, to $50.24 a barrel.
COMMODITIES: Metals prices also climbed, which helped to lift shares of mining companies and other raw-material producers.
Copper jumped 9 cents, or 3.4 percent, to $2.83 per pound, while silver rose 1 cent to $16.45 per ounce and gold slipped $4.30 to $1,250 an ounce.
Newmont Mining rose $2.44, or 7.2 percent, to $36.34.
YIELDS: The yield on the 10-year Treasury note rose to 2.32 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.90 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.6 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.
CURRENCIES: The euro rose to $1.1655 from $1.1645 late Monday. The dollar inched up to 111.66 Japanese yen from 111.11 yen, and the British pound rose to $1.3037 from $1.3036. The ICE US Dollar Index is at its lowest level in a year.
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.