Hello I encountered errors about inline assembly with clang 20.1

Configured with:
CC=clang CXX=clang++ CFLAGS="--target=x86_64-windows-gnu -fuse-ld=lld --sysroot=/tmp/mingw/x86_64-windows-gnu" CXXFLAGS="--target=x86_64-windows-gnu -fuse-ld=lld --sysroot=/tmp/mingw/x86_64-windows-gnu" /mnt/src/mingw-w64/mingw-w64-crt/configure --host=x86_64-w64-mingw32 --prefix=/tmp/mingw/x86_64-windows-gnu --enable-lib64 LD=lld NM=llvm-nm RANLIB=llvm-ranlib AR=llvm-ar DLLTOOL=llvm-dlltool AS=llvm-as STRIP=llvm-strip OBJDUMP=llvm-objdump WINDRES=llvm-windres

And it gives output:
/mnt/src/mingw-w64/mingw-w64-crt/misc/_invoke_watson.c:52:9: error: inline assembly requires more registers than available
   52 |         "mov %%eax, %0\n\t"
      |         ^
1 error generated.

Note that if I replace line 50 in _invoke_watson.c to:
#if 0
It compiles with no error.

Is there potential threat if I do this replacement?

clang --version:
clang version 20.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to