]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/cp-demangle.c
cp-demangle.c (d_print_comp): Don't push more than one of the same CV-qualifier on...
authorIan Lance Taylor <ian@wasabisystems.com>
Tue, 24 Feb 2004 06:32:16 +0000 (06:32 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 24 Feb 2004 06:32:16 +0000 (06:32 +0000)
commit80a19ac825df0014e1e6ef95cc980bf7414e1a6a
treed92e6da7e262ab02a8de7cc9f2be4dd030961202
parente8ed4ac21eab7729d8fc57f313317c5a414f78ce
cp-demangle.c (d_print_comp): Don't push more than one of the same CV-qualifier on the top of the stack.

* cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
push more than one of the same CV-qualifier on the top of the
stack.
(d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
move the CV-qualifiers to apply to the element type instead.
(d_print_array_type): When checking the modifiers, keep looking
past ones which have been printed already.
* testsuite/demangle-expected: Add three test cases.

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