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

Iain Buclaw ibuclaw@gdcproject.org
Sat Apr 15 15:24:00 GMT 2017


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.

---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-d-demangle-anonymous-symbols.patch
Type: text/x-patch
Size: 1353 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170415/cb0f9c2e/attachment.bin>


More information about the Gcc-patches mailing list