aboutsummaryrefslogtreecommitdiff
path: root/libiberty
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 /libiberty
parent178ca02d8350ea6aecf7a7c62e96ebeaac9f3937 (diff)
* cplus-dem.c (do_type): Handle volatile qualification.
From-SVN: r19932
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/cplus-dem.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index b627fa04f5c..c92b1c0738f 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -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.
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index ccf7aef4a85..ba3700c6db3 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;
/*
}