On Saturday, March 18, 2023, 02:42:40 PM GMT+2, Herman ten Brugge <email@example.com> wrote:
On 3/18/23 13:13, avih wrote:
> On Saturday, March 18, 2023, 02:07:35 PM GMT+2, avih
> > If I use #if 0 instead of #if !defined(__clang__) || GCC_MAJOR >= 11
> > then it does pass. Not quite sure what's going on.
> Ah, I do get it. When it compiles the reference using clang then
> these elements are 0, but when it compiles the test using tcc
> then __clang__ is not defined so this block is entered, and the
> builtins do exist, so it compiles successfully and works, but still
> different than the reference which has zeroes there.
You should probably make a patch that works for clang version 10.
Perhaps only 'GCC_MAJOR >= 11' does the trick. This disables the
test on older machines with gcc.