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. --- x86_64-gen.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'x86_64-gen.c') diff --git a/x86_64-gen.c b/x86_64-gen.c index 1fa8dd5..f85cd01 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -83,9 +83,6 @@ enum { /* maximum alignment (for aligned attribute support) */ #define MAX_ALIGN 8 -ST_FUNC void gen_opl(int op); -ST_FUNC void gen_le64(int64_t c); - /******************************************************/ /* ELF defines */ @@ -106,7 +103,7 @@ ST_FUNC void gen_le64(int64_t c); #include "tcc.h" #include -ST_DATA const int reg_classes[] = { +ST_DATA const int reg_classes[NB_REGS+7] = { /* eax */ RC_INT | RC_RAX, /* ecx */ RC_INT | RC_RCX, /* edx */ RC_INT | RC_RDX, -- cgit v1.3.1