]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Rename -fmodules-ts to -fmodules in diagnostics
authorNathaniel Shead <nathanieloshead@gmail.com>
Tue, 1 Apr 2025 11:36:28 +0000 (22:36 +1100)
committerNathaniel Shead <nathanieloshead@gmail.com>
Tue, 1 Apr 2025 20:20:35 +0000 (07:20 +1100)
This replaces some usages of the old -fmodules-ts flag with the new
-fmodules flag made in r15-5112-gd9c3c3c85665b2.

gcc/cp/ChangeLog:

* parser.cc (cp_parser_diagnose_invalid_type_name): Replace
fmodules-ts with fmodules.
(cp_parser_template_declaration): Likewise.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/cp/parser.cc

index 88e722d8406d4267863982c501e9d6434ff30ba1..f2eea4c70fdd25e1fa7849b183499ff253c18b0d 100644 (file)
@@ -3901,10 +3901,10 @@ cp_parser_diagnose_invalid_type_name (cp_parser *parser, tree id,
            inform (location, "%qE is not recognized as a module control-line",
                    id);
          else if (cxx_dialect < cxx20)
-           inform (location, "C++20 %qE only available with %<-fmodules-ts%>",
+           inform (location, "C++20 %qE only available with %<-fmodules%>",
                    id);
          else
-           inform (location, "C++20 %qE only available with %<-fmodules-ts%>"
+           inform (location, "C++20 %qE only available with %<-fmodules%>"
                    ", which is not yet enabled with %<-std=c++20%>", id);
        }
       else if (cxx_dialect < cxx11
@@ -18845,7 +18845,7 @@ cp_parser_template_declaration (cp_parser* parser, bool member_p)
       else if (cxx_dialect < cxx20)
        warning (0, "keyword %<export%> is deprecated, and is ignored");
       else
-       warning (0, "keyword %<export%> is enabled with %<-fmodules-ts%>");
+       warning (0, "keyword %<export%> is enabled with %<-fmodules%>");
     }
 
   cp_parser_template_declaration_after_export (parser, member_p);