mirror of
https://github.com/frida/tinycc
synced 2024-12-24 22:16:49 +03:00
arm64: Fix regression introduced by 6245db9
.
This commit is contained in:
parent
2372639e9d
commit
e0fe69050d
4
tccgen.c
4
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user