diff mbox series

[Darwin,committed] Fix some format-related build warnings.

Message ID EE0FE3AA-C2B1-409B-9681-8577B30CE077@sandoe.co.uk
State New
Headers show
Series [Darwin,committed] Fix some format-related build warnings. | expand

Commit Message

Iain Sandoe Oct. 6, 2019, 8:05 a.m. UTC
This fixes two error messages to avoid punctuation characters and contracted
negations.

tested on x86_64-darwin16, applied to mainline
thanks
Iain

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.
diff mbox series

Patch

diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 2fb9c56c72..5673982394 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -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