handle gcc's optimized return (repz ret)