summaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-13 01:21:12 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-13 01:21:12 +0000
commitd220184890e06196919cd4b4fd6cf9b3f0683102 (patch)
tree950bf5257c49674807126f428527ee5d594c2dba /libiberty/cp-demangle.c
parent3f6d1d34de576a1522891b47a2884a6d9de9b2c8 (diff)
downloadgcc-d220184890e06196919cd4b4fd6cf9b3f0683102.tar.gz
libiberty/:
PR other/46332 * cp-demangle.c (d_print_function_type): Don't print parentheses if there are no modifiers to print. * testsuite/demangle-expected: Tweak one test case, add another. libstdc++/: * testsuite/abi/demangle/abi_examples/14.cc (main): Change expected demangling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166695 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r--libiberty/cp-demangle.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index 39c8cc0b310..8b0b825099e 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -4546,20 +4546,17 @@ d_print_function_type (struct d_print_info *dpi,
struct d_print_mod *mods)
{
int need_paren;
- int saw_mod;
int need_space;
struct d_print_mod *p;
struct d_print_mod *hold_modifiers;
need_paren = 0;
- saw_mod = 0;
need_space = 0;
for (p = mods; p != NULL; p = p->next)
{
if (p->printed)
break;
- saw_mod = 1;
switch (p->mod->type)
{
case DEMANGLE_COMPONENT_POINTER:
@@ -4588,9 +4585,6 @@ d_print_function_type (struct d_print_info *dpi,
break;
}
- if (d_left (dc) != NULL && ! saw_mod)
- need_paren = 1;
-
if (need_paren)
{
if (! need_space)