* cplus-dem.c (do_type): Handle volatile qualification.
authorMark Mitchell <mmitchell@usa.net>
Thu, 21 May 1998 15:22:54 +0000 (15:22 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 21 May 1998 15:22:54 +0000 (15:22 +0000)
From-SVN: r19932

gcc/ChangeLog
gcc/cplus-dem.c
libiberty/ChangeLog
libiberty/cplus-dem.c

index 96c7175..dd1456a 100644 (file)
@@ -1,3 +1,7 @@
+1998-05-21  Mark Mitchell  <mmitchell@usa.net>
+
+       * cplus-dem.c (do_type): Handle volatile qualification.
+       
 Thu May 21 12:23:17 1998  Per Bothner  <bothner@cygnus.com>
 
        * function.c (init_function_start):  Don't call emit_line_note if
index 8f68091..7bd1dfb 100644 (file)
@@ -2640,7 +2640,7 @@ do_type (work, mangled, result)
          break;
 
        case 'C':
-         (*mangled)++;
+       case 'V':
          /*
            if ((*mangled)[1] == 'P')
            {
@@ -2651,8 +2651,10 @@ do_type (work, mangled, result)
                {
                  string_prepend (&decl, " ");
                }
-             string_prepend (&decl, "const");
+             string_prepend (&decl, 
+                             (**mangled) == 'C' ? "const" : "volatile");
            }
+         (*mangled)++;
          break;
          /*
            }
index b627fa0..c92b1c0 100644 (file)
@@ -1,3 +1,7 @@
+1998-05-21  Mark Mitchell  <mmitchell@usa.net>
+
+       * cplus-dem.c (do_type): Handle volatile qualification.
+       
 1998-05-21  Manfred Hollstein  <manfred@s-direktnet.de>
 
        * configure.in: Check for unistd.h as well.
index ccf7aef..ba3700c 100644 (file)
@@ -2628,7 +2628,7 @@ do_type (work, mangled, result)
          break;
 
        case 'C':
-         (*mangled)++;
+       case 'V':
          /*
            if ((*mangled)[1] == 'P')
            {
@@ -2639,8 +2639,10 @@ do_type (work, mangled, result)
                {
                  string_prepend (&decl, " ");
                }
-             string_prepend (&decl, "const");
+             string_prepend (&decl, 
+                             (**mangled) == 'C' ? "const" : "volatile");
            }
+         (*mangled)++;
          break;
          /*
            }