Don't make -gsplit-dwarf imply -g
authorFangrui Song <maskray@google.com>
Wed, 13 May 2020 15:27:29 +0000 (08:27 -0700)
committerRichard Biener <rguenther@suse.de>
Wed, 29 Jul 2020 13:35:43 +0000 (15:35 +0200)
commitc8d3f2b6d1d81535ac3b71fd8dd1def12f8d03b3
tree9ca5f102e8391c4b0cc7098231a53525e185270b
parentd6cd139c1728fd37a2b6b2251029458cc2b7127e
Don't make -gsplit-dwarf imply -g

-gsplit-dwarf introduces order dependency: it overrides previous -g0 and -g1.

Don't imply -g so that it can be plugged into a build without worrying
that unnecessary debugging information may be generated.

2020-05-13  Fangrui Song  <maskray@google.com>

PR debug/95096
* opts.c (common_handle_option): Don't make -gsplit-dwarf imply -g.
* doc/invoke.texi (-gsplit-dwarf): Update documentation.
gcc/doc/invoke.texi
gcc/opts.c