This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.4 PATCH: Don't pass -g* via cpp_options (PR bootstrap/12173)

This patch, proposed by Alexandre Oliva

fixed the bootstrap problem described in PR bootstrap/12173 on
mips-sgi-irix6.5o32.  The bootstrap on that platform succeeeded without

Ok for mainline?


Rainer Orth, Faculty of Technology, Bielefeld University

Wed Oct  1 20:57:00 2003  Alexandre Oliva  <>

	* gcc.c (cpp_options): Only pass -fworking-directory for -g* if
	not overridden.
	Fixes PR bootstrap/12173.
Index: gcc.c
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.393
diff -u -p -r1.393 gcc.c
--- gcc.c	4 Sep 2003 06:30:02 -0000	1.393
+++ gcc.c	1 Oct 2003 23:54:42 -0000
@@ -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.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]