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 /tccgen.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 'tccgen.c')
| -rw-r--r-- | tccgen.c | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -344,27 +344,23 @@ static void vpushs(long long v) vsetc(&size_type, VT_CONST, &cval); } -/* push long long constant */ -static void vpushll(long long v) -{ - CValue cval; - CType ctype; - ctype.t = VT_LLONG; - ctype.ref = 0; - cval.ull = v; - vsetc(&ctype, VT_CONST, &cval); -} - /* push arbitrary 64bit constant */ void vpush64(int ty, unsigned long long v) { CValue cval; CType ctype; ctype.t = ty; + ctype.ref = NULL; cval.ull = v; vsetc(&ctype, VT_CONST, &cval); } +/* push long long constant */ +static inline void vpushll(long long v) +{ + vpush64(VT_LLONG, v); +} + /* Return a static symbol pointing to a section */ ST_FUNC Sym *get_sym_ref(CType *type, Section *sec, unsigned long offset, unsigned long size) { |
