NEW YORK>> The U.S. stock market ran up to the edge of another record on Thursday.

The S&P 500 climbed 0.8% and is sitting just 0.05% below its all-time closing high, which was set in February. It briefly topped the mark during the afternoon in the latest milestone for the index at the heart of many 401(k) accounts, which had dropped roughly 20% below its record during the spring on worries about President Donald Trump’s tariffs.

The Dow Jones Industrial Average rallied 404 points, or 0.9%, and the Nasdaq composite gained 1%.

McCormick, the seller of cooking spices, helped lead the way and jumped 5.3% after delivering a better-than-expected profit report. The company also gave a forecast for profit over its full fiscal year that topped analysts’ expectations, including planned efforts to offset increased costs caused by tariffs.

All told, the S&P 500 rose 48.86 points to 6,141.02. The Dow Jones Industrial Average rose 404.41 to 43,386.84, and the Nasdaq composite gained 194.36 to 20,167.91.

Wall Street’s worries about Trump’s tariffs have receded since the president shocked the world in April with stiff proposed levies, but they have not disappeared. The wait is still on to see how big the tariffs will ultimately be, how much they will hurt the economy and how much they will push up inflation.

The economy so far seems to be holding up OK, though slowing, and more reports arrived on Thursday bolstering that. One said that orders for washing machines and other manufactured goods that last at least three years grew by more last month than economists expected. A second said fewer U.S. workers filed for unemployment benefits last week, a potential signal of fewer layoffs.

A third report said the U.S. economy shrank by more during the first three months of 2025 than earlier estimated. But many economists say those numbers got distorted by a surge of purchases of foreign products by U.S. companies hoping to get ahead of tariffs. They’re expecting a better performance in upcoming months.

Following the reports, Treasury yields swiveled up and down in the bond market before easing.