From d6d7686b608c4b7cd88877b30579ca2346e5d284 Mon Sep 17 00:00:00 2001 From: grischka Date: Fri, 8 Feb 2013 19:07:11 +0100 Subject: 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. --- tccelf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index 781c322..41bd1a5 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1314,13 +1314,6 @@ static void add_init_array_defines(TCCState *s1, const char *section_name) s->sh_num, sym_end); } -static int tcc_add_support(TCCState *s1, const char *filename) -{ - char buf[1024]; - snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename); - return tcc_add_file(s1, buf); -} - ST_FUNC void tcc_add_bcheck(TCCState *s1) { #ifdef CONFIG_TCC_BCHECK @@ -1353,6 +1346,13 @@ ST_FUNC void tcc_add_bcheck(TCCState *s1) #endif } +static inline int tcc_add_support(TCCState *s1, const char *filename) +{ + char buf[1024]; + snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename); + return tcc_add_file(s1, buf); +} + /* add tcc runtime libraries */ ST_FUNC void tcc_add_runtime(TCCState *s1) { -- cgit v1.3.1