aboutsummaryrefslogtreecommitdiff
path: root/c67-gen.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 /c67-gen.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 'c67-gen.c')
-rw-r--r--c67-gen.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/c67-gen.c b/c67-gen.c
index b79b1bb..b423ba6 100644
--- a/c67-gen.c
+++ b/c67-gen.c
@@ -92,12 +92,6 @@ enum {
#define REG_LRET TREG_C67_A5 /* second word return register (for long long) */
#define REG_FRET TREG_C67_A4 /* float return register */
-#define ALWAYS_ASSERT(x) \
-do {\
- if (!(x))\
- tcc_error("internal compiler error file at %s:%d", __FILE__, __LINE__);\
-} while (0)
-
/* defined if function parameters must be evaluated in reverse order */
//#define INVERT_FUNC_PARAMS
@@ -182,6 +176,12 @@ int TotalBytesPushedOnStack;
#undef BOOL
#define BOOL int
+#define ALWAYS_ASSERT(x) \
+do {\
+ if (!(x))\
+ tcc_error("internal compiler error file at %s:%d", __FILE__, __LINE__);\
+} while (0)
+
/******************************************************/
static unsigned long func_sub_sp_offset;
static int func_ret_sub;