U.S. stocks gained Tuesday, the Dow Jones industrial average rose 129.39, or 0.4 percent, to 30,943.65. The broader Standard & Poor's 500 index rose 31.52, or 0.8 percent, to 3,799.77. The technology-heavy Nasdaq composite index rose 198.68, or 1.5 percent, to 13,197.18.