Fix handling of constructor/destructor of standard substitution:
commit374caa503bcf9605a85f8b68c79ca2d918c96fb0
authorIan Lance Taylor <ian@wasabisystems.com>
Mon, 15 Dec 2003 14:37:25 +0000 (15 14:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 15 Dec 2003 14:37:25 +0000 (15 14:37 +0000)
treeceddf800710ca602c6497bf9eb391a6baf0c777f
parent58cd2515ae19e8aac09b3615b0a105e055bb4081
Fix handling of constructor/destructor of standard substitution:

* cp-demangle.c (struct d_standard_sub_info): Define.
(d_substitution): Add prefix argument.  Change all callers.
Rework handling of standard substitutions to print full name when
qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
* testsuite/demangle-expected: Add test case.

Fix handling of negative literal constants:
* cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
(d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
(d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
(d_print_comp): Handle D_COMP_LITERAL_NEG.
* testsuite/demangle-expected: Add test case.

From-SVN: r74632
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected