1580s, from gun (n.) + smith (n.). Middle English had gun-maker (late 14c.).
gunpowder
gunsel
gunshot
gun-shy
gun-slinger
gunsmith
Gunther
gunwale
guppy
Gupta
gurges