https://gcc.gnu.org/g:9aa78d771222cd9aec463ee28f9039d306ab5834

commit r15-9135-g9aa78d771222cd9aec463ee28f9039d306ab5834
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Tue Apr 1 22:36:28 2025 +1100

    c++: Rename -fmodules-ts to -fmodules in diagnostics
    
    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 <nathanielosh...@gmail.com>

Diff:
---
 gcc/cp/parser.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc
index 88e722d8406d..f2eea4c70fdd 100644
--- a/gcc/cp/parser.cc
+++ b/gcc/cp/parser.cc
@@ -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);

Reply via email to