aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard>2002-11-24 15:58:50 +0000
committerbellard <bellard>2002-11-24 15:58:50 +0000
commitd1e7e264a5d1c90eb44e8c7e8319fcdab66e2d1b (patch)
treeed2c39dfcc903f8d52bc2551dcba82569fadc9eb
parent122198a8c22633c939cb3496d4d327497311abdf (diff)
downloadtinycc-d1e7e264a5d1c90eb44e8c7e8319fcdab66e2d1b.tar.gz
tinycc-d1e7e264a5d1c90eb44e8c7e8319fcdab66e2d1b.tar.bz2
added MAX_ALIGN
-rw-r--r--i386-gen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i386-gen.c b/i386-gen.c
index ab2d794..7a59d22 100644
--- a/i386-gen.c
+++ b/i386-gen.c
@@ -67,6 +67,8 @@ int reg_classes[NB_REGS] = {
/* long double size and alignment, in bytes */
#define LDOUBLE_SIZE 12
#define LDOUBLE_ALIGN 4
+/* maximum alignment (for aligned attribute support) */
+#define MAX_ALIGN 8
/* relocation type for 32 bit data relocation */
#define R_DATA_32 R_386_32
@@ -500,6 +502,7 @@ void gjmp_addr(int a)
int gtst(int inv, int t)
{
int v, *p;
+
v = vtop->r & VT_VALMASK;
if (v == VT_CMP) {
/* fast case : can jump directly since flags are set */