rs6000: Fix an error message in sysv4.h
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 5 Oct 2017 21:55:50 +0000 (23:55 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 5 Oct 2017 21:55:50 +0000 (23:55 +0200)
While looking at PR82411, I got the error message

error: '-msdata=-mcall' and 'eabi-linux' are incompatible

which caused some head-scratching.

* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Correct error
message for incompatible -msdata=* and -mcall-* options.

From-SVN: r253467

gcc/ChangeLog
gcc/config/rs6000/sysv4.h

index 009a6eb146719cb54462eff75ba283893197b4e4..38a86abaa39e5c30415fb4d32ac3e77b04d625eb 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-05  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Correct error
+       message for incompatible -msdata=* and -mcall-* options.
+
 2017-10-05  Jan Hubicka <hubicka@ucw.cz>
 
        * i386.c (ia32_multipass_dfa_lookahead): Default to issue rate
index e381ce90a8c764fe11ecfcfeabfaeda8fd1e0cb9..37bd63fe19aa673898154953fa1e680a5137e7bf 100644 (file)
@@ -160,7 +160,7 @@ do {                                                                        \
     {                                                                  \
       rs6000_sdata = SDATA_NONE;                                       \
       error ("%<%s=%s%> and %<%s-%s%> are incompatible",               \
-            "-msdata", "-mcall", rs6000_sdata_name, rs6000_abi_name);  \
+            "-msdata", rs6000_sdata_name, "-mcall", rs6000_abi_name);  \
     }                                                                  \
                                                                        \
   targetm.have_srodata_section = rs6000_sdata == SDATA_EABI;           \