[pushed] Darwin: Fix a diagnostic spelling [PR93861]

Message ID 8A3E189D-917D-4D1D-8DA6-7C2AE10EB655@sandoe.co.uk
State New
Headers show
Series
  • [pushed] Darwin: Fix a diagnostic spelling [PR93861]
Related show

Commit Message

Iain Sandoe May 2, 2020, 6:29 p.m.
Hi,

As noted in the PR, there’s a missing ‘-‘ at the start of a diagnostic
switch.  Fixed thus.

tested on x86_64-darwin16,
applied to master,
thanks
Iain

gcc/ChangeLog:

2020-05-02  Iain Sandoe  <iain@sandoe.co.uk>

	PR translation/93861
	* config/darwin-driver.c (darwin_driver_init): Adjust spelling in
	a warning.
---
 gcc/ChangeLog              | 6 ++++++
 gcc/config/darwin-driver.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)


-- 
2.24.1

Patch

--- a/gcc/config/darwin-driver.c
+++ b/gcc/config/darwin-driver.c
@@ -321,7 +321,7 @@  darwin_driver_init (unsigned int *decoded_options_count,
 	  vers_string =
 	    validate_macosx_version_min ((*decoded_options)[i].arg);
 	  if (vers_string == NULL)
-	    warning (0, "%qs is not valid for %<mmacosx-version-min%>",
+	    warning (0, "%qs is not valid for %<-mmacosx-version-min%>",
 		     (*decoded_options)[i].arg);
 	  else if (vers_string == (*decoded_options)[i].arg)
 	    vers_string = xstrndup ((*decoded_options)[i].arg, 32);