Unoptimized builds are often too slow to be useful. However the default optimization level often makes debugging painful, because local variables are optimized away. I suggest that when --enable-debug is specified and there is no --enable/disable-optimize flag, we should default to -Og. This will leave the browser debuggable but with better performance than --disable-optimize. Glandium, thoughts?
Bug 1048372 is somehow related. If we do that on windows, we might as well do it on mac/linux.
Bug 1048372 stores extra debuginfo but doesn't change the generated code and so we could use it on any build. -Og changes the optimization level, so it's not something that we'd want to do for release builds in general.
You need to log in before you can comment on or make changes to this bug.