aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cplus-dem.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1998-12-18 13:16:13 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1998-12-18 13:16:13 +0000
commite8fc82228878bb702f6e39e32807f27b6ade3405 (patch)
treee6e1da94b0d4a0d17b8890003356778a5058113a /libiberty/cplus-dem.c
parent09ad2917045b93a3576f7adcf2e09ee9b17f9c6f (diff)
downloadgcc-e8fc82228878bb702f6e39e32807f27b6ade3405.zip
gcc-e8fc82228878bb702f6e39e32807f27b6ade3405.tar.gz
gcc-e8fc82228878bb702f6e39e32807f27b6ade3405.tar.bz2
cplus-dem.c (demangle_fund_type): Process CV and u codes before bumping the pointer we read from.
Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com> * cplus-dem.c (demangle_fund_type): Process CV and u codes before bumping the pointer we read from. Also prepend these codes, as we do in other places. From-SVN: r24374
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r--libiberty/cplus-dem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 2293aa2..1d0ef28 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -3153,12 +3153,13 @@ demangle_fund_type (work, mangled, result)
case 'C':
case 'V':
case 'u':
- (*mangled)++;
if (PRINT_ANSI_QUALIFIERS)
{
- APPEND_BLANK (result);
- string_append (result, demangle_qualifier (**mangled));
+ if (!STRING_EMPTY (result))
+ string_prepend (result, " ");
+ string_prepend (result, demangle_qualifier (**mangled));
}
+ (*mangled)++;
break;
case 'U':
(*mangled)++;