aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2010-11-13 02:20:31 +0000
committerDJ Delorie <dj@redhat.com>2010-11-13 02:20:31 +0000
commit361c3115547239d39d2c4e57c67277d92f1c34a4 (patch)
tree40c1f6e7173704cbf5d0b2f7537fca0dbd46b313 /libiberty/cp-demangle.c
parentdf6008afc8bbdd163aef4bbd45f66642698c982b (diff)
downloadgdb-361c3115547239d39d2c4e57c67277d92f1c34a4.zip
gdb-361c3115547239d39d2c4e57c67277d92f1c34a4.tar.gz
gdb-361c3115547239d39d2c4e57c67277d92f1c34a4.tar.bz2
merge from gcc
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 39c8cc0..8b0b825 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)