From 72b890e7cbdbf9c35090e08769a31b7ef04e55f2 Mon Sep 17 00:00:00 2001 From: iains Date: Wed, 7 Apr 2010 10:40:06 +0000 Subject: [PATCH] 2010-04-07 Iain Sandoe PR driver/41594 * gcc.c: Add -static-libstdc++ to list of recognized options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158052 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d42f58dac66..9c4a185afb3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-07 Iain Sandoe + + PR driver/41594 + * gcc.c: Add -static-libstdc++ to list of recognized options. + 2010-04-07 Rainer Orth * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to diff --git a/gcc/gcc.c b/gcc/gcc.c index 31e4ab37513..9ca245170c2 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -4558,12 +4558,14 @@ process_command (int argc, const char **argv) 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 { -- 2.11.4.GIT