diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-21 15:22:54 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-21 15:22:54 +0000 |
commit | aff4ad886056a6d7cda3c7dcd7bf6131b1100582 (patch) | |
tree | c9d27a3ece4604a64140f0bbf1b2db9a390b8f20 /libiberty | |
parent | 2971fc86f4f1b970742739842919c529765c74bb (diff) | |
download | gcc-aff4ad886056a6d7cda3c7dcd7bf6131b1100582.tar.gz |
* 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
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 6 |
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; /* } |