gcc-15 should fix 32-bit x86 miscompilation

This commit is contained in:
dzaima 2025-04-18 18:45:27 +03:00
parent d2b9f4a02e
commit c95482e8e0
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ x86-64 (Linux):
cpu microarchitecture: Haswell cpu microarchitecture: Haswell
replxx: g++ 14.0.1; clang++ 19.1.0 replxx: g++ 14.0.1; clang++ 19.1.0
x86 (Linux): x86 (Linux):
clang 19.1.0; CBQN is known to break on gcc x86 - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416 clang 19.1.0; gcc≤14 results in miscompilation - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416
running on the above x86-64 system, compiled with CCFLAGS=-m32 running on the above x86-64 system, compiled with CCFLAGS=-m32
AArch64 ARMv8-A (within Termux on Android 8): AArch64 ARMv8-A (within Termux on Android 8):
using `lf=-landroid-spawn` from `pkg install libandroid-spawn` to get •SH to work using `lf=-landroid-spawn` from `pkg install libandroid-spawn` to get •SH to work

View File

@ -13,8 +13,8 @@
#endif #endif
#if __GNUC__ && __i386__ && !__clang__ #if __GNUC__ <= 14 && __i386__ && !__clang__
#warning "CBQN is known to miscompile on GCC for 32-bit x86 builds; using clang instead is suggested" #warning "CBQN is known to miscompile on GCC for 32-bit x86 builds; use clang or gcc-15 or newer"
#endif #endif
#if USE_REPLXX_IO && !USE_REPLXX #if USE_REPLXX_IO && !USE_REPLXX
#error "Cannot use USE_REPLXX_IO without USE_REPLXX" #error "Cannot use USE_REPLXX_IO without USE_REPLXX"