OSDN Git Service

PR other/43838
authorjakub <jakub>
Fri, 11 Jun 2010 00:42:01 +0000 (00:42 +0000)
committerjakub <jakub>
Fri, 11 Jun 2010 00:42:01 +0000 (00:42 +0000)
commite67871d35596db188922f8bb3310ac29f267fd95
tree6ac3e2bd0da22fe1d53cb36c578cf409d6d6c1cd
parent2d961d58003256e9264331f8a2aad6c20418f94a
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