[PATCH] Fix binutils build on hppa64-hpux with gcc-16

Sam James sam@gentoo.org
Tue Dec 2 07:57:54 GMT 2025
John David Anglin <dave.anglin@bell.net> writes:

> On 2025-12-01 11:11 a.m., Jan Beulich wrote:
>> Okay, but none of this make strings.h really standard. Wouldn't it again be
>> libiberty to cover for the differences (e.g. lack of ffs() decl) in such a
>> case?
>
> ffs() is declared in strings.h in both hpux11 and glibc linux.  So, I don't
> think this is a libiberty issue.
>
> I would have thought this issue would affect glibc targets.  Have you tried
> building binutils with gcc-16 or looking for a warning regarding the implicit
> declaration of ffs()?

Note that it changed in GCC 14. Not saying this to be pedantic, but that
there's been no recent change here (~1.5 years ago now, nearly 2) in
terms of GCC, and maybe something else broke instead.

>
> Maybe problem is hidden by gcc's __builtin_ffs() on targets with hardware support
> for ffs.  Maybe would show if -fno-builtin is added to CFLAGS for build.
>
> Dave


More information about the Binutils mailing list