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]
Other format: [Raw text]

[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
{



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