aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
authorgrischka <grischka>2014-01-06 19:07:08 +0100
committergrischka <grischka>2014-01-06 19:07:08 +0100
commit4ad186c5ef61477030ca37372f9d6c6d03681015 (patch)
tree027dc0291eeb4bf77d521ac7a69cf40e23f2ae4d /tccpe.c
parent8efaa711904b897f9a4821656ac10f980c5ae9fe (diff)
downloadtinycc-4ad186c5ef61477030ca37372f9d6c6d03681015.tar.gz
tinycc-4ad186c5ef61477030ca37372f9d6c6d03681015.tar.bz2
i386: use __fixdfdi instead of __tcc_cvt_ftol
Variants __fixsfdi/__fixxfdi are not needed for now because the value is converted to double always. Also: - remove __tcc_fpinit for unix as it seems redundant by the __setfpucw call in the startup code - avoid reference to s->runtime_main in cross compilers - configure: fix --with-libgcc help - tcctok.h: cleanup
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccpe.c b/tccpe.c
index bc1545e..62df865 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -1800,7 +1800,9 @@ static void pe_add_runtime(TCCState *s1, struct pe_info *pe)
if (TCC_OUTPUT_MEMORY == s1->output_type) {
pe_type = PE_RUN;
+#ifdef TCC_IS_NATIVE
s1->runtime_main = start_symbol;
+#endif
} else {
pe->start_addr = (DWORD)tcc_get_symbol_err(s1, start_symbol);
}