aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.h
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2017-04-21 09:01:44 +0000
committerMark Wielaard <mark@gcc.gnu.org>2017-04-21 09:01:44 +0000
commit1240212c6b2ad61a9f8f918192fbb67d45405cc2 (patch)
tree1e54f14b71f855470176ce88958a071f6e5ae310 /libiberty/cp-demangle.h
parentad32f0675e6596552ec670ef4afc71f0803be2fa (diff)
downloadgcc-1240212c6b2ad61a9f8f918192fbb67d45405cc2.zip
gcc-1240212c6b2ad61a9f8f918192fbb67d45405cc2.tar.gz
gcc-1240212c6b2ad61a9f8f918192fbb67d45405cc2.tar.bz2
libiberty: Don't update and remove did_subs field from demangler structs.
The d_info field did_subs was used for estimating the string output size. It was no longer used when the malloc-less callback interface was introduced in 2007 (svn r121305). But the field was still updated. When backtracking was introduced in 2013 (svn r205292) did_subs was also added to the d_info_checkpoint struct. But except for updating the field it was still not used. Since it is never used just stop updating the field and remove it from the two structs. libiberty/ChangeLog: * cp-demangle.h (struct d_info): Remove did_subs field. * cp-demangle.c (struct d_info_checkpoint): Likewise. (d_template_param): Don't update did_subs. (d_substitution): Likewise. (d_checkpoint): Don't assign did_subs. (d_backtrack): Likewise. (cplus_demangle_init_info): Don't initialize did_subs. From-SVN: r247054
Diffstat (limited to 'libiberty/cp-demangle.h')
-rw-r--r--libiberty/cp-demangle.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/libiberty/cp-demangle.h b/libiberty/cp-demangle.h
index a265775..d4a4ab6 100644
--- a/libiberty/cp-demangle.h
+++ b/libiberty/cp-demangle.h
@@ -111,10 +111,6 @@ struct d_info
int next_sub;
/* The number of available entries in the subs array. */
int num_subs;
- /* The number of substitutions which we actually made from the subs
- array, plus the number of template parameter references we
- saw. */
- int did_subs;
/* The last name we saw, for constructors and destructors. */
struct demangle_component *last_name;
/* A running total of the length of large expansions from the