Re: Clang __built_assume

2020-08-22 Thread Paul Eggert
On 8/22/20 3:30 AM, Bruno Haible wrote: -#if _GL_HAS_BUILTIN_UNREACHABLE + features such as function calls not inlined by the compiler. */ + +#if _GL_HAS_BUILTIN_ASSUME +/* Use a temporary variable, to avoid a clang warning + "the argument to '__builtin_assume' has side effects that will be

Re: Clang __built_assume

2020-08-22 Thread Bruno Haible
Paul Eggert wrote: > On 8/17/20 4:37 PM, Bruno Haible wrote: > >> + Avoid Clang’s __builtin_assume, as clang 9.0.1 -Wassume can > >> + generate a bogus diagnostic "the argument to '__builtin_assume' has > >> + side effects that will be discarded" even when the argument has no > >> + side ef