Toronto stocks rallied back from a five-session losing streak on Friday as investors reacted positively to the latest report on U.S. inflation.

The S&P/TSX composite index closed up 175.87 points, or 1.2%, at 14,778.46 with all of its 10 main sectors higher.

Despite soft commodity prices, the energy and materials sectors remained a source of strength, gaining 0.9% and 1.4% respectively.

Among energy issuers, Canadian Oil Sands Trust rose $1.39, or 2.7%, to $52.74.

Among miners, Inmet Mining was up $1.14, or 1.7%, at $69.55.

The financial sector rose 1.6%. National Bank of Canada gained $1.47, or 2.9%, to $52.78, and TD Bank was up 86¢, or 1.3%, at $67.85.

The junior S&P/TSX Venture composite index added 5.14 points, or 0.20%, to end at 2,639.40.

The Canadian dollar closed at US97.16¢, down from Thursday’s close of US97.73¢.

In New York, U.S. stocks closed higher after a government report that showed core inflation rose moderately in May.

The Dow Jones industrial average rallied 165.77 points, or 1.37%, to 12,307.35. The S&P 500 gained 20.16 points, or 1.50%, to 1,360.03. The Nasdaq composite index finished up 50.15, or 2.09%, to 2,454.50.

For the week, the Dow rose 0.8%, the S&P 500 fell 0.1% and the Nasdaq declined 0.8%.