This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/7] [D] libiberty: Recognize anonymous symbols names.


On 04/15/2017 09:21 AM, Iain Buclaw wrote:
This implements another previously undocumented part of the D ABI
spec, where symbols with no name are always encoded into the mangled
name.

     SymbolName:
         LName
         TemplateInstanceName
         0             // anonymous symbols

This has never really been a problem, as strtol() kindly jumps over
any leading zeros in the number it is parsing.  However this change
makes it so they are at least explicitly skipped over, rather than
silently ignored.

---


03-d-demangle-anonymous-symbols.patch


commit 6ffcb4ce75e471304960c97bec596c89e26894f8
Author: Iain Buclaw<ibuclaw@gdcproject.org>
Date:   Sat Apr 15 11:32:07 2017 +0200

     libiberty/ChangeLog:
2017-04-15 Iain Buclaw<ibuclaw@gdcproject.org> * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
     	* testsuite/d-demangle-expected: Add tests.
OK for the trunk.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]