bug-binutils
[Top][All Lists]
Advanced

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

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


From: sam at gentoo dot org
Subject: [Bug ld/32372] bfd 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: Sat, 16 Nov 2024 04:41:12 +0000

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

--- Comment #2 from Sam James <sam at gentoo dot org> ---
I'll send patches for all of these when done.

/var/tmp/portage/sys-devel/binutils-9999/work/binutils/bfd/elf32-ppc.c: In
function ‘ppc_elf_tls_setup’:
/var/tmp/portage/sys-devel/binutils-9999/work/binutils/bfd/elf32-ppc.c:4355:32:
error: incompatible types when returning type ‘_Bool’ but ‘asection *’ {aka
‘struct bfd_section *’} was ex
pected
 4355 |                         return false;
      |                                ^~~~~
make[4]: *** [Makefile:1773: elf32-ppc.lo] Error 1

This one is again fine to do as NULL because we return _bfd_elf_tls_setup in
the happy case and that itself may return NULL (tls).

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