aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2014-01-06 11:14:54 +0800
committerThomas Preud'homme <robotux@celest.fr>2014-01-06 11:26:09 +0800
commitbcc1904f9c950cbf5aae8711d1dcdcfe422fb456 (patch)
treeb9ec33e96618e86040de779d2931a812590edbda
parenta01d83d78380e84b04d62ca34a142a7e3d8e390d (diff)
downloadtinycc-bcc1904f9c950cbf5aae8711d1dcdcfe422fb456.tar.gz
tinycc-bcc1904f9c950cbf5aae8711d1dcdcfe422fb456.tar.bz2
Don't call __tcc_fpinit if using libgcc
-rw-r--r--i386-gen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/i386-gen.c b/i386-gen.c
index 2cb31ff..4201ac2 100644
--- a/i386-gen.c
+++ b/i386-gen.c
@@ -581,10 +581,12 @@ ST_FUNC void gfunc_prolog(CType *func_type)
}
#endif
+#ifndef CONFIG_USE_LIBGCC
#ifndef TCC_TARGET_PE
if (0 == strcmp(funcname, "main"))
gen_static_call(TOK___tcc_fpinit);
#endif
+#endif
}