diff mbox series

[2/12] fix diagnostic quoting/spelling in ada

Message ID 3c27e58d-7803-ce5e-8e10-4dc4b2afc2e8@gmail.com
State New
Headers show
Series detect quoting and punctuation problems in diagnostics | expand

Commit Message

Martin Sebor May 14, 2019, 9:31 p.m. UTC
The attached patch fixes quoting, spelling, and other formatting
issues in diagnostics issued by the Ada front and pointed out by
the -Wformat-diag warning.

Martin

Comments

Jeff Law May 16, 2019, 7:11 p.m. UTC | #1
On 5/14/19 3:31 PM, Martin Sebor wrote:
> The attached patch fixes quoting, spelling, and other formatting
> issues in diagnostics issued by the Ada front and pointed out by
> the -Wformat-diag warning.
> 
> Martin
> 
> gcc-wformat-diag-ada.diff
> 
> gcc/ada/ChangeLog:
> 
> 	* gcc-interface/trans.c (check_inlining_for_nested_subprog): Quote
> 	reserved names.
OK.

jeff
diff mbox series

Patch

gcc/ada/ChangeLog:

	* gcc-interface/trans.c (check_inlining_for_nested_subprog): Quote
	reserved names.

diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c
index 155cb4b27ab..932a54ca111 100644
--- a/gcc/ada/gcc-interface/trans.c
+++ b/gcc/ada/gcc-interface/trans.c
@@ -2024,12 +2024,13 @@  check_inlining_for_nested_subprog (tree fndecl)
 
       if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (parent_decl)))
 	{
-	  error_at (loc1, "subprogram %q+F not marked Inline_Always", fndecl);
+	  error_at (loc1, "subprogram %q+F not marked %<Inline_Always%>",
+		    fndecl);
 	  error_at (loc2, "parent subprogram cannot be inlined");
 	}
       else
 	{
-	  warning_at (loc1, OPT_Winline, "subprogram %q+F not marked Inline",
+	  warning_at (loc1, OPT_Winline, "subprogram %q+F not marked %<Inline%>",
 		      fndecl);
 	  warning_at (loc2, OPT_Winline, "parent subprogram cannot be inlined");
 	}