bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/25717] Binutils failed to build with GCC 10


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/25717] Binutils failed to build with GCC 10
Date: Tue, 24 Mar 2020 12:00:20 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25717

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cda7e5603f6efd7c3716e45cc6ea11b70dd8daae

commit cda7e5603f6efd7c3716e45cc6ea11b70dd8daae
Author: H.J. Lu <address@hidden>
Date:   Tue Mar 24 04:52:39 2020 -0700

    bfd: Change num_group to unsigned int

    elf.c failed with to with GCC 10 as of

    commit 906b3eb9df6c577d3f6e9c3ea5c9d7e4d1e90536
    Author: Martin Liska <address@hidden>
    Date:   Tue Mar 24 11:40:10 2020 +0100

        Improve endianess detection.

                PR lto/94249
                * plugin-api.h: Add more robust endianess detection.

    binutils-gdb/bfd/elf.c: In function âsetup_groupâ:
    binutils-gdb/bfd/elf.c:740:35: error: overflow in conversion from
âunsigned intâ to âintâ changes value from ânum_group = 4294967295â
to â-1â [-Werror=overflow]
      740 |     elf_tdata (abfd)->num_group = num_group = -1;
          |                                   ^~~~~~~~~
    cc1: all warnings being treated as errors
    make[2]: *** [Makefile:1608: elf.lo] Error 1

    Change num_group in elf_obj_tdata to unsigned int to compile with GCC 10.

            PR binutils/25717
            * elf-bfd.h (elf_obj_tdata): Change num_group to unsigned int.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]