Sync libiberty with GCC.
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 28 Jan 2016 20:44:42 +0000 (21:44 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 28 Jan 2016 20:44:42 +0000 (21:44 +0100)
commit9d98de835cb018419e0ef97db37fcf9061247750
tree0195a508fbf3e32c87071f962ce9701d5d9bd434
parent56e374a6bcc87f7ac8aeb09887628a3286908545
Sync libiberty with GCC.

libiberty/ChangeLog:
* d-demangle.c (dlang_call_convention): Handle extern Objective-C
function calling convention.
(dlang_call_convention_p): Likewise.
(dlang_type): Likewise.
* testsuite/d-demangle-expected: Add coverage tests.

* d-demangle.c (dlang_function_args): Append ',' for variadic functions
only if parameters were seen before the elipsis symbol.
* testsuite/d-demangle-expected: Add coverage test for parameter-less
variadic functions.

* d-demangle.c (dlang_type): Handle function types only in the context
of seeing a pointer type symbol.
* testsuite/d-demangle-expected: Update function pointer tests.
libiberty/ChangeLog
libiberty/d-demangle.c
libiberty/testsuite/d-demangle-expected