Shares of U.S. gun makers have surged in the wake of the massacre of 14 people in California last week, following a pattern that has grown more common in recent years when high-profile mass shootings have spurred firearms sales as well as calls for gun control measures.