Such bad gas pain! 36 weeks

Anyone else? I haven’t really had any constipation throughout this pregnancy, so I’m thankful for that. But now at 36 weeks pregnant, as soon as I wake up, 10 mins and I have such gas pain and I have to poo immediately. Then following breakfast for a good hour after wards the gas pain KILLS! All along my upper belly, I guess where my stomach is currently squeezed in, because baby needs all the room! It passes off after a while but man it HURTS!