Stocks posted their fourth straight week of gains, pushing the Dow Jones Industrial Average to its third record close in row.

The markets were boosted by better-than-expected corporate earnings, which managed to outweigh a weaker-than-expected estimate of first-quarter economic growth.