[Bug debug/61013] [4.9/4.10 Regression] Option parsing difference between < 4.9 and 4.9
ccoutant at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 30 17:11:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61013
--- Comment #7 from Cary Coutant <ccoutant at gcc dot gnu.org> ---
(In reply to Andres Freund from comment #2)
> The point is that this has changed between 4.8 and 4.9... And I don't
> see anything relevant in http://gcc.gnu.org/gcc-4.9/changes.html
Yes, you're right. This change should have been documented there. Sorry!
I did ask twice for consensus, and got no objections either time.
Our build system adds -g1 to the compile options, before user-supplied options,
and if a user adds -g, it's surprising to only get -g1. I wonder if it would be
reasonable for -g to set the debug level to max(2, previous level)? I still
think the simplicity of -g === -g2 is much better, and it's also much better to
be consistent with the -O option.
What should the following combinations do?
-g1 -g
-g1 -g0 -g
-g3 -g
-g3 -g0 -g
-cary
More information about the Gcc-bugs
mailing list