[Darwin] Fix some format-related build warnings.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 6 Oct 2019 08:02:03 +0000 (08:02 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 6 Oct 2019 08:02:03 +0000 (08:02 +0000)
This fixes two error messages to avoid punctuation and contracted
negations.

gcc/ChangeLog:

2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.c (darwin_override_options): Adjust objective-c
ABI version error messages to avoid punctuation and contracted
negations.

From-SVN: r276635

gcc/ChangeLog
gcc/config/darwin.c

index d4e180dcf33d6a64df212b904add2b83d475efd6..a2740d2f3861b0dac45a0135d13e3553095f3887 100644 (file)
@@ -1,3 +1,9 @@
+2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/darwin.c (darwin_override_options): Adjust objective-c
+       ABI version error messages to avoid punctuation and contracted
+       negations.
+
 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-inline.c: Fix type; compute size rather than self_size
index 2fb9c56c72a85d512ddcda9bd0b65436049bdb2b..567398239467b206bd91fa753f8b62978c90505f 100644 (file)
@@ -3152,13 +3152,14 @@ darwin_override_options (void)
   if (global_options_set.x_flag_objc_abi && flag_next_runtime)
     {
       if (TARGET_64BIT && global_options.x_flag_objc_abi < 2)
-       error_at (UNKNOWN_LOCATION, "%<-fobjc-abi-version%> >= 2 must be"
-                                   " used for %<-m64%> targets with"
-                                   " %<-fnext-runtime%>");
+       error_at (UNKNOWN_LOCATION, "%<-fobjc-abi-version%> must be greater"
+                                   " than or equal to 2 for %<-m64%> targets"
+                                   " with %<-fnext-runtime%>");
       if (!TARGET_64BIT && global_options.x_flag_objc_abi >= 2)
-       error_at (UNKNOWN_LOCATION, "%<-fobjc-abi-version%> >= 2 is not"
+       error_at (UNKNOWN_LOCATION, "%<-fobjc-abi-version%> %d is not"
                                    " supported on %<-m32%> targets with"
-                                   " %<-fnext-runtime%>");
+                                   " %<-fnext-runtime%>",
+                                   global_options.x_flag_objc_abi);
     }
 
   /* Don't emit DWARF3/4 unless specifically selected.  This is a