OSDN Git Service

Fix handling of constructor/destructor of standard substitution:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2003 14:37:25 +0000 (14:37 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2003 14:37:25 +0000 (14:37 +0000)
commitb69d25f73c2f782a4e946db4a0708e705bf15e68
treeceddf800710ca602c6497bf9eb391a6baf0c777f
parented3a212b1b236402a0eb1885696723fe18408b77
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74632 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected