I know this sounds counter productive but its true. Your meal before a ride should be 3 hours before you start your race or major training ride. So depending on how close you do eat to your race is what may cause you problems things like low blood sugar, poor insulin response and gastric distress. Those of us that fight with race day jitters already have enough to be concerned about without having to deal with a stomach ache as well.
So the rule of thumb is to eat and race 3 hours later. You should actually be just a little bit hungry on the ride/race. This means that your stomach has emptied and means that the typical in race nutrition of gels and sports drinks will not have to compete with your breakfast being digested! If your race starts early get up earlier and eat and go back to sleep.