From 529d2abae451697628b46df9c743408136243a2c Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 8 Oct 2022 14:41:22 +0300 Subject: [PATCH] add warning about miscompilation for x86 on gcc --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index 55992ef5..2ef5a068 100644 --- a/src/main.c +++ b/src/main.c @@ -7,6 +7,11 @@ #include "utils/time.h" #include "utils/interrupt.h" + +#if __GNUC__ && __i386__ && !__clang__ + #warning "CBQN is known to miscompile on GCC for 32-bit x86 builds; using clang instead is suggested" +#endif + static B replPath; static Scope* gsc; static bool init = false;