public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-7518] Fix up -Wliteral-suffix warning on mti-linux.h
@ 2020-04-02 13:28 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2020-04-02 13:28 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:68cbee9bf53332721ae33c517ca46039368c0a95

commit r10-7518-g68cbee9bf53332721ae33c517ca46039368c0a95
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Apr 2 15:26:41 2020 +0200

    Fix up -Wliteral-suffix warning on mti-linux.h
    
    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.

Diff:
---
 gcc/ChangeLog               | 5 +++++
 gcc/config/mips/mti-linux.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3e3f1ea13c7..2cec36754d8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/mips/mti-linux.h b/gcc/config/mips/mti-linux.h
index 796e4c0fe4f..94f7fc5b2ad 100644
--- a/gcc/config/mips/mti-linux.h
+++ b/gcc/config/mips/mti-linux.h
@@ -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}"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-02 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 13:28 [gcc r10-7518] Fix up -Wliteral-suffix warning on mti-linux.h Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).