OSDN Git Service

PR other/43838
authorjakub <jakub>
Thu, 10 Jun 2010 15:42:01 +0000 (15:42 +0000)
committerjakub <jakub>
Thu, 10 Jun 2010 15:42:01 +0000 (15:42 +0000)
commit8cda4280116a98314d48c3f15ce3629d6a3a9ae2
tree3ac35e46ff8499f6dce1eafcb03779de1a6c28dc
parent9095f46cee4f7eb47e59ee3b6defbd639e77b646
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.
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected