[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] PATCH to fix arm64 regression caused by 6245db9
From: |
Edmund Grimley Evans |
Subject: |
[Tinycc-devel] PATCH to fix arm64 regression caused by 6245db9 |
Date: |
Fri, 2 Dec 2016 21:31:21 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
6245db9fca4046e568da41c6a1f8c51ee9e2f56c broke TCC on arm64. This
patch seems to fix it again. Since it also affects x86_64, could
someone else please take a look?
diff --git a/tccgen.c b/tccgen.c
index d064024..1c091d2 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -2370,6 +2370,7 @@ static void gen_cast(CType *type)
tcc_warning("nonportable conversion from pointer to
char/short");
}
force_charshort_cast(dbt);
+#if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64)
} else if ((dbt & VT_BTYPE) == VT_INT) {
/* scalar to int */
if ((sbt & VT_BTYPE) == VT_LLONG) {
@@ -2380,6 +2381,7 @@ static void gen_cast(CType *type)
/* if lvalue and single word type, nothing to do because
the lvalue already contains the real type size (see
VT_LVAL_xxx constants) */
+#endif
}
}
} else if ((dbt & VT_BTYPE) == VT_PTR && !(vtop->r & VT_LVAL)) {
- [Tinycc-devel] PATCH to fix arm64 regression caused by 6245db9,
Edmund Grimley Evans <=