https://gcc.gnu.org/g:aea08a40722d81249a8db1929ed34fbe7ad2681f
commit r17-1699-gaea08a40722d81249a8db1929ed34fbe7ad2681f Author: Viljar Indus <[email protected]> Date: Tue Jun 9 12:18:56 2026 +0300 ada: Use correct style switch for single space comments Single space comment checks are activated by -gnatyC whereas double space comment checks are activated by -gnatyc. This patch uses the correct switch name for style warnings triggered by single space comment checks. gcc/ada/ChangeLog: * styleg.adb (Check_Comment): use correct switch name in error message. Diff: --- gcc/ada/styleg.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/styleg.adb b/gcc/ada/styleg.adb index 8c9095574bba..f157ec22955e 100644 --- a/gcc/ada/styleg.adb +++ b/gcc/ada/styleg.adb @@ -499,7 +499,7 @@ package body Styleg is or else Style_Check_Comments_Spacing = 1 then Error_Msg -- CODEFIX - ("(style) space required?c?", Scan_Ptr + 2); + ("(style) space required?C?", Scan_Ptr + 2); else Error_Msg -- CODEFIX ("(style) two spaces required?c?", Scan_Ptr + 2);
