From 13b997668e32a4b451783fd80525cf221149c5b3 Mon Sep 17 00:00:00 2001 From: grischka Date: Tue, 10 Sep 2013 15:36:56 +0200 Subject: win32: fix libtcc support For "tcc -run file.c", I was trying to initialize the FP control in a function in libtcc1.a (_runmain) before calling main. Unfortunately that turned out to cause problems with for example libtcc_test since such usage doesn't necessarily define a 'main' function. So for tcc -run we're back to relying on the FP control word that is set in the startup code of tcc.exe rsp. libtcc.dll. This fixes part of commit 73faaea227a53e365dd75f1dba7a5071c7b5e541 --- win32/lib/crt1.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'win32') diff --git a/win32/lib/crt1.c b/win32/lib/crt1.c index cde3910..3e1d17f 100644 --- a/win32/lib/crt1.c +++ b/win32/lib/crt1.c @@ -31,10 +31,4 @@ int _start(void) exit(ret); } -int _runmain(int argc, char **argv) -{ - _controlfp(0x10000, 0x30000); - return main(argc, argv, NULL); -} - // ============================================= -- cgit v1.3.1