]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/ChangeLog
re PR other/43838 (Incorrect output from abi::__cxa_demangle)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Jun 2010 15:15:18 +0000 (17:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Jun 2010 15:15:18 +0000 (17:15 +0200)
commit9c4d7e5294648dd5cd34652e8f132d7f1ec25f4e
treef174971e55e9632277db22acbf4cb9e81140fd3c
parent1cb4261144d0e97c0f0faf79fbfa0230dcedaf63
re PR other/43838 (Incorrect output from abi::__cxa_demangle)

PR other/43838
* cp-demangle.c (struct d_print_info): Add flush_count field.
(d_print_init): Initialize it to 0.
(d_print_flush): Increment it.
(d_print_comp): If needed flush before appending ", ".  Only
decrement dpi->len if no flushes happened during the recursive
call.
* testsuite/demangle-expected: Add a test for this.

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