[PATCH 1/5] string: Add fallback implementation for ctz/clz

Cristian Rodríguez cristian@rodriguez.im
Mon Sep 1 17:09:17 GMT 2025


On Mon, Sep 1, 2025 at 11:40 AM Adhemerval Zanella Netto
<adhemerval.zanella@linaro.org> wrote:

> I found on s390x that calling the libgcc builtin is not fully supported without
> setting up TLS because the builtin could be built with stack-protection enabled.
> It might happen on other ABIs that uses the generic strchrnul implementation and
> relying on libgcc for __builtin_c[t,l]z.

Huh..what? everything else I have seen assumes this builtins are unsequenced..
is this hiding a bug somewhere?


More information about the Libc-alpha mailing list