OSDN Git Service

Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
authoramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Dec 1998 13:16:13 +0000 (13:16 +0000)
committeramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Dec 1998 13:16:13 +0000 (13:16 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24374 138bc75d-0d04-0410-961f-82ee72b054a4

libiberty/ChangeLog
libiberty/cplus-dem.c

index 4ee7acf..b681f20 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 Mon Dec 14 09:55:50 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * choose-temp.c: Don't check IN_GCC anymore.
index 2293aa2..1d0ef28 100644 (file)
@@ -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)++;