[committed] mips: Fix up -Wliteral-suffix warning on mti-linux.h

Message ID 20200402132959.GV2212@tucnak
State New
Headers show
  • [committed] mips: Fix up -Wliteral-suffix warning on mti-linux.h
Related show

Commit Message

Xionghu Luo via Gcc-patches April 2, 2020, 1:29 p.m.

I've noticed while trying to reproduce PR92989 the following warning:
In file included from ./tm.h:42,
                 from ../../gcc/backend.h:28,
                 from ../../gcc/lra-assigns.c:80:
../../gcc/config/mips/mti-linux.h:31:5: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
 "/%{mmicromips:micro}mips%{mel|EL:el}-"MIPS_SYSVERSION_SPEC  \
This fixes it, string concatenation works just fine even with whitespace
in between.

Committed to trunk as obvious.

2020-04-02  Jakub Jelinek  <jakub@redhat.com>

	* config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in
	between a string literal and MIPS_SYSVERSION_SPEC macro.



--- gcc/config/mips/mti-linux.h.jj	2020-01-12 11:54:36.360414208 +0100
+++ gcc/config/mips/mti-linux.h	2020-04-02 15:22:32.478597778 +0200
@@ -28,7 +28,7 @@  along with GCC; see the file COPYING3.
 #define SYSROOT_SUFFIX_SPEC						\
-    "/%{mmicromips:micro}mips%{mel|EL:el}-"MIPS_SYSVERSION_SPEC		\
+    "/%{mmicromips:micro}mips%{mel|EL:el}-" MIPS_SYSVERSION_SPEC	\
     "%{msoft-float:-soft;:-hard}"					\