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]

UNREVIEWED PATCH: g++ Xlinker option breakage


This patch was previously submitted in this message:
<http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00378.html>.  The argument
following "-Xlinker" should be quoted.  It has been tested with
bootstraps and checks on hppa1.1-hp-hpux10.20 and i686-pc-linux-gnu.

OK?

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2001-06-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.

--- g++spec.c.orig	Fri Feb  2 12:41:57 2001
+++ g++spec.c	Thu Jun  7 16:38:46 2001
@@ -151,6 +151,7 @@
 	    saw_speclang = 1;
 	  else if (((argv[i][2] == '\0'
 		     && (char *)strchr ("bBVDUoeTuIYmLiA", argv[i][1]) != NULL)
+		    || strcmp (argv[i], "-Xlinker") == 0
 		    || strcmp (argv[i], "-Tdata") == 0))
 	    quote = argv[i];
 	  else if (library != 0 && ((argv[i][2] == '\0'


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