On Thu, Sep 13, 2012 at 7:37 PM, Mike Stump <mikest...@comcast.net> wrote: > On Sep 13, 2012, at 6:52 AM, Robert Dewar <de...@adacore.com> wrote: >> Sure, it is obvious that you don't want -g to affect -O1 or -O2 code, >> but I think if you have -Og (if and when we have that), it would not >> be a bad thing for -g to affect that. > > No, instead think of -Og as affecting the -g output itself. If it does, then > there is nothing for -g to affect when used with -Og. So, I agree, -g -Og > can have any impact on code-gen that we want, I just dis-agree that -Og > should be any different; I just don't see the need.
I think it's going to make GCC harder to maintain if we drop the -g0 vs. -g no-code-difference requirement for just some optimization levels. Richard.