On 12/7/2011 1:05 PM, Jeff Law wrote:
Do people often intentionally run gcc without any optimisations
these days?
Certainly. Compile speed and debugging being the primary reasons.
Actually speaking for myself, I run the compiler at -O0 much
*more* than I used to do. Why? Because gdb simply doesn't work
at all for me at -O1. With earlier versions of gcc, working on
the GNAT front end, I could always debug satisfactorily at -O1,
so it was a reasonable compromise.
Now the debugging at -O1 is hopeless (even parameters routinely
disappear), and so I am forced to do everything at -O0.