Commit: Update libiberty sources with changes from the gcc mainline

H.J. Lu hjl.tools@gmail.com
Fri Jan 17 15:12:00 GMT 2020


On Fri, Jan 17, 2020 at 6:18 AM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi Guys,
>
>   I have updated the libiberty sources with the changes from the gcc
>   mainline. (Patch attached).  I understand that there is a forthcoming
>   patch to the gcc version to fix a LTO problem.  If that is committed
>   in the next couple of weeks then I will make sure that it gets into
>   the binutils sources (branch and mainline) before the release.
>
> Cheers
>   Nick
>
> libiberty/ChangeLog
> 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
>
>         Update copyright years.
>
> 2019-12-06  Tim Ruehsen  <tim.ruehsen@gmx.de>
>
>         * make-relative-prefix.c (split_directories):
>         Return early on empty 'name'
>
> 2019-11-16  Tim Ruehsen  <tim.ruehsen@gmx.de>
>
>         * cp-demangle.c (d_print_init): Remove const from 4th param.
>         (cplus_demangle_fill_name): Initialize d->d_counting.
>         (cplus_demangle_fill_extended_operator): Likewise.
>         (cplus_demangle_fill_ctor): Likewise.
>         (cplus_demangle_fill_dtor): Likewise.
>         (d_make_empty): Likewise.
>         (d_count_templates_scopes): Remobe const from 3rd param,
>         Return on dc->d_counting > 1,
>         Increment dc->d_counting.
>         * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
>         (cplus_demangle_fill_builtin_type): Likewise.
>         (cplus_demangle_fill_operator): Likewise.
>
> 2019-11-16  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
>
>         * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
>         (rust_demangle): Remove.
>         * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
>         (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
>         (parse_legacy_escape): Rename to decode_legacy_escape.
>         (rust_is_mangled): Remove.
>         (struct rust_demangler): Add.
>         (peek): Add.
>         (next): Add.
>         (struct rust_mangled_ident): Add.
>         (parse_ident): Add.
>         (rust_demangle_sym): Remove.
>         (print_str): Add.
>         (PRINT): Add.
>         (print_ident): Add.
>         (rust_demangle_callback): Add.
>         (struct str_buf): Add.
>         (str_buf_reserve): Add.
>         (str_buf_append): Add.
>         (str_buf_demangle_callback): Add.
>         (rust_demangle): Add.
>         * rust-demangle.h: Remove.
>
> 2019-11-15  Miguel Saldivar  <saldivarcher@gmail.com>
>
>         * testsuite/demangle-expected: Fix test.
>
> 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
>
>         * cp-demangle.c (d_expr_primary): Handle
>         nullptr demangling.
>         * testsuite/demangle-expected: Added test.
>
> 2019-10-29 Paul Pluzhnikov  <ppluzhnikov@google.com>
>
>         * cp-demangle.c (d_number): Avoid signed int overflow.
>
> 2019-10-28  Miguel Saldivar  <saldivarcher@gmail.com>
>
>         * cp-demangle.c (d_print_mod): Add a space before printing `complex`
>         and `imaginary`, as opposed to after.
>         * testsuite/demangle-expected: Adjust test.
>
> 2019-10-03  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
>
>         * rust-demangle.c (looks_like_rust): Remove.
>         (rust_is_mangled): Don't check escapes.
>         (is_prefixed_hash): Allow 0-9a-f permutations.
>         (rust_demangle_sym): Don't bail on unknown escapes.
>         * testsuite/rust-demangle-expected: Update 'main::$99$' test.
>
> 2019-09-03  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
>
>         * rust-demangle.c (unescape): Remove.
>         (parse_lower_hex_nibble): New function.
>         (parse_legacy_escape): New function.
>         (is_prefixed_hash): Use parse_lower_hex_nibble.
>         (looks_like_rust): Use parse_legacy_escape.
>         (rust_demangle_sym): Use parse_legacy_escape.
>         * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
>
> 2019-08-27  Martin Liska  <mliska@suse.cz>
>
>         PR lto/91478
>         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
>         First find a WEAK HIDDEN symbol in symbol table that will be
>         preserved.  Later, use the symbol name for all removed symbols.
>
> 2019-08-12  Martin Liska  <mliska@suse.cz>
>
>         * Makefile.in: Add filedescriptor.c.
>         * filedescriptor.c: New file.
>         * lrealpath.c (is_valid_fd): Remove.
>
> include/ChangeLog
> 2020-01-17  Nick Clifton  <nickc@redhat.com>
>
>         * Import from gcc mainline:
>         2019-06-10  Martin Liska  <mliska@suse.cz>
>
>         * ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): New macro.
>         * libiberty.h (xmalloc): Use it.
>         (xrealloc): Likewise.
>         (xcalloc): Likewise.
>         (xstrdup): Likewise.
>         (xstrndup): Likewise.
>         (xmemdup): Likewise.
>
>         2019-06-10  Martin Liska  <mliska@suse.cz>
>
>         * ansidecl.h:
>         (ATTRIBUTE_RESULT_SIZE_1): Define new macro.
>         (ATTRIBUTE_RESULT_SIZE_2): Likewise.
>         (ATTRIBUTE_RESULT_SIZE_1_2): Likewise.
>         * libiberty.h (xmalloc): Add RESULT_SIZE attribute.
>         (xrealloc): Likewise.
>         (xcalloc): Likewise.
>
>         2019-11-16  Tim Ruehsen  <tim.ruehsen@gmx.de>
>
>         * demangle.h (struct demangle_component): Add member
>         d_counting.
>
>         2019-11-16  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
>
>         * demangle.h (rust_demangle_callback): Add.
>
>         2019-07-18  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
>
>         * demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h.
>         (rust_demangle_sym): Move to libiberty/rust-demangle.h.
>

I got

/test-demangle: 328 tests, 0 failures
FAIL at line 1452, options :
in:  _Z3fooILPv0EEvPN9enable_ifIXeqT_LDnEEvE4typeE
out: void foo<(void*)0>(enable_if<((void*)0)==(decltype(nullptr)),
void>::type*)exp: void
foo<(void*)0>(enable_if<((void*)0)==((decltype(nullptr))),
void>::type*)
./test-demangle: 335 tests, 1 failures
make[5]: *** [Makefile:52: check-cplus-dem] Error 1

-- 
H.J.



More information about the Binutils mailing list