James Greenhalgh wrote: > > This code is a mess, would macroing your magic number 2 help at all? All the > double negatives give me a massive headache!
Well we really need to rename flag_omit_frame_pointer to flag_use_frame_pointer or similar (omit and emit are too similar!). That removes most double negatives. Also we wouldn't need all the hacking in the backends for leaf frame pointer omission (multiple targets have this same bug) if the midend always calls targetm.frame_pointer_required. Wilco