aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cplus-dem.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-08-17 14:46:03 -0400
committerJason Merrill <jason@gcc.gnu.org>1998-08-17 14:46:03 -0400
commit09007174da82d2e9fbc0897b12b0f24ad67c7495 (patch)
tree20958d85caa7bc5303dba6741e7e78349f49a04f /libiberty/cplus-dem.c
parent5210f3d05f10ed390e20808f1eeeff473a448a7e (diff)
downloadgcc-09007174da82d2e9fbc0897b12b0f24ad67c7495.zip
gcc-09007174da82d2e9fbc0897b12b0f24ad67c7495.tar.gz
gcc-09007174da82d2e9fbc0897b12b0f24ad67c7495.tar.bz2
tweak
From-SVN: r21799
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 1f3dc52..0f1dcc5 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, ")");