This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PING [Patch, driver] PR41594 recognize -static-libstdc++ as a valid option.
- From: Office Admin <admin-sal at btconnect dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 17 Dec 2009 11:49:30 +0000
- Subject: PING [Patch, driver] PR41594 recognize -static-libstdc++ as a valid option.
- References: <3058683C-9CBD-4FF4-96B2-C3DED9F82A52@sandoe-acoustics.co.uk>
Since my (c) assignment has now been processed...
Begin forwarded message:
From: IainS <developer@sandoe-acoustics.co.uk>
Date: 5 October 2009 20:45:36 BST
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [Patch, driver] PR41594 recognize -static-libstdc++ as a
valid option.
The driver currently rejects -static-libstdc++ although it is
processed by g++spec.c
Iain
2009-10-05 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR driver/41594
*gcc/gcc.c(process_command): Add -static-libstdc++ to list of
recognized options.
Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c (revision 152456)
+++ gcc/gcc.c (working copy)
@@ -4540,12 +4540,14 @@
switches[n_switches].validated = 0;
switches[n_switches].ordering = 0;
/* These are always valid, since gcc.c itself understands the
- first four and gfortranspec.c understands -static-
libgfortran. */
+ first four, gfortranspec.c understands -static-libgfortran
+ and g++spec.c understands -static-libstdc++ */
if (!strcmp (p, "save-temps")
|| !strcmp (p, "static-libgcc")
|| !strcmp (p, "shared-libgcc")
|| !strcmp (p, "pipe")
- || !strcmp (p, "static-libgfortran"))
+ || !strcmp (p, "static-libgfortran")
+ || !strcmp (p, "static-libstdc++"))
switches[n_switches].validated = 1;
else
{