diff mbox

Fix C++11 compatibility

Message ID 556AC501.1060607@gmail.com
State New
Headers show

Commit Message

Mikhail Maltsev May 31, 2015, 8:23 a.m. UTC
Recently I noticed that there are several targets which can't be built
with -Werror enabled during stage 1 build due to C++11 compatibility
warning (whitespace between string literal and macro). Namely, all
mingw32-* and cris-* (except cris-elf) targets.

The attached patch fixes these warnings (I tested that build now
succeeds). Committed as obvious.
diff mbox

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9efdb9c..5625750 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@ 
+2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
+
+	* config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
+	issue (add space between string literal and macro).
+	* config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
+
 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
 
 	* config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h
index aa7dc17..1561cd1 100644
--- a/gcc/config/cris/cris.h
+++ b/gcc/config/cris/cris.h
@@ -134,7 +134,7 @@  extern int cris_cpu_version;
    %{!metrax*:\
     %{!mcpu=*:\
      %{!mtune=*:-D__tune_v" CRIS_DEFAULT_TUNE "}\
-     -D__arch_v"CRIS_DEFAULT_TUNE\
+     -D__arch_v" CRIS_DEFAULT_TUNE \
    " -D__CRIS_arch_version=" CRIS_DEFAULT_TUNE "}}}"
 #endif
 
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index f139761..eef90fb 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -139,7 +139,7 @@  along with GCC; see the file COPYING3.  If not see
 #undef REAL_LIBGCC_SPEC
 #define REAL_LIBGCC_SPEC \
   "%{mthreads:-lmingwthrd} -lmingw32 \
-   "SHARED_LIBGCC_SPEC" \
+   " SHARED_LIBGCC_SPEC " \
    -lmoldname -lmingwex -lmsvcrt"
 
 #undef STARTFILE_SPEC