From: Jason Merrill Date: Mon, 17 Aug 1998 18:46:03 +0000 (-0400) Subject: tweak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09007174da82d2e9fbc0897b12b0f24ad67c7495;p=gcc.git tweak From-SVN: r21799 --- 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, ")");