From: geoffk Date: Mon, 18 Dec 2006 21:10:16 +0000 (+0000) Subject: * doc/invoke.texi (Debugging Options): Document -g0. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2faab76772ad0f1c20c7695e9292113a2243d5cc;p=thirdparty%2Fgcc.git * doc/invoke.texi (Debugging Options): Document -g0. * config/darwin.h (LINK_COMMAND_SPEC): Replace -gnone with -g0. * config/darwin9.h (LINK_COMMAND_SPEC): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120013 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e812d4ce7f5..a058342466a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-12-18 Geoffrey Keating + + * doc/invoke.texi (Debugging Options): Document -g0. + * config/darwin.h (LINK_COMMAND_SPEC): Replace -gnone with -g0. + * config/darwin9.h (LINK_COMMAND_SPEC): Likewise. + 2006-12-18 Ian Lance Taylor * c.opt (Wmissing-declarations): Add C++ and ObjC++. diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 18a14957bdd2..fb885ad5ac0d 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -240,7 +240,7 @@ extern GTY(()) int darwin_ms_struct; %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\ %{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %{.c|.cc|.C|.cpp|.c++|.CPP|.m|.mm: \ - %{gdwarf-2:%{!gstabs*:%{!gnone: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}" + %{gdwarf-2:%{!gstabs*:%{!g0: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}" #ifdef TARGET_SYSTEM_ROOT #define LINK_SYSROOT_SPEC \ diff --git a/gcc/config/darwin9.h b/gcc/config/darwin9.h index 58e980630df0..3f62677141a8 100644 --- a/gcc/config/darwin9.h +++ b/gcc/config/darwin9.h @@ -16,4 +16,4 @@ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\ %{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %{.c|.cc|.C|.cpp|.c++|.CPP|.m|.mm: \ - %{g*:%{!gstabs*:%{!gnone: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}" + %{g*:%{!gstabs*:%{!g0: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}" diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 290dad087eef..a81ca40d7719 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3664,6 +3664,9 @@ supported). This is the format used by DEBUG on VMS systems. Request debugging information and also use @var{level} to specify how much information. The default level is 2. +Level 0 produces no debug information at all. Thus, @option{-g0} negates +@option{-g}. + Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug. This includes descriptions of functions and external variables, but no information