lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 27 Oct 2020 23:37:28 +0100
From:   Arnd Bergmann <arnd@...nel.org>
To:     Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>,
        Nathan Chancellor <natechancellor@...il.com>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        linux-kernel <linux-kernel@...r.kernel.org>,
        clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: [PATCH v2] ctype.h: remove duplicate isdigit() helper

On Tue, Oct 27, 2020 at 10:47 AM Miguel Ojeda
<miguel.ojeda.sandonis@...il.com> wrote:
>
> On Tue, Oct 27, 2020 at 12:57 AM Arnd Bergmann <arnd@...nel.org> wrote:
> >
> > +#ifdef __has_builtin
> > +#define has_builtin(x) __has_builtin(x)
> > +#else
> > +#define has_builtin(x) (0)
> > +#endif
>
> Could this be
>
>     #ifndef __has_builtin
>     # define __has_builtin(x) 0
>     #endif
>
> ? i.e. mimicking what we do for `__has_attribute`.

Ah, I didn't know about that

> It would also be a nice idea to put a reminder comment like:
>
>     /*
>      * __has_builtin is supported on gcc >= 10, clang >= 3 and icc >= 21.
>      * In the meantime, to support gcc < 10, we implement __has_builtin
>      * by hand.
>      */

Sounds good, I'll take that. Are the clang and icc version numbers
the actual ones we should list here, or is this just an example?

       Arnd

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ