Mechanically add end-of-function markers.