aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-10-07 21:14:14 +0000
committerRainer Orth <ro@gcc.gnu.org>2003-10-07 21:14:14 +0000
commit5c8d90405f04cdd193273d30ead2a0c08d766e36 (patch)
treec11f74ffe0d820b406778597ab69bc23c506bcca
parente56104509d41fde9a8b4e1d5bbf2eed88796b195 (diff)
downloadgcc-5c8d90405f04cdd193273d30ead2a0c08d766e36.zip
gcc-5c8d90405f04cdd193273d30ead2a0c08d766e36.tar.gz
gcc-5c8d90405f04cdd193273d30ead2a0c08d766e36.tar.bz2
re PR bootstrap/12173 (IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning)
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gcc.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b858dc6..c117090 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 31f3d43..764ccd1 100644
--- 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. */