Sync libiberty sources with GCC.
authorNick Clifton <nickc@redhat.com>
Mon, 13 Mar 2017 17:49:32 +0000 (17:49 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 13 Mar 2017 17:49:32 +0000 (17:49 +0000)
commitc793cac124dd2eb34042f2e43abb099a26e34cb0
tree775c5b6a39122ead6bcb6d7e49aede0fe635dbf8
parent5ef2d51bd6ae49b28282835156d1d6622beac4a6
Sync libiberty sources with GCC.

PR demangler/70909
PR demangler/67264
* cp-demangle.c: Fix endless recursion. Pass
struct demangle_component as non const.
(d_make_empty): Initialize variable.
(d_print_comp_inner): Limit recursion.
(d_print_comp): Decrement variable.
* cp-demint.c (cplus_demangle_fill_component): Initialize
variable.
(cplus_demangle_fill_builtin_type): Likewise.
(cplus_demangle_fill_operator): Likewise.
* testsuite/demangle-expected: Add tests.
include/ChangeLog
include/demangle.h
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/cp-demint.c
libiberty/testsuite/demangle-expected