aboutsummaryrefslogtreecommitdiff
path: root/gcc/cplus-dem.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchell@usa.net>1998-05-21 15:22:54 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-05-21 15:22:54 +0000
commit1cc75298013d24ac5fab9a9408089ae5532f080a (patch)
treec9d27a3ece4604a64140f0bbf1b2db9a390b8f20 /gcc/cplus-dem.c
parent178ca02d8350ea6aecf7a7c62e96ebeaac9f3937 (diff)
downloadgcc-1cc75298013d24ac5fab9a9408089ae5532f080a.zip
gcc-1cc75298013d24ac5fab9a9408089ae5532f080a.tar.gz
gcc-1cc75298013d24ac5fab9a9408089ae5532f080a.tar.bz2
* cplus-dem.c (do_type): Handle volatile qualification.
From-SVN: r19932
Diffstat (limited to 'gcc/cplus-dem.c')
-rw-r--r--gcc/cplus-dem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cplus-dem.c b/gcc/cplus-dem.c
index 8f68091..7bd1dfb 100644
--- a/gcc/cplus-dem.c
+++ b/gcc/cplus-dem.c
@@ -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;
/*
}