aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2006-12-18 21:10:16 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2006-12-18 21:10:16 +0000
commitec75a430b0e1c279d1814d7c94620d01c5075db6 (patch)
tree0a96843d6848a73b2bba603f28078f88fca4579e /gcc
parentdfdec7a7054a692dbd50543daf5d74a1c1b92472 (diff)
downloadgcc-ec75a430b0e1c279d1814d7c94620d01c5075db6.zip
gcc-ec75a430b0e1c279d1814d7c94620d01c5075db6.tar.gz
gcc-ec75a430b0e1c279d1814d7c94620d01c5075db6.tar.bz2
invoke.texi (Debugging Options): Document -g0.
* doc/invoke.texi (Debugging Options): Document -g0. * config/darwin.h (LINK_COMMAND_SPEC): Replace -gnone with -g0. * config/darwin9.h (LINK_COMMAND_SPEC): Likewise. From-SVN: r120013
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.h2
-rw-r--r--gcc/config/darwin9.h2
-rw-r--r--gcc/doc/invoke.texi3
4 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6e812d4..a058342 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-18 Geoffrey Keating <geoffk@apple.com>
+
+ * 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 <iant@google.com>
* c.opt (Wmissing-declarations): Add C++ and ObjC++.
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 18a1495..fb885ad 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 58e9806..3f62677 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 290dad0..a81ca40 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