re PR bootstrap/12173 (IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning)
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 7 Oct 2003 21:14:14 +0000 (21:14 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 7 Oct 2003 21:14:14 +0000 (21:14 +0000)
2003-10-07  Alexandre Oliva  <aoliva@redhat.com>

* gcc.c (cpp_options): Only pass -fworking-directory for -g* if
not overridden.
Fixes PR bootstrap/12173.

From-SVN: r72201

gcc/ChangeLog
gcc/gcc.c

index b858dc69d84a29dbeb2ccef5857dca98c49bfa51..c11709068122b3eb9cb4678c590f39522f1b42b6 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
+       not overridden.
+       Fixes PR bootstrap/12173.
+
 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
 
        * errors.c: Don't include coretypes.h or tm.h.
index 31f3d43bbee7bec84013652228f9ac2b8c829a09..764ccd1f9e8ffbf6dfb06236538dca3a394d7629 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -755,7 +755,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} %{W*&pedantic*} %{w} %{f*}\
- %{g*} %{O*} %{undef}";
+ %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef}";
 
 /* This contains cpp options which are not passed when the preprocessor
    output will be used by another program.  */