aboutsummaryrefslogtreecommitdiff
path: root/x86_64-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 /x86_64-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 'x86_64-gen.c')
-rw-r--r--x86_64-gen.c5
1 files changed, 1 insertions, 4 deletions
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 <assert.h>
-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,