aboutsummaryrefslogtreecommitdiff
path: root/x86_64-gen.c
diff options
context:
space:
mode:
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,