This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++ coroutines 6/7] libiberty demangler update.
- From: Iain Sandoe <iain at sandoe dot co dot uk>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Ian Lance Taylor <ian at airs dot com>
- Date: Thu, 9 Jan 2020 12:40:22 +0000
- Subject: [C++ coroutines 6/7] libiberty demangler update.
- References: <F5F88589-1A8E-4311-AFC8-79E75C1C14C8@sandoe.co.uk> <285E6AA6-17E6-4E7F-9F37-852707896DA1@sandoe.co.uk> <B9BF0CEA-C9A7-4F63-91AC-24F87538177D@sandoe.co.uk> <EC0A5CB6-61E5-4F68-AB6C-CF8BACC7FFD7@sandoe.co.uk> <DDCE9FBF-F32D-43D0-AB4B-BC3FB72052BF@sandoe.co.uk> <3D9E9C45-F7A2-42E4-B0B0-51B03A1041F0@sandoe.co.uk> <BCAC2431-0DF3-4592-AC8B-2C8912743D4A@sandoe.co.uk>
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 <iain@sandoe.co.uk>
* 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