aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-10-06 08:02:03 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-10-06 08:02:03 +0000
commitb1ca639a8692ac245753b10cb528e0db0f56dd57 (patch)
tree383d108b4b88abe0cc17f2ca542f45037b064510
parent224d1b10aeaccbb86b78339f18e83dcd5ad2f956 (diff)
downloadgcc-b1ca639a8692ac245753b10cb528e0db0f56dd57.zip
gcc-b1ca639a8692ac245753b10cb528e0db0f56dd57.tar.gz
gcc-b1ca639a8692ac245753b10cb528e0db0f56dd57.tar.bz2
[Darwin] Fix some format-related build warnings.
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.c11
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d4e180d..a2740d2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 2fb9c56..5673982 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