PATCH: Fix handling of `-Xlinker' by g++
John David Anglin
dave@hiauly1.hia.nrc.ca
Thu Jun 7 14:18:00 GMT 2001
This fixes the problem noted here:
< http://gcc.gnu.org/ml/gcc-bugs/2001-06/msg00209.html >. I have checked
that g++spec.c compiles correctly and that the problem noted with
`-Xlinker -E' is corrected.
OK for main and branch?
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'
More information about the Gcc-patches
mailing list