diff options
| author | grischka <grischka> | 2013-02-08 19:07:11 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2013-02-08 19:07:11 +0100 |
| commit | d6d7686b608c4b7cd88877b30579ca2346e5d284 (patch) | |
| tree | c2618200601bfaa35f8ebba145bc4d16f9de71ac /tccelf.c | |
| parent | 4b8e7f1f39341fbff0a3f1162378ae57fba337e2 (diff) | |
| download | tinycc-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 'tccelf.c')
| -rw-r--r-- | tccelf.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) { |
