bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/32372] binutils fails to build with GCC trunk (defaults to -std=


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/32372] binutils fails to build with GCC trunk (defaults to -std=gnu23) (bfd/elf64-ppc.c:4667:20: error: incompatible types when returning type ‘_Bool’ but ‘struct plt_entry **’ was expected)
Date: Tue, 19 Nov 2024 06:41:35 +0000

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

--- Comment #10 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The binutils-2_43-branch branch has been updated by Sam James
<sjames@sourceware.org>:

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

commit cf23d6835070637387b57605e4e6ac884dc3780a
Author: Sam James <sam@gentoo.org>
Date:   Sat Nov 16 05:01:58 2024 +0000

    bfd: fix -std=gnu23 compatibility wrt _Bool

    GCC trunk now defaults to -std=gnu23. We return false in a few places
    which can't work when true/false are a proper type (_Bool). Return NULL
    where appropriate instead of false. All callers handle this appropriately.

    ChangeLog:
            PR ld/32372

            * elf32-ppc.c (ppc_elf_tls_setup): Return NULL.
            * elf32-xtensa.c (translate_reloc_bfd_fix): Ditto.
            (translate_reloc): Ditto.
            * elf64-ppc.c (update_local_sym_info): Ditto.
            * mach-o.c (bfd_mach_o_lookup_uuid_command): Ditto.
            * xsym.c (bfd_sym_read_name_table): Ditto.

    (cherry picked from commit 931e4f9b09512bb9012204bb2e4060ab6d9b9b46)

-- 
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]