aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2016-12-05 23:29:25 +0000
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2016-12-05 23:29:25 +0000
commite0fe69050d2df59da7370875c4f5eb557618e20c (patch)
tree78ecac0861de53ce7e4cbebed5c3745e6f169381 /tccgen.c
parent2372639e9d3dbca16b48480f5a032254ce46fbab (diff)
downloadtinycc-e0fe69050d2df59da7370875c4f5eb557618e20c.tar.gz
tinycc-e0fe69050d2df59da7370875c4f5eb557618e20c.tar.bz2
arm64: Fix regression introduced by 6245db9.
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tccgen.c b/tccgen.c
index b056c1e..3508e84 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -1197,6 +1197,7 @@ static int reg_fret(int t)
return REG_FRET;
}
+#if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64)
/* expand 64bit on stack in two ints */
static void lexpand(void)
{
@@ -1217,6 +1218,7 @@ static void lexpand(void)
}
vtop[0].type.t = vtop[-1].type.t = VT_INT | u;
}
+#endif
#ifdef TCC_TARGET_ARM
/* expand long long on stack */
@@ -2370,6 +2372,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 +2383,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)) {