Stocks squeeze out gains for second session, but Syria fears linger

Stocks finished in positive territory Thursday thanks to a pair of stronger-than-expected economic reports, but lingering worries over Syria put a damper on gains.

(Read more: Selling on Syria likely short-lived, going by history)

Symbol
Name
Price
 
Change
%Change
DJIA
---
NASDAQ
---
S&P 500
---

The Dow Jones Industrial Average eked out a small gain of 16.44 points to close at 14,840.95, led by Verizon and Boeing. ExxonMobil led the decliners.

The S&P 500 edged up 3.21 points to end at 1,638.17. And the Nasdaq rose 26.95 points to finish at 3,620.30.

The CBOE Volatility Index (VIX), widely considered the best gauge of fear in the market, gained near 17.

Among the key S&P sectors, telecoms rallied, while energy fell.

"There are a number of resistance levels that the S&P will face on this rally: the 50-day moving average at 1,660, down trend line resistance at 1,670 and the gap at 1,685," said Elliot Spar, market strategist at Stifel Nicolaus. "It doesn't seem like a tall order but the technical damage done to so many individual stocks will probably make this rally to resistance levels labored for many names."

(Read more: Gundlach: Thismarket is just 'fear and loathing')

On the economic front, weekly jobless claims declined 6,000 to a seasonally adjusted 331,000, according to the Labor Department. Economists polled by Reuters had expected first-time applications to fall to 332,000 last week.

And the U.S. economy accelerated more quickly than expected in the second quarter to a 2.5 percent annual rate, according o the Commerce Department, giving further support for the Federal Reserve to wind down its asset-purchase program as soon as next month. The government had initially estimated that GDP expanded at a 1.7 percent rate in the second quarter.

"The GDP print should be considered 'less-bad' rather than positive, especially when considering the headwinds facing American consumers in the second half of the year: evaporation of personal savings and a deceleration of wages," said Todd Schoenberger, managing partner of LandColt Capital. "The headline number may provide a short-term boost in the markets, but investors should consider the fragile future for growth in the U.S."

The Treasury auctioned $29 billion in 7-year notes at a high yield of 2.221 percent. The bid-to-cover ratio, an indicator of demand, was 2.43, compared to a recent average of 2.65.

In a televised interview, President Barack Obama said he remained undecided on whether to take military action against the Middle Eastern country, but added that a "tailored, limited" military strike could be enough to deter any future use of chemical weapons.

Vodafone said it is in talks with Verizon Communications to sell its stake in Verizon Wireless, in what would be the third-biggest deal of all time. Shares of both companies soared.

Fast-food workers from around the nation staged protests in a battle to boost the minimum wage. Shares of Burger King, Yum Brands and McDonald's dipped.

Among earnings, Salesforce.com, Splunk and Krispy Kreme are notable companies scheduled to post results after the closing bell.

Meanwhile, the Nasdaq said its massive trading halt last week was due to an internal software bug and other technology issues triggered by problems at NYSE Euronext's Arca exchange that led to the failure of a key backup system.

—By CNBC's JeeYeon Park (Follow JeeYeon on Twitter: @JeeYeonParkCNBC)

Coming Up This Week:

FRIDAY: Personal income & outlays, Fed's Bullard speaks, Chicago PMI, consumer sentiment, farm prices

What's Trending on CNBC.com: