When my mother was dying, she hadn't had any food for two weeks; all she had in the hospital was IV fluids. ECGs made it apparent that she was disconnected from all but the basic survival parts of her brain.
When I took her home to die, I requested some liquid morphine in case I couldn't soothe her pain by other means. The doctor said that if she could take things by mouth I had to feed her. It would have been excruciating for her to restart her digestive system. Articles on starvation/fasting make this clear.
I was also told that the morphine would depress her respirations; this seemed largely irrelevant since she was obviously going to die within a short time period.
Since she and I had many talks over the years about what she would want in this situation, I was totally comfortable with giving her the medication. One of the things that might occur in dying patients is the horrible feeling of suffocation, and one of the few medications which relieves this is morphine.
While many may disagree with my actions and decisions, I gave my mother the care that she wanted; she did not die because of the morphine.