From: Andrew MacLeod Date: Fri, 18 Dec 1998 13:16:13 +0000 (+0000) Subject: cplus-dem.c (demangle_fund_type): Process CV and u codes before bumping the pointer... X-Git-Tag: prereleases/libgcj-0.1~1578 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8fc82228878bb702f6e39e32807f27b6ade3405;p=thirdparty%2Fgcc.git 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 * 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 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 4ee7acf398bb..b681f2082ee7 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod + + * 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. + Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi * choose-temp.c: Don't check IN_GCC anymore. diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 2293aa24d025..1d0ef28ae72a 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)++;