My dog has quite a soft stool and way too much flatulence

Would suplamenting his regular food (Kirklands) with pumpkin puree help this? I used to do that when he was a pup. I'd rather not have to switch to another food, but this doesn't seem to be reacting with his stomach very well.