U.S. doctors and medical societies are increasingly speaking out against firearm violence, calling for gun-control measures and other solutions to what they see as a public-health crisis that shows no signs of ebbing.

Their outspokenness picked up in recent days, after the National Rifle Association said in a tweet on Nov. 7: “Someone should tell self-important anti-gun doctors to stay in their lane.”

The...