Fix up -Wliteral-suffix warning on mti-linux.h
authorJakub Jelinek <jakub@redhat.com>
Thu, 2 Apr 2020 13:26:41 +0000 (15:26 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 2 Apr 2020 13:26:41 +0000 (15:26 +0200)
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.

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/ChangeLog
gcc/config/mips/mti-linux.h

index 3e3f1ea13c7511263ff4564e78e1184fead02810..2cec36754d8133f6c2087668ab99e037cb59bce5 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2020-04-02  Martin Jambor  <mjambor@suse.cz>
 
        * doc/invoke.texi (Optimize Options): Document sra-max-propagations.
index 796e4c0fe4f0603826fdf76fcc9e90caa61c4f91..94f7fc5b2ad3c0b2c723a664f961bcad83ddb7fd 100644 (file)
@@ -28,7 +28,7 @@ along with GCC; see the file COPYING3.  If not see
 
 #undef SYSROOT_SUFFIX_SPEC
 #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}"                                      \
     "%{!mips32r6:%{!mips64r6:%{mnan=2008:-nan2008}}}%{muclibc:-uclibc}"