On 3/18/23 13:13, avih wrote:
On Saturday, March 18, 2023, 02:07:35 PM GMT+2, avih
<avih...@yahoo.com> wrote:
> 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.
Herman
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel