From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100361 invoked by alias); 9 Jan 2020 12:40:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 100303 invoked by uid 89); 9 Jan 2020 12:40:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_COUK,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: smtp2.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp2.wavenetuk.net) (195.26.37.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Jan 2020 12:40:26 +0000 Received: from [192.168.1.212] (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp2.wavenetuk.net (Postfix) with ESMTPA id CDCF46001FE; Thu, 9 Jan 2020 12:40:24 +0000 (GMT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [C++ coroutines 6/7] libiberty demangler update. From: Iain Sandoe In-Reply-To: Date: Thu, 09 Jan 2020 13:00:00 -0000 Cc: Ian Lance Taylor Content-Transfer-Encoding: 7bit Message-Id: References: <285E6AA6-17E6-4E7F-9F37-852707896DA1@sandoe.co.uk> <3D9E9C45-F7A2-42E4-B0B0-51B03A1041F0@sandoe.co.uk> To: GCC Patches X-SW-Source: 2020-01/txt/msg00439.txt.bz2 Hi Ian, The coroutines implementation introduces a new operator with a mangling of 'aw'. This patch adds that to libiberty's demangler. Although this is presented as part of the coroutines patch series it could stand alone, since clang and EDG-based compilers are already emitting this mangling. I tested this with a binutils build (using the built c++filt). OK for trunk? Iain libiberty/ChangeLog: 2020-01-09 Iain Sandoe * cp-demangle.c (cplus_demangle_operators): Add the co_await operator. --- libiberty/cp-demangle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index 3639bfbfd4..fc55b7fae1 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -1802,6 +1802,7 @@ const struct demangle_operator_info cplus_demangle_operators[] = { "ad", NL ("&"), 1 }, { "an", NL ("&"), 2 }, { "at", NL ("alignof "), 1 }, + { "aw", NL ("co_await "), 1 }, { "az", NL ("alignof "), 1 }, { "cc", NL ("const_cast"), 2 }, { "cl", NL ("()"), 2 }, -- 2.14.3