This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2010 15:32:38 -0000
- Subject: [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
- References: <bug-43838-19071@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from jakub at gcc dot gnu dot org 2010-06-10 15:32 -------
Subject: Bug 43838
Author: jakub
Date: Thu Jun 10 15:31:56 2010
New Revision: 160556
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160556
Log:
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.
2009-06-16 Nick Clifton <nickc@redhat.com>
PR 10197
* testsuite/test-demangle.c: Rename getline to get_line to avoid
conflicts with system function of the same name.
Modified:
branches/gcc-4_4-branch/libiberty/ChangeLog
branches/gcc-4_4-branch/libiberty/cp-demangle.c
branches/gcc-4_4-branch/libiberty/testsuite/demangle-expected
branches/gcc-4_4-branch/libiberty/testsuite/test-demangle.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838