U.S. stocks mostly climbed on Thursday, with the S&P 500 extending gains into a fourth session, as General Electric and Morgan Stanley were among the corporations reporting quarterly results that topped expectations.

"Earnings last night were pathetic and sad, and today they are not so bad," said JJ Kinahan, chief strategist at TD Ameritrade.