Hi,

I checked current mob and I don't think these symbols need to be restored as-is.

For the float constants: current x86_64 codegen no longer references
__mzerosf / __mzerodf. The old implementation used those libtcc1.c constants
for unary float negation, but commit 00617444 replaced that with direct
sign-bit flipping in x86_64-gen.c and removed the libtcc1 dependency.

So if you still get an undefined __mzerodf, it likely means you have a mixed
build/install: an older tcc.exe or x86_64 code generator, but a newer
libtcc1.a. Please try a clean rebuild/reinstall of both compiler and runtime
library.

For __faststorefence: it was not simply removed. Commit 30afb50 moved it from
lib/libtcc1.c to win32/lib/winex.c, and winex.o is included in the Win32
libtcc1.a builds. If it is missing, that also points to an incomplete or stale
runtime rebuild.

Best regards,

Mounir IDRASSI


From: Waqas Tahir <[email protected]>
To: <[email protected]>
Date: Thu, 11 Jun 2026 15:17:08 +0900
Subject: [Tinycc-devel] BUG: libtcc1.c missing ___mzerodf/__mzerosf constants 
after commit 30afb50

 > Commit 30afb50 ("arm64-win32 review: fix problems and pass tests") removed 
 > the following from libtcc1.c:
 > #if defined ____x86_64____
 > const float mzerosf= -0.0;
 > const double _mzerodf = -0.0;
 > #endif
 > #if defined _WIN64
 > void __faststorefence (void)
 > {
 > #if defined(____aarch64____)
 > _asm__("dmb ish");
 > #else
 > _asm__("lock; orl $0,(%rsp)");
 > #endif
 > }
 > #endif
 > These float constants are still referenced by TCC's x86_64 code generator 
 > for unary minus operations on floats. Without them, TCC produces undefined 
 > symbol '__mzerodf' errors when code that uses -0.0 or negates float values 
 > at runtime.
 > The ___faststorefence for Win64 (_WIN64) was also removed. I don't know if 
 > it should be restored.
 > Could these please be restored? Thanks.
 > I work on chemicallang compiler which translates chemical to C and compiles 
 > it like vlang does, here chemicallang
 > 
 > Regards
 > Waqas Tahir
 > _______________________________________________
 > Tinycc-devel mailing list
 > [email protected]
 > https://lists.nongnu.org/mailman/listinfo/tinycc-devel
 > 



_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to