[PATCH/RFA] Support CV-qualifiers when demangling pointer-to-member
Klee Dienes
klee@apple.com
Thu Nov 7 04:29:00 GMT 2002
This is continuing a discussion on the gcc mailing-list; I've updated
the patch slightly to add a test-case and a ChangeLog entry. This is
to accomodate the following entry in the NEWS for GCC 3.1 (kindly
pointed out by Gabriel Dos Reis):
> * The C++ ABI has been fixed so that `void (A::*)() const' is
> mangled as
> "M1AKFvvE", rather than "MK1AFvvE" as before. This change only
> affects
> pointer to cv-qualified member function types.
Unfortunately, the matching change was never made to cp-demangle.c; the
following patch adds support for it, and adds a test-case for the
previously failing mangled string. I'm by no means an expert at the
internals of cp-demangle.c, so if someone else could double-check the
patch (particularly how it handles the output of the CV-qualifier
string), I'd really appreciate it.
2002-11-06 Klee Dienes <kdienes@apple.com>
* testsuite/demangle-expected: Add test-case for const
pointer-to-member as argument to function (_Z1xM1sKFvvE).
* cp-demangle.c (demangle_type_ptr): Add a recognizer for
CV-qualifiers in the special-case code for pointer-to-member.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: demangler-patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20021107/9d7f1c56/attachment.txt>
-------------- next part --------------
More information about the Binutils
mailing list