re PR bootstrap/58386 (libstdc++.so.6: undefined symbol: htab_hash_pointer)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 10 Sep 2013 18:45:29 +0000 (18:45 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 10 Sep 2013 18:45:29 +0000 (18:45 +0000)
commit8b415b271e9a1be0634b2c9ec4114fea7f32ceb8
tree4750ae2d7442502518818658630a3bbcd3c9fe56
parentd742ff4ba1609fe71d0a9396483b95d375e4599a
re PR bootstrap/58386 (libstdc++.so.6: undefined symbol: htab_hash_pointer)

2013-09-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR bootstrap/58386
Revert:

2013-09-10  Gary Benson  <gbenson@redhat.com>

* cp-demangle.c: Include hashtab.h.
(struct d_print_info): New field saved_scopes.
(d_print_init): Initialize the above.
(d_print_free): New function.
(cplus_demangle_print_callback): Call the above.
(struct d_saved_scope): New structure.
(d_store_scope): New function.
(d_free_scope) Likewise.
(d_restore_scope) Likewise.
(d_hash_saved_scope) Likewise.
(d_equal_saved_scope) Likewise.
(d_print_comp): New variable saved_scope.
[DEMANGLE_COMPONENT_REFERENCE,
DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
time the component is traversed, and use the captured scope for
subsequent traversals.

From-SVN: r202480
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected