From 68cbee9bf53332721ae33c517ca46039368c0a95 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 2 Apr 2020 15:26:41 +0200 Subject: 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 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in between a string literal and MIPS_SYSVERSION_SPEC macro. --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mti-linux.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e3f1ea..2cec367 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-04-02 Jakub Jelinek + + * 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 * 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 796e4c0f..94f7fc5 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}" -- cgit v1.1