aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cplus-dem.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r--libiberty/cplus-dem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index ccf7aef4a..ba3700c 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -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;
/*
}