From aff4ad886056a6d7cda3c7dcd7bf6131b1100582 Mon Sep 17 00:00:00 2001 From: mmitchel Date: Thu, 21 May 1998 15:22:54 +0000 Subject: * cplus-dem.c (do_type): Handle volatile qualification. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19932 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/ChangeLog | 4 ++++ libiberty/cplus-dem.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'libiberty') 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 + + * cplus-dem.c (do_type): Handle volatile qualification. + 1998-05-21 Manfred Hollstein * 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; /* } -- cgit v1.2.1