re PR target/37033 (Revision 138733 breaks -g vs -g0 for PCH)
authorRichard Henderson <rth@redhat.com>
Thu, 7 Aug 2008 20:06:36 +0000 (13:06 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 7 Aug 2008 20:06:36 +0000 (13:06 -0700)
        PR debug/37033
        * gcc.c (cpp_options): Pass along -g*.

From-SVN: r138850

gcc/ChangeLog
gcc/gcc.c

index aeef784..ff009ea 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-07  Richard Henderson  <rth@redhat.com>
+
+       PR debug/37033
+       * gcc.c (cpp_options): Pass along -g*.
+
 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
 
        * config/arm/arm.c (output_move_neon): Update comment describing
index 7914e4b..8c0aa82 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -819,7 +819,7 @@ static const char *cpp_unique_options =
    in turn cause preprocessor symbols to be defined specially.  */
 static const char *cpp_options =
 "%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w}\
- %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*}\
+ %{f*} %{g*:%{!g0:%{g*} %{!fno-working-directory:-fworking-directory}}} %{O*}\
  %{undef} %{save-temps:-fpch-preprocess}";
 
 /* This contains cpp options which are not passed when the preprocessor