]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Use better module partition naming
authorNathan Sidwell <nathan@acm.org>
Fri, 10 Jun 2022 18:57:38 +0000 (11:57 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 15 Jun 2022 15:02:37 +0000 (08:02 -0700)
It turns out that 'implementation partition' is not a term used in the
std, and is confusing to users.  Let's use the better term 'internal
partition'.  While there, adjust header unit naming.

gcc/cp/
* module.cc (module_state::write_readme): Use less confusing
importable unit names.

gcc/cp/module.cc

index 5566c49490ff69b14520a44d5390097a6e7d6a50..b3fbd467ecb75faea493dceedf68658faa4fca77 100644 (file)
@@ -13962,11 +13962,11 @@ module_state::write_readme (elf_out *to, cpp_reader *reader, const char *dialect
 
   readme.begin (false);
 
-  readme.printf ("GNU C++ %smodule%s%s",
-                is_header () ? "header " : is_partition () ? "" : "primary ",
-                is_header () ? ""
-                : is_interface () ? " interface" : " implementation",
-                is_partition () ? " partition" : "");
+  readme.printf ("GNU C++ %s",
+                is_header () ? "header unit"
+                : !is_partition () ? "primary interface"
+                : is_interface () ? "interface partition"
+                : "internal partition");
 
   /* Compiler's version.  */
   readme.printf ("compiler: %s", version_string);