> Which means that -O0 should also set optimize_debug to 1? -O0 is > then !optimize && optimize_debug and -Og is optimize == 1 && > optimize_debug.
That sounds more confusing than helpful though. Adding (|| optimize_debug) in the relevant places is probably good enough. -- Eric Botcazou