libiberty: sync with gcc
authorGary Benson <gbenson@redhat.com>
Mon, 6 Jan 2014 14:14:21 +0000 (14:14 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 18:44:24 +0000 (13:44 -0500)
commitfd259167db97c2b453be8029dc8b6893899e8b4e
tree85955a8a7d0791a8b660733ccc04e16d496fe253
parenteafbc3bf7b4ae9d85c833037413239c45393d266
libiberty: sync with gcc

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