All doctors are different, but mine didn't say a word and Im about 255lbs, 5'9" and a size 20. The only time it came up is when I ASKED how much weight I should gain since I read I should only gain 11-20 lbs. She said I can gain from 20-35 lbs, but they weren't weight Nazis there and as long as I'm healthy that is what's important.
I would also like to add--- if your doctor is more concerned about making you feel bad than your overall health, then I would get a different doctor. Of course they are going to discuss how much weight you should gain and how you should be eating healthy, but they shouldn't criticize you.