aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-08 19:07:11 +0100
committergrischka <grischka>2013-02-08 19:07:11 +0100
commitd6d7686b608c4b7cd88877b30579ca2346e5d284 (patch)
treec2618200601bfaa35f8ebba145bc4d16f9de71ac /libtcc.c
parent4b8e7f1f39341fbff0a3f1162378ae57fba337e2 (diff)
downloadtinycc-d6d7686b608c4b7cd88877b30579ca2346e5d284.tar.gz
tinycc-d6d7686b608c4b7cd88877b30579ca2346e5d284.tar.bz2
tcc.h: declare CValue.tab[LDOUBLE_SIZE/4]
Should fix some warnings wrt. access out of array bounds. tccelf.c: fix "static function unused" warning x86_64-gen.c: fix "ctype.ref uninitialzed" warning and cleanup tcc-win32.txt: remove obsolete limitation notes.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libtcc.c b/libtcc.c
index 0242dc4..b0b2410 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -755,15 +755,8 @@ static int tcc_compile(TCCState *s1)
func_old_type.t = VT_FUNC;
func_old_type.ref = sym_push(SYM_FIELD, &int_type, FUNC_CDECL, FUNC_OLD);
-
-#if defined(TCC_ARM_EABI) && defined(TCC_ARM_VFP)
- float_type.t = VT_FLOAT;
- double_type.t = VT_DOUBLE;
-
- func_float_type.t = VT_FUNC;
- func_float_type.ref = sym_push(SYM_FIELD, &float_type, FUNC_CDECL, FUNC_OLD);
- func_double_type.t = VT_FUNC;
- func_double_type.ref = sym_push(SYM_FIELD, &double_type, FUNC_CDECL, FUNC_OLD);
+#ifdef TCC_TARGET_ARM
+ arm_init_types();
#endif
#if 0