This is the mail archive of the gcc-patches@gcc.gnu.org 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]

[PR 13577] Fix


Hi,
I've installed this obvious fix for 13577 on both HEAD and 3.4. Sadly
being clever with -strip breaks when the user erroneously gives multiple
-o options.

tested manually.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>

	PR 13577
	* gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
	options.

Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.403.4.4
diff -c -3 -p -r1.403.4.4 gcc.c
*** gcc.c	2 Mar 2004 05:57:04 -0000	1.403.4.4
--- gcc.c	5 Mar 2004 13:51:16 -0000
*************** static const char *cpp_debug_options = "
*** 766,772 ****
  static const char *cc1_options =
  "%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
   %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\
!  -auxbase%{c|S:%{o*:-strip %*}%{!o*: %b}}%{!c:%{!S: %b}}\
   %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi}\
   %{v:-version} %{pg:-p} %{p} %{f*} %{undef}\
   %{Qn:-fno-ident} %{--help:--help}\
--- 766,772 ----
  static const char *cc1_options =
  "%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
   %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\
!  %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}}\
   %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi}\
   %{v:-version} %{pg:-p} %{p} %{f*} %{undef}\
   %{Qn:-fno-ident} %{--help:--help}\

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