]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/cp-demangle.c
libiberty/
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jan 2014 14:14:21 +0000 (14:14 +0000)
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jan 2014 14:14:21 +0000 (14:14 +0000)
commitb26b8335983133b8e373209513b08ff61e961c60
tree91ad70d43240c61f727c41e1a180f23a036cb090
parent436b29f7abf41775624d2bf2d2b2c95701baeb8b
libiberty/
2014-01-06  Gary Benson  <gbenson@redhat.com>

* cp-demangle.c (struct d_print_info): New fields
next_saved_scope, copy_templates, next_copy_template and
num_copy_templates.
(d_count_templates): New function.
(d_print_init): New parameter "dc".
Estimate numbers of templates and scopes required.
(d_print_free): Removed function.
(cplus_demangle_print_callback): Allocate stack for
templates and scopes.  Removed call to d_print_free.
(d_copy_templates): Removed function.
(d_save_scope): New function.
(d_get_saved_scope): Likewise.
(d_print_comp): Replace state saving/restoring code with
calls to d_save_scope and d_get_saved_scope.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206362 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/cp-demangle.c