Re: [PATCH 2/2] string: retire bcmp()

From: Andy Shevchenko
Date: Sat Nov 23 2024 - 13:32:37 EST


On Sat, Nov 23, 2024 at 5:13 PM David Laight <David.Laight@xxxxxxxxxx> wrote:
> From: Mateusz Guzik
> > Sent: 23 November 2024 09:47

...

> > -/*
> > - * Clang may lower `memcmp == 0` to `bcmp == 0`.
> > - */

> As per the comment I thought that clang would sometimes generate
> calls to bcmp().
>
> So while the two symbols could refer to the same code I don't
> think it can be removed.

You beat me to it, I came just to say the same thing.

--
With Best Regards,
Andy Shevchenko