This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix handling of `-Xlinker' by g++
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Fix handling of `-Xlinker' by g++
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 7 Jun 2001 17:18:09 -0400 (EDT)
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'