From patchwork Mon Dec 10 17:23:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [mips] Fix -mno-shared option (gcc.target/mips/pr35802.c) From: Steve Ellcey X-Patchwork-Id: 204992 Message-Id: To: Date: Mon, 10 Dec 2012 09:23:34 -0800 The test gcc.target/mips/pr35802.c is failing with the message: xgcc: error: unrecognized command line option '-mdsp-mno-shared' Obviously the -mdsp and -mno-shared flags got stuck together without a space between them. This patch fixes the failure. Ok to checkin? It was tested with no regressions. 2012-12-10 Steve Ellcey * config/mips/gnu-user.h (NO_SHARED_SPECS): Add space before option. diff --git a/gcc/config/mips/gnu-user.h b/gcc/config/mips/gnu-user.h index d35ddac..55ca662 100644 --- a/gcc/config/mips/gnu-user.h +++ b/gcc/config/mips/gnu-user.h @@ -97,7 +97,7 @@ along with GCC; see the file COPYING3. If not see #ifdef HAVE_AS_NO_SHARED /* Default to -mno-shared for non-PIC. */ # define NO_SHARED_SPECS \ - "%{mshared|mno-shared|fpic|fPIC|fpie|fPIE:;:-mno-shared}" + "%{mshared|mno-shared|fpic|fPIC|fpie|fPIE:;: -mno-shared}" #else # define NO_SHARED_SPECS "" #endif