libiberty/ 2014-05-08 Gary Benson <gbenson@redhat.com>
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 May 2014 09:13:44 +0000 (09:13 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 8 May 2014 16:18:30 +0000 (10:18 -0600)
commit91662bad25e6367e37b15c17ed1bca2a72b9c090
tree3550b90f2542cdfc026647be85f9cb0353e6610c
parent3f48575af8379567edcc1d6f7fb25c14237cbf30
libiberty/ 2014-05-08 Gary Benson <gbenson@redhat.com>

* cp-demangle.c (struct d_component_stack): New structure.
(struct d_print_info): New field component_stack.
(d_print_init): Initialize the above.
(d_print_comp_inner): Renamed from d_print_comp.
Do not restore template stack if it would cause a loop.
(d_print_comp): New function.
* testsuite/demangle-expected: New test cases.

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