OSDN Git Service

tweak
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Aug 1998 18:46:03 +0000 (18:46 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Aug 1998 18:46:03 +0000 (18:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21799 138bc75d-0d04-0410-961f-82ee72b054a4

libiberty/cplus-dem.c

index 1f3dc52..0f1dcc5 100644 (file)
@@ -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, ")");