[PATCH 5/7] [D] libiberty: Add support for return parameter and attributes
Jeff Law
law@redhat.com
Thu May 14 13:11:00 GMT 2015
On 05/13/2015 02:51 AM, Iain Buclaw wrote:
> The next version of D introduces two new mangle conventions.
>
> - Nj to represent methods whose 'this' parameter is also the function
> return value
> - Nk to represent a 'ref' parameter that is also the function return value
>
> This patch introduces support for these two symbols.
>
> ---
> libiberty/ChangeLog:
>
> 2015-05-13 Iain Buclaw <ibuclaw@gdcproject.org>
>
> * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
> return parameters in the mangled string. Return NULL if have encountered
> an unknown attribute.
> (dlang_function_args): Handle return parameters in the mangled string.
> * testsuite/d-demangle-expected: Add coverage tests for functions with
> return parameters and return attributes.
OK.
jeff
More information about the Gcc-patches
mailing list