This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
UNREVIEWED PATCH: g++ Xlinker option breakage
- To: gcc-patches at gcc dot gnu dot org
- Subject: UNREVIEWED PATCH: g++ Xlinker option breakage
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 8 Aug 2001 14:47:08 -0400 (EDT)
- Cc: mark at codesourcery dot com
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'