From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1059) id 99A9F3858D32; Wed, 15 Jun 2022 15:03:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99A9F3858D32 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Nathan Sidwell To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1109] c++: Use better module partition naming X-Act-Checkin: gcc X-Git-Author: Nathan Sidwell X-Git-Refname: refs/heads/master X-Git-Oldrev: dc8071da0e89eab4935751f3b16745c95cbc0d30 X-Git-Newrev: 052d89537a4c09e1e1437042e2d1ea215656325f Message-Id: <20220615150309.99A9F3858D32@sourceware.org> Date: Wed, 15 Jun 2022 15:03:09 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2022 15:03:09 -0000 https://gcc.gnu.org/g:052d89537a4c09e1e1437042e2d1ea215656325f commit r13-1109-g052d89537a4c09e1e1437042e2d1ea215656325f Author: Nathan Sidwell Date: Fri Jun 10 11:57:38 2022 -0700 c++: Use better module partition naming 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. Diff: --- gcc/cp/module.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index 5566c49490f..b3fbd467ecb 100644 --- a/gcc/cp/module.cc +++ b/gcc/cp/module.cc @@ -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);