diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-17 18:46:03 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-17 18:46:03 +0000 |
commit | 69b770662edf1000a9d18be8a9328064fa2b612e (patch) | |
tree | 20958d85caa7bc5303dba6741e7e78349f49a04f /libiberty/cplus-dem.c | |
parent | 8f2cc44d331b97db17e5cf3c94a39f1ee4f002b5 (diff) | |
download | gcc-69b770662edf1000a9d18be8a9328064fa2b612e.tar.gz |
tweak
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21799 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r-- | libiberty/cplus-dem.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 1f3dc529efa..0f1dcc54a54 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -2491,7 +2491,8 @@ do_type (work, mangled, result) case 'A': { ++(*mangled); - if (!STRING_EMPTY (&decl) && decl.b[0] == '*') + if (!STRING_EMPTY (&decl) + && (decl.b[0] == '*' || decl.b[0] == '&')) { string_prepend (&decl, "("); string_append (&decl, ")"); @@ -2523,7 +2524,8 @@ do_type (work, mangled, result) /* A function */ case 'F': (*mangled)++; - if (!STRING_EMPTY (&decl) && decl.b[0] == '*') + if (!STRING_EMPTY (&decl) + && (decl.b[0] == '*' || decl.b[0] == '&')) { string_prepend (&decl, "("); string_append (&decl, ")"); |