aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-06-11 18:13:04 +0200
committerThomas Preud'homme <robotux@celest.fr>2013-06-15 00:26:07 +0200
commit37b034899318a4e0f2283aa6e8564d839a52503f (patch)
tree203e0eb8a829d8008b4966a7cc3a1adfcac68cc3
parentf6b50558fc46aeb8e981355009871b30e61de841 (diff)
downloadtinycc-37b034899318a4e0f2283aa6e8564d839a52503f.tar.gz
tinycc-37b034899318a4e0f2283aa6e8564d839a52503f.tar.bz2
Define __ARM_PCS_VFP in hardfloat compilation mode
-rw-r--r--libtcc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index f691218..b10a2a7 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -950,6 +950,9 @@ LIBTCCAPI TCCState *tcc_new(void)
tcc_define_symbol(s, "__arm", NULL);
tcc_define_symbol(s, "arm", NULL);
tcc_define_symbol(s, "__APCS_32__", NULL);
+#if defined(TCC_ARM_HARDFLOAT)
+ tcc_define_symbol(s, "__ARM_PCS_VFP", NULL);
+#endif
#endif
#ifdef TCC_TARGET_PE