This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r206362 - in /trunk/libiberty: ChangeLog cp-dem...
- From: gary at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 06 Jan 2014 14:14:21 -0000
- Subject: r206362 - in /trunk/libiberty: ChangeLog cp-dem...
Author: gary
Date: Mon Jan 6 14:14:21 2014
New Revision: 206362
URL: http://gcc.gnu.org/viewcvs?rev=206362&root=gcc&view=rev
Log:
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.
Modified:
trunk/libiberty/ChangeLog
trunk/libiberty/cp-demangle.c