From: Jonathan Wakely Date: Wed, 10 Apr 2019 14:39:59 +0000 (+0100) Subject: Clearly document behaviour of multiple -g options X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07c2fa4665510267112030d500d7b1b7c0f4364e;p=gcc.git Clearly document behaviour of multiple -g options This copies the wording from the -O options to clearly state what happens if more than one -g option is used. * doc/invoke.texi (Debugging Options): Explicitly state the semantics of using multiple -g options. From-SVN: r270257 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 522538c5d54..6249828a73a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-04-10 Jonathan Wakely + + * doc/invoke.texi (Debugging Options): Explicitly state the semantics + of using multiple -g options. + 2019-04-10 Martin Liska PR gcov-profile/89959 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index cfc3063929b..73a7789d879 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -7818,6 +7818,9 @@ Level 3 includes extra information, such as all the macro definitions present in the program. Some debuggers support macro expansion when you use @option{-g3}. +If you use multiple @option{-g} options, with or without level numbers, +the last such option is the one that is effective. + @option{-gdwarf} does not accept a concatenated debug level, to avoid confusion with @option{-gdwarf-@var{level}}. Instead use an additional @option{-g@var{level}} option to change the