projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5210f3d
)
tweak
author
Jason Merrill
<jason@gcc.gnu.org>
Mon, 17 Aug 1998 18:46:03 +0000
(14:46 -0400)
committer
Jason Merrill
<jason@gcc.gnu.org>
Mon, 17 Aug 1998 18:46:03 +0000
(14:46 -0400)
From-SVN: r21799
libiberty/cplus-dem.c
patch
|
blob
|
history
diff --git
a/libiberty/cplus-dem.c
b/libiberty/cplus-dem.c
index 1f3dc529efa13762f1b0042e12eb7873b8283e0b..0f1dcc54a54a38b9c222201db5a8b347a45b8140 100644
(file)
--- 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, ")");