Stocks advanced Wednesday as investors considered another batch of solid quarterly corporate earnings results and looked ahead to more reports.